PySAM
A Python package for the National Renewable Energy Laboratory’s System Advisor Model.
https://github.com/natlabrockies/pysam
Category: Energy Systems
Sub Category: Energy System Modeling Frameworks
Keywords from Contributors
photovoltaics renewables renewable-energy bifacial radiance solar-energy
Last synced: about 18 hours ago
JSON representation
Repository metadata
Python Wrapper for the System Advisor Model
- Host: GitHub
- URL: https://github.com/natlabrockies/pysam
- Owner: NatLabRockies
- License: bsd-3-clause
- Created: 2019-03-18T20:25:20.000Z (about 7 years ago)
- Default Branch: main
- Last Pushed: 2026-04-01T20:23:29.000Z (6 days ago)
- Last Synced: 2026-04-02T07:53:15.657Z (6 days ago)
- Language: C
- Homepage: http://nrel-pysam.readthedocs.io
- Size: 273 MB
- Stars: 133
- Watchers: 16
- Forks: 80
- Open Issues: 20
- Releases: 13
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
README.md
PySAM Package
https://nrel-pysam.readthedocs.io
- Provides a wrapper around the SAM library that groups together the C API functions by technology or financial model into modules.
- Includes error-checking, explicit input and output definition, and conversion between Python data types.
- PySAM modules are compatible with PySSC, which is included as a subpackage. PySSC is the original wrapper used by SAM's code generator.
- Automatically assign default values to input parameters from SAM's default value database.
- Built-in documentation of models and parameters.
Requirements
- Python 3.9 - 3.13, 64 bit
- Operating system:
- MacOSX 10.7+
- Most Linux
- Windows 7, x64
- CMake 3.20+
Installing
-
PyPi:
pip install nrel-pysam -
Anaconda (Versions > 1.2.1, < 6.0.0 only):
conda install -c nrel nrel-pysam
May not be compatible with different builds of the CPython reference interpreter, and not with alternative interpreters such as PyPy, IronPython or Jython
Usage Examples
Citing this package
PySAM . National Laboratory of the Rockies. Golden, CO. Accessed . https://github.com/NatLabRockies/pysam
Owner metadata
- Name: National Laboratory of the Rockies
- Login: NatLabRockies
- Email:
- Kind: organization
- Description:
- Website: http://www.nrel.gov
- Location: Golden, CO
- Twitter:
- Company:
- Icon url: https://avatars.githubusercontent.com/u/1906800?v=4
- Repositories: 599
- Last ynced at: 2026-01-22T09:57:55.744Z
- Profile URL: https://github.com/NatLabRockies
GitHub Events
Total
- Delete event: 2
- Issue comment event: 1
- Push event: 7
- Pull request review event: 1
- Create event: 1
Last Year
- Delete event: 2
- Issue comment event: 1
- Push event: 7
- Pull request review event: 1
- Create event: 1
Committers metadata
Last synced: 4 days ago
Total Commits: 501
Total Committers: 20
Avg Commits per committer: 25.05
Development Distribution Score (DDS): 0.25
Commits in past year: 22
Committers in past year: 3
Avg Commits per committer in past year: 7.333
Development Distribution Score (DDS) in past year: 0.409
| Name | Commits | |
|---|---|---|
| dguittet | d****t@n****v | 376 |
| Paul Gilman | c****n@g****m | 30 |
| Brian Mirletz | b****z@n****v | 26 |
| Matt Prilliman | 5****n | 23 |
| frohro | r****e@w****u | 10 |
| sjanzou | s****u@g****m | 10 |
| Ben Elliston | b****e@a****u | 9 |
| Kevin Anderson | k****n@n****v | 2 |
| Janine Keith | j****n | 2 |
| Greg Miller | 4****r | 2 |
| Cliff Hansen | c****e@s****v | 2 |
| Mike Welch | m****h@t****y | 1 |
| Nick DiOrio | n****o@n****v | 1 |
| Allen Downey | d****y@a****m | 1 |
| Bill Hamilton | 3****d | 1 |
| Dakota Sky Ramos | 8****s | 1 |
| MasonBowen | t****n@n****v | 1 |
| Matthew Boyd | 3****d | 1 |
| Sam Koebrich | s****h@N****v | 1 |
| Silvana Ovaitt | s****a@n****v | 1 |
Committer domains:
- nrel.gov: 7
- allendowney.com: 1
- telos.energy: 1
- sandia.gov: 1
- air.net.au: 1
- wallawalla.edu: 1
Dependencies
- actions/checkout v2 composite
- docker://github/super-linter v2.1.1 composite
- NREL-PySAM *
- pandas *
- sphinx_rtd_theme *
- pandas *
- python-dotenv *
- requests *
- mypy * test
- numpy * test
- pandas * test
- pympler * test
- pytest * test
- python-dotenv * test
- requests * test
Score: 8.026170194946426