Python EIA Client
A minimalist Python client for the U.S. Energy Information Administration (EIA) API v2.
Installation
pip install python-eia
API Key
You must request an API key from the EIA website.
Set your API key in one of two ways:
- Add it to a
.envfile asEIA_API_KEY=your_token - Or pass it directly as a parameter:
EIAClient(api_key="your_token")
Usage Example
See examples/1_Generic/steps/1_Download.ipynb for usage instructions and examples.
License
MIT License
Metadata
Release files for python-eia 0.3.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| python_eia-0.3.2.tar.gz | 317.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| python_eia-0.3.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 383.5 kB
Release files / python_eia-0.3.2.tar.gz
| Download URL | python_eia-0.3.2.tar.gz |
|---|---|
| Size | 317.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
aad51cafa37057e737a0567e395269ef2a704e7f7280cb8090216bdafce4df22
|
|
BLAKE2b-256 checksum How to use checksums |
63ffe9318f5587b70416de5b8e405faaa6422da5deb25bba912c6c99081fe6d6
|
| 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 17, 2026.
Transparency logRelease files / python_eia-0.3.2-py3-none-any.whl
| Download URL | python_eia-0.3.2-py3-none-any.whl |
|---|---|
| Size | 66.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8fe46a4aea699435eba6b4cfd8b88488ae44400c7cea10905b8d80f766b87431
|
|
BLAKE2b-256 checksum How to use checksums |
f7c9fb79e30dbdf1a2f6688c61a379082a6733f8cab6f919c7eb97e8b3fe95e7
|
| 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 17, 2026.
Transparency log