Skip to main content

No project description provided

Project description

myeia

myeia is a simple Python wrapper for the U.S. Energy Information Administration (EIA) API.

Requirements

  • pandas

Installation

pip install myeia

eia OPEN DATA Registration

To obtain an API Key you need to register on the EIA website.

eia API Query Browser

To find all EIA Datasets visit API Query Browser

Authentication

import myeia

eia = myeia.EIA("API_KEY")

Examples

  • search_by_category_id will return all related sub categories.
eia.search_by_category_id("1")
  • Optionally you can set series=True which will return series IDs from category.
eia.search_by_category_id("20", series=True)
  • search_by_series_id will return category names and IDs a series is a member of.
eia.search_by_series_id("PET.RWTC.D")
  • data_by_series_id will return a Timeseries Dataset from series ID.
eia.data_by_series_id("PET.RWTC.D")

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

myeia-0.1.1.tar.gz (8.4 kB view hashes)

Uploaded Source

Built Distribution

myeia-0.1.1-py3-none-any.whl (2.5 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