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 1 hour 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 (over 7 years ago)
- Default Branch: main
- Last Pushed: 2026-06-29T09:33:54.000Z (2 days ago)
- Last Synced: 2026-06-29T11:18:03.827Z (1 day ago)
- Language: C
- Homepage: http://nrel-pysam.readthedocs.io
- Size: 280 MB
- Stars: 140
- Watchers: 16
- Forks: 82
- Open Issues: 17
- Releases: 14
-
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
- Release event: 1
- Delete event: 3
- Issue comment event: 1
- Push event: 51
- Pull request review event: 1
- Create event: 5
Last Year
- Release event: 1
- Delete event: 3
- Issue comment event: 1
- Push event: 51
- Pull request review event: 1
- Create event: 5
Committers metadata
Last synced: 3 days ago
Total Commits: 528
Total Committers: 20
Avg Commits per committer: 26.4
Development Distribution Score (DDS): 0.275
Commits in past year: 33
Committers in past year: 5
Avg Commits per committer in past year: 6.6
Development Distribution Score (DDS) in past year: 0.606
| Name | Commits | |
|---|---|---|
| dguittet | d****t@n****v | 383 |
| Brian Mirletz | b****z@n****v | 37 |
| Paul Gilman | c****n@g****m | 31 |
| Matt Prilliman | 5****n | 23 |
| Steven Janzou | s****n@j****m | 18 |
| frohro | r****e@w****u | 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
- janzouconsulting.com: 1
Issue and Pull Request metadata
Last synced: 3 days ago
Total issues: 7
Total pull requests: 12
Average time to close issues: about 1 month
Average time to close pull requests: 25 days
Total issue authors: 5
Total pull request authors: 4
Average comments per issue: 1.0
Average comments per pull request: 0.75
Merged pull request: 10
Bot issues: 0
Bot pull requests: 0
Past year issues: 7
Past year pull requests: 12
Past year average time to close issues: about 1 month
Past year average time to close pull requests: 25 days
Past year issue authors: 5
Past year pull request authors: 4
Past year average comments per issue: 1.0
Past year average comments per pull request: 0.75
Past year merged pull request: 10
Past year bot issues: 0
Past year bot pull requests: 0
Top Issue Authors
- brtietz (2)
- mjprilliman (2)
- tylernisonoff (1)
- Peque (1)
- sjanzou (1)
Top Pull Request Authors
- brtietz (5)
- dguittet (3)
- mjprilliman (2)
- sjanzou (2)
Top Issue Labels
- bug (1)
Top Pull Request Labels
- bug (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
- actions/checkout v3 composite
- NREL-PySAM ==5.1.0
- openpyxl ==3.0.10
- pvlib ==0.10.4
- pvmismatch ==4.1
- scipy ==1.11.4
- NREL-PySAM *
- certifi *
- greenbutton_objects *
- pandas *
- requests *
Score: 8.051978078902298