Skip to main content

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 .env file as EIA_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)

Source distribution for python-eia 0.3.2
File Size Uploaded
python_eia-0.3.2.tar.gz 317.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for python-eia 0.3.2
File Interpreter ABI Platform
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 log

Release 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

Release history Release notifications | RSS feed

This release

0.3.2 This release

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.0

2 release files

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