Skip to main content

Client for interacting with the EIA API

Project description

EIA

The client exposes a simple interface to the EIA API.

Huge thanks to the EIA for providing this API See https://www.eia.gov/opendata/documentation.php for detailed API documentation

Installation

pip install eia

Examples

Get information on the available "petroleum" datasets.

client.dataset_info("petroleum")

Get information on operational and power data, including generation.

# Series Info includes data series with specific data elements and facets
operational = client.series_info("electricity/electric-power-operational-data")
operational.data

See examples in the example directory.

Note: the client does not manage rate limits. See the EIA API documentation for more information on rate limits.

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

eia-0.3.0.tar.gz (7.8 kB view hashes)

Uploaded Source

Built Distribution

eia-0.3.0-py3-none-any.whl (7.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page