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

Uploaded Python 3

File details

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

File metadata

  • Download URL: python_eia-0.2.1.tar.gz
  • Upload date:
  • Size: 192.3 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.1.tar.gz
Algorithm Hash digest
SHA256 ea9f34ad38506779a4933f5c6c57205cadb30ac5d148b0b5b9b78e7d55c3e270
MD5 b7e4bb957f044bbbbefdf927ca9d43fe
BLAKE2b-256 e4a94b52f6e6ab44a913d613b9986c7b5ba48b53b7cde77db93bbd9a94a86b9a

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: python_eia-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 22.2 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 96bb5b6d70c262f02955ce15afea5d147183f60e6d4e78bb5eecd839f7854214
MD5 c7426d68cd99d6e1e6149b7772119311
BLAKE2b-256 cdfa1d604b1d91e72f32c3c54882956c043846b1553c996d8640bb66bf1b66e3

See more details on using hashes here.

Provenance

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