Skip to main content

SolareX - Solar Resource eXchange

Tests DOI Downloads

A Python library for solar PV resource assessment, irradiance analysis, temperature modeling, shading/bifacial analysis, MCDA site scoring, and capacity factor computation.

Installation

pip install solarex

With optional dependencies:

pip install solarex[era5]    # ERA5 via atlite
pip install solarex[pvlib]   # CEC module database
pip install solarex[all]     # Everything

Quick Start

from solarex import (
    compute_peak_sun_hours,
    compute_gcr_shading_loss,
    compute_bifacial_gain,
    compute_pv_financials,
    SolarFinancialInputs,
)

# Financial analysis
inputs = SolarFinancialInputs(capacity_mw=50, capacity_factor=0.22)
result = compute_pv_financials(inputs)
print(f"LCOE: ${result.lcoe:.1f}/MWh, NPV: ${result.npv:,.0f}")

# Shading analysis
loss = compute_gcr_shading_loss(latitude=30, tilt=25, gcr=0.4)
print(f"Shading loss: {loss:.1%}")

# Bifacial gain
gain = compute_bifacial_gain(albedo=0.25, gcr=0.4, module_height=2.0, tilt=25)
print(f"Bifacial gain: {gain:.1%}")

Modules

  • solarex.core - Irradiance, temperature, shading, bifacial, capacity factor
  • solarex.data - Open-Meteo, NASA POWER, ERA5, terrain, LULC, module DB
  • solarex.economics - Financial analysis and LCOE sensitivity
  • solarex.analysis - MCDA engine and grid evaluation
  • solarex.regional - Regional analyzer and zone generation

License

MIT

Metadata

Release files for solarex 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for solarex 0.1.1
File Size Uploaded Provenance Actions
solarex-0.1.1.tar.gz 29.7 kB With provenance Details for solarex-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for solarex 0.1.1
File Interpreter ABI Platform Actions
solarex-0.1.1-py3-none-any.whl Python 3 none any Details for solarex-0.1.1-py3-none-any.whl

Total release size: 63.5 kB

Release files / solarex-0.1.1.tar.gz

Download URL solarex-0.1.1.tar.gz
Size 29.7 kB
Tags Source
SHA-256 checksum
How to use checksums
4ad0f11d70bf75e08d93b1dcb3021ddc1306fe2d6112f0695092fc3d01126cfd
BLAKE2b-256 checksum
How to use checksums
84d7a66a890c71745e99cd454bf453c1eec7d77850cd1f3a9e25f62d7dffb754
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 5, 2026.

Transparency log

Release files / solarex-0.1.1-py3-none-any.whl

Download URL solarex-0.1.1-py3-none-any.whl
Size 33.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
785cddb3ac258b2528b79b79284613ffcd70338f8bac22c328c7cb199d05525a
BLAKE2b-256 checksum
How to use checksums
d7c137c0929d1612c1cc6f75fbc8de30d346e13286a90ad27dbbe82cd41e63b1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 5, 2026.

Transparency log

Security for solarex 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for solarex-0.1.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 5, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page