A minimalist Python client for the U.S. Energy Information Administration (EIA) API v2.
pip install python-eiaYou 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")
See examples/1_Generic/steps/1_Download.ipynb for usage instructions and examples.
MIT License