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.1.tar.gz (317.2 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.1-py3-none-any.whl (66.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for python_eia-0.3.1.tar.gz
Algorithm Hash digest
SHA256 30f8c433162d27495196fc92be4ac14bd120c8f116f68f5ef6b97d4462846535
MD5 3e71404fa93c72b8f938751b175e0f01
BLAKE2b-256 f4155434c4b82d4f89191bf9afaff5895e090596d2e25accf8f829c116d595b3

See more details on using hashes here.

Provenance

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

File metadata

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

File hashes

Hashes for python_eia-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9b65916ed120562806a6c0e27717e82b9f33bf27f488660ee85663f7f2433a95
MD5 ae9bfb1aa449cf74175ee4b1d5f0b5cf
BLAKE2b-256 f1593ab098a0e881b92591049e7f5a2351044b777e341be60e8e4b7c14027195

See more details on using hashes here.

Provenance

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