Skip to main content

A Python client for the U.S. Energy Information Administration (EIA) API v2

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

python_eia-0.3.0.tar.gz (289.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

python_eia-0.3.0-py3-none-any.whl (38.3 kB view details)

Uploaded Python 3

File details

Details for the file python_eia-0.3.0.tar.gz.

File metadata

  • Download URL: python_eia-0.3.0.tar.gz
  • Upload date:
  • Size: 289.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for python_eia-0.3.0.tar.gz
Algorithm Hash digest
SHA256 486ebed978597312c56664236a6e87d82f6cbe452a8504bc816ffd33fbbbe4a1
MD5 bea5c2f908f17254206a7cbd0f568671
BLAKE2b-256 cd413387b6af00b99068d148043eee7c7ae063ebcf6f188c8460ee53af5e57e1

See more details on using hashes here.

Provenance

The following attestation bundles were made for python_eia-0.3.0.tar.gz:

Publisher: publish.yml on datons/python-eia

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file python_eia-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: python_eia-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 38.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for python_eia-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 04cc4f8465c4a6bf61e3de7d6b43b259b3adc251c44f2c6b842692ec6629dcc7
MD5 d971a41183f8d745296422c5bfade3cb
BLAKE2b-256 4ac1ef586f2c94d9718a2998bf8ad447cb14854fa1365fbc3afc2289e1e78390

See more details on using hashes here.

Provenance

The following attestation bundles were made for python_eia-0.3.0-py3-none-any.whl:

Publisher: publish.yml on datons/python-eia

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page