gridstatus is a Python library that provides a uniform API for accessing electricity supply, demand, and pricing data for the major Independent System Operators (ISOs) in the United States. It currently supports data from CAISO, SPP, ISONE, MISO, ERCOT, NYISO, PJM, IESO, and the EIA.
GridStatus.io and Hosted API
To preview some of the data this library provides access to, visit GridStatus.io.
If you are trying to use our hosted API, you might want to check out the gridstatusio library here.
To learn more about our hosted API visit: https://www.gridstatus.io/api.
Community
- Need Help? Post a GitHub issue
- Want to stay updated? Follow us on Twitter @grid_status
- Want to contribute? Read our Contributing Guide
Installation
gridstatus supports python 3.11+. Install with uv
uv pip install gridstatus
Upgrade using the following command
uv pip install --upgrade gridstatus
Environment Variables
- Some parsers require the use of environment variables
- The
EIAclass - The
ErcotAPIclass
- The
- Environment variables can be set in the following ways
- In a
.envfile in the root of the project - In the environment where the code is run
- In a
- See .env.template for the required environment variables and how to register for them
Documentation and Examples
To learn more, visit the documentation and view example notebooks.
Get Help
We'd love to answer any usage or data access questions! Please let us know by posting a GitHub issue.
Metadata
Release files for gridstatus 0.31.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| gridstatus-0.31.0.tar.gz | 3.0 MB | With provenance | Details for gridstatus-0.31.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| gridstatus-0.31.0-py3-none-any.whl | Python 3 | none | any | Details for gridstatus-0.31.0-py3-none-any.whl |
Total release size: 3.5 MB
Release files / gridstatus-0.31.0.tar.gz
| Download URL | gridstatus-0.31.0.tar.gz |
|---|---|
| Size | 3.0 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
626469b031a254204e8824cee2ae5e218d77e2b2c7a464add0ef84ce85d6b374
|
|
BLAKE2b-256 checksum How to use checksums |
3cc82208c2bef4ef5921bcf9b033460db411ef61b09bd01891da41ef7792e09f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
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 Aug 12, 2025.
Transparency logRelease files / gridstatus-0.31.0-py3-none-any.whl
| Download URL | gridstatus-0.31.0-py3-none-any.whl |
|---|---|
| Size | 446.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0bcc90f69da02c34fa1d3b513e6b422d2f654a09bd304ffb3a4690de846b41c0
|
|
BLAKE2b-256 checksum How to use checksums |
d3a2c6af26cd6f80fab2d071ef64cd5ec7d0bc89b93573c92f9a1ab902a68535
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
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 Aug 12, 2025.
Transparency logSecurity for gridstatus 0.31.0
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.
Attestation for gridstatus-0.31.0.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 Aug 12, 2025.
Transparency logA 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.