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.2.0.tar.gz (190.9 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.2.0-py3-none-any.whl (20.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: python_eia-0.2.0.tar.gz
  • Upload date:
  • Size: 190.9 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.2.0.tar.gz
Algorithm Hash digest
SHA256 bb5ac20a1d55d92320f552825387fb8c6e567e50586db08a051d9fb0b8942389
MD5 921b38f032cac8ef5c63e6d1207b5489
BLAKE2b-256 24ce00104afa5778d17d10c2910b43029e71a3f78534d7860321e6cfcae138d7

See more details on using hashes here.

Provenance

The following attestation bundles were made for python_eia-0.2.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.2.0-py3-none-any.whl.

File metadata

  • Download URL: python_eia-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 20.0 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.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0f71801a2cd44dcb179cda6fa008988583f16eb728bf81ef56a9e1c5d7b1c3e3
MD5 98722fa99a2ce2e6679519b3b5489b36
BLAKE2b-256 890a916519838d67d97f1c91f082d7f067bc420cc87e5ec688235f94b302b628

See more details on using hashes here.

Provenance

The following attestation bundles were made for python_eia-0.2.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