An API for examing the EIA Monthly Energy Review datasets.
Python Library for EIA Data Examination & Exhibition
A tool for creating visuals from historical energy data (e.g. the EIA monthly energy review).
This tool is designed to provide insightful, aesthetic and more flexible visualizations of the Energy Information Administration (EIA) monthly energy review datasets. The datasets contain information about the sources of energy Americans have relied on for power since the middle of the 20th century. The datasets begin in 1949 with annual energy production, consumption, import, and export values, and extend up until the present. Monthly energy datapoints are reported starting in 1973.
The basic energy sources are reported in the following groups:
- Natural Gas
The data is published monthly on the EIA's website, and as of March 31st, 2019 records were provided up through December 2018. This package also includes data up to date through the end of 2018, though more recent data can be downloaded using an included script.
All reported values are in units of quadrillion british thermal units (1.0E15 btu). Be aware that the datasets may provide more precision than is published in the PDF reports.
pyleiades is hosted through the Python Package Index (PyPI) and can be easily installed using pip. From the command line, run
pip install pyleiades
The module requires a recent version of python 3 (3.6 or greater), pandas, and matplotlib, among others. If you run into trouble running the package, try using the Anaconda environment provided in this repo. Install the environment using the command
conda env create -f environment.yml
and activate the environment by issuing the command
conda activate pyleiades
An archive of EIA Monthly Energy Review datasets is kept in the
pyleiades data repository.
This may not include the most up to date information, and so the package comes with a script to update the available data.
Once the package is installed, run
from the command line to download the most recent data from the EIA website.
Release history Release notifications | RSS feed
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size pyleiades-0.0.0.dev3.tar.gz (2.3 MB)||File type Source||Python version None||Upload date||Hashes View|
|Filename, size pyleiades-0.0.0.dev3-py3-none-any.whl (2.4 MB)||File type Wheel||Python version py3||Upload date||Hashes View|
Hashes for pyleiades-0.0.0.dev3-py3-none-any.whl