pvlib
A set of functions and classes for simulating the performance of photovoltaic energy systems.
What it is and what it does
pvlib is a community-developed toolbox for simulating photovoltaic energy system performance. It provides open, reliable, and interoperable implementations of PV system models built on numpy, pandas, scipy, and related scientific Python libraries. The package originated as a Python translation of MATLAB_PV_LIB from Sandia National Laboratories in 2013 and has grown to include contributions from over a hundred individuals worldwide.
The package is used for modeling solar energy systems, accessing solar irradiance data, and performing PV-related calculations and analysis. It depends on numpy for numerical computation, pandas for data handling, scipy for scientific functions, h5py for HDF5 file access, requests for data retrieval, and pytz for timezone handling. It is actively maintained by a core group of PV modelers and is a NumFOCUS Affiliated Project.
Use it for:
- Simulate expected energy output from a proposed photovoltaic installation before deployment
- Access and process solar irradiance data from public sources for site analysis
- Model the performance of existing PV systems to identify degradation or operational issues
- Develop and test new PV modeling algorithms in a standardized, peer-reviewed framework
- Integrate PV performance predictions into energy management or grid planning tools
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Simulates photovoltaic energy system performance and provides functions and classes for modeling solar energy systems and related PV calculations.
Yes. The package is actively maintained, has low installation friction, carries a permissive BSD-3-Clause license, and has no known security vulnerabilities. It is well-suited for anyone working with photovoltaic system modeling, simulation, or solar energy analysis.
Install
pvlib on PyPI
pip
pip install pvlibuv
uv add pvlibpoetry
poetry add pvlibInstalling pvlib
Before you install
Low friction installation with six well-established runtime dependencies. Active maintenance with a recent release 59 days ago and continuous repository activity.
License in practice
BSD-3-Clause permissive license allows commercial and private use with minimal restrictions; suitable for both open-source and proprietary projects.
Quickstart
pip install pvlib
import pvlib
# Access PV modeling functions and classes for system simulation
Requires Python 3.10 or later
Verify before relying
- Whether the package supports real-time system monitoring or only historical/simulation-based analysis
- Specific PV system types or configurations the package can model
- Performance benchmarks or accuracy validation against real-world systems
Package facts
| License | BSD-3-Clause (permissive) |
| Python support | supports the current Python release (>=3.10) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 6 — numpy, pandas, pytz, requests, scipy, h5py |
| Maintenance | actively maintained — 59 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 1,644,240/month — #3,694 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: pvlib-0.15.2-py3-none-any.whl
Tags
More Scientific/Engineering packages
NumPy provides an N-dimensional array object…
permissive · top 100 on PyPI
pandaspandas provides fast, flexible data structures…
permissive · top 100 on PyPI
scipyscipy provides numerical algorithms for…
permissive · top 100 on PyPI
scikit-learnscikit-learn provides a comprehensive Python…
permissive · top 1,000 on PyPI
dilldill extends Python's pickle module to…
permissive · top 1,000 on PyPI
multiprocessMultiprocess is an enhanced fork of Python's…
permissive · top 1,000 on PyPI
pvanalyticsPVAnalytics provides quality control,…
permissive · top 15,000 on PyPI
sunpySunPy provides Python tools for accessing,…
permissive · top 15,000 on PyPI
forecast-solarAsynchronous Python client for fetching solar…
permissive · top 15,000 on PyPI
NREL-PySAMPySAM wraps NREL's System Advisor Model (SAM)…
permissive · top 15,000 on PyPI
lbt-dragonflylbt-dragonfly is a meta-package that installs…
agpl · top 15,000 on PyPI
power-grid-modelPower Grid Model is a Python/C++ library for…
copyleft · top 15,000 on PyPI
pyenphaseProvides a Python library to communicate with…
permissive · top 15,000 on PyPI
pandapowerpandapower automates power system modeling,…
permissive · top 15,000 on PyPI
envoy-utilsProvides utilities to interact with Enphase…
copyleft · top 15,000 on PyPI
dragonfly-energyExtends Dragonfly to model building energy…
agpl · top 15,000 on PyPI