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 all 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
Release history Release notifications | RSS feed
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.0.tar.gz
(7.7 kB
view details)
Built Distribution
myeia-0.1.0-py3-none-any.whl
(2.5 kB
view details)
File details
Details for the file myeia-0.1.0.tar.gz
.
File metadata
- Download URL: myeia-0.1.0.tar.gz
- Upload date:
- Size: 7.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.8.2 keyring/23.5.0 rfc3986/1.5.0 colorama/0.4.4 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f2ac9128a56ee9e6a1d47fb8683597d6195d0b9cdb12ed25aff21bcc4765d6d1 |
|
MD5 | 254665fa16a710833cb06d1f73a4bb63 |
|
BLAKE2b-256 | 18e66eb636721f79ab0a21b47f0a3359019b610b33562b865d7fab17f3abcf2f |
File details
Details for the file myeia-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: myeia-0.1.0-py3-none-any.whl
- Upload date:
- Size: 2.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.8.2 keyring/23.5.0 rfc3986/1.5.0 colorama/0.4.4 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c0c9cd6d0def27e64bc1cfdbea59d093657193c9c5325d77b4cd738dc5a97692 |
|
MD5 | d6071bfa6a31f9ab2f17ece2ce9de30a |
|
BLAKE2b-256 | f1759b42a8667df4dad220ddea299ae658d2499ff414a0e1ee7b40c39175e44d |