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.2.tar.gz (317.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.3.2-py3-none-any.whl (66.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: python_eia-0.3.2.tar.gz
  • Upload date:
  • Size: 317.3 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.2.tar.gz
Algorithm Hash digest
SHA256 aad51cafa37057e737a0567e395269ef2a704e7f7280cb8090216bdafce4df22
MD5 9e361f15360b4b6c046ff54b7842b6cc
BLAKE2b-256 63ffe9318f5587b70416de5b8e405faaa6422da5deb25bba912c6c99081fe6d6

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: python_eia-0.3.2-py3-none-any.whl
  • Upload date:
  • Size: 66.2 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 8fe46a4aea699435eba6b4cfd8b88488ae44400c7cea10905b8d80f766b87431
MD5 9878b0a2bd03f9d25e5a1f63b8e6293b
BLAKE2b-256 f7c9fb79e30dbdf1a2f6688c61a379082a6733f8cab6f919c7eb97e8b3fe95e7

See more details on using hashes here.

Provenance

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