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
.envfile asEIA_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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ea9f34ad38506779a4933f5c6c57205cadb30ac5d148b0b5b9b78e7d55c3e270
|
|
| MD5 |
b7e4bb957f044bbbbefdf927ca9d43fe
|
|
| BLAKE2b-256 |
e4a94b52f6e6ab44a913d613b9986c7b5ba48b53b7cde77db93bbd9a94a86b9a
|
Provenance
The following attestation bundles were made for python_eia-0.2.1.tar.gz:
Publisher:
publish.yml on datons/python-eia
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
python_eia-0.2.1.tar.gz -
Subject digest:
ea9f34ad38506779a4933f5c6c57205cadb30ac5d148b0b5b9b78e7d55c3e270 - Sigstore transparency entry: 1004619372
- Sigstore integration time:
-
Permalink:
datons/python-eia@b4ed3bd6915afa99409cafcf818977078f532967 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/datons
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@b4ed3bd6915afa99409cafcf818977078f532967 -
Trigger Event:
push
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
96bb5b6d70c262f02955ce15afea5d147183f60e6d4e78bb5eecd839f7854214
|
|
| MD5 |
c7426d68cd99d6e1e6149b7772119311
|
|
| BLAKE2b-256 |
cdfa1d604b1d91e72f32c3c54882956c043846b1553c996d8640bb66bf1b66e3
|
Provenance
The following attestation bundles were made for python_eia-0.2.1-py3-none-any.whl:
Publisher:
publish.yml on datons/python-eia
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
python_eia-0.2.1-py3-none-any.whl -
Subject digest:
96bb5b6d70c262f02955ce15afea5d147183f60e6d4e78bb5eecd839f7854214 - Sigstore transparency entry: 1004619375
- Sigstore integration time:
-
Permalink:
datons/python-eia@b4ed3bd6915afa99409cafcf818977078f532967 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/datons
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@b4ed3bd6915afa99409cafcf818977078f532967 -
Trigger Event:
push
-
Statement type: