https://github.com/pvlib/pvlib-python https://pvlib-python.readthedocs.io/en/stable/index.html
pvlib python is a community supported tool that provides a set of functions and classes for simulating the performance of photovoltaic energy systems. pvlib python was originally ported from the PVLIB MATLAB toolbox developed at Sandia National Laboratories and it implements many of the models and methods developed at the Labs. More information on Sandia Labs PV performance modeling programs can be found at the PVPMC. We collaborate with the PVLIB MATLAB project, but operate independently of it.
https://github.com/energy-modelling-toolkit/prosumpy A toolkit for the simulation and economic evaluation of self-consumption and solar home battery systems. The code is written in Python.
https://www.renewables.ninja https://github.com/renewables-ninja/gsee GSEE is a solar energy simulation library designed for rapid calculations and ease of use. Renewables.ninja uses GSEE.