--- id: nrel-pysam version: "7.1.1.post1" license: BSD 3-Clause license_treatment: permissive maintenance: active --- # NREL-PySAM — National Laboratory of the Rockies' System Advisor Model Python Wrapper License: permissive · Maintenance: active · Downloads: 116.9K/mo ## What it is and what it does PySAM is a Python wrapper around NREL's System Advisor Model, a comprehensive simulation engine for modeling renewable energy systems. It provides programmatic access to SAM's modules for solar (photovoltaic and concentrating thermal), wind, battery storage, and hybrid configurations, along with utility rate and financial analysis tools. The package bundles pre-compiled simulation kernels (SSC version 306 in the current release) and exposes them through a Python API, eliminating the need to use SAM's graphical interface for batch simulations or integration into larger workflows. The package is actively maintained and tracks SAM releases closely, with recent updates adding geothermal modeling (GETEM) and renaming modules for clarity. It has no runtime dependencies beyond Python itself, relying entirely on bundled compiled libraries. Installation is straightforward on modern Python versions (3.10–3.13) across Windows, macOS, and Linux, though the binary wheels mean you are locked to supported platforms and architectures. Use it for: - Run batch photovoltaic performance simulations across multiple sites or configurations without opening the SAM GUI. - Integrate renewable energy system modeling into optimization workflows or sensitivity analyses. - Analyze battery storage sizing, chemistry selection, and dispatch strategies for hybrid systems. - Calculate utility rate impacts and financial metrics for solar or wind projects programmatically. - Simulate wind power output or hybrid solar-wind-battery systems for feasibility studies. - Automate geothermal system modeling and performance prediction using the GETEM module. ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. PySAM wraps NREL's System Advisor Model (SAM) simulation engine, providing Python access to energy system modeling and performance analysis across solar, wind, battery, and hybrid technologies. Yes, if you need to model renewable energy systems or perform SAM simulations in Python. The package is actively maintained, has no external dependencies, installs cleanly on modern Python (3.10+), and carries permissive licensing. Install friction is medium but manageable due to pre-built wheels. Not worth installing if you only need SAM's GUI or if you are on an unsupported Python version or architecture. ## Install pip install nrel-pysam uv add nrel-pysam poetry add nrel-pysam ## Installing NREL-PySAM Before you install: Medium install friction due to compiled binary wheels. Wheels are pre-built for Python 3.10–3.13 across macOS (arm64 and x86_64), Linux (aarch64 and x86_64), and Windows (amd64), so installation is straightforward on supported platforms. Package is actively maintained with recent release in April 2026. License in practice: BSD 3-Clause is permissive, allowing commercial and private use with minimal restrictions. You must include a copy of the license and retain copyright notices. Quickstart: pip install nrel-pysam import PySAM # Access SAM modules for energy system simulation module = PySAM.Pvwattsv7() Requires Python 3.10 or later (3.8 support was dropped in version 7.0.0). Binary wheels are available for common platforms; installation on unsupported architectures may require compilation. Verify before relying: - Whether offline use or internet connectivity is required for resource data downloads - Performance characteristics and typical simulation runtime for different system scales - Compatibility with third-party energy modeling or optimization libraries ## Package facts - License: BSD 3-Clause (permissive) - Python support: unspecified - Install friction: medium - Maintenance: active - Downloads: 116.9K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags solar energy modeling python, renewable energy simulation, battery system analysis, wind power calculation, hybrid energy system modeling, SAM system advisor model, photovoltaic performance prediction, energy system design tool, renewable-energy, simulation, energy-modeling [View on SkillFed](https://skillfed.io/packages/nrel-pysam) · [View on PyPI](https://pypi.org/project/nrel-pysam/)