Skip to main content

No project description provided

Project description

Python bindings for the Energy Information Administration API

Repo Overview

Our repository consists of two major components: a package eia-py and a set of exploratory data analysis notebooks (EDA).

The package can be found under eia. The package handles data scraping and loading. The eda directory holds all tools required to perform exploratory data analysis. The relationship between the two is that the scripts and notebooks in eda rely on the package in eia.

Plan of Action

  • write methods to scrape data from the API and serialize
  • write github action to automate this
  • write way to load data to numpy array/pandas

Development Setup

To get started working on the repository, please clone the repo:

git clone https://github.com/lukewood/eia-py

Then install the repo:

cd eia-py
python setup.py develop

This will link the package. To test that your installation works, run the following in a python interpreted of your choice:

import eia

Then, you need to export an environment variable for the API key:

export EIA_API_KEY="{your-key}"

Commits and Pull Requests

To make our development process streamlined and minimize conflicts we are doing all development via pull requests.

Please send all code updates via pull request on GitHub

The process to do so is documented here:

Please create a branch:

git checkout -b mybranch

Make a change:

echo 'hello_world = "123"' >> eia/test.py

Format the code:

./shell/format.sh

Next, make a commit:

git add .
git commit -m "Made some changes"

Push your changes to GitHub:

git push origin mybranch

Finally, go to the GitHub Repo URL, https://lukewood/eia-py, and create a pull request from your branch. Make sure everything looks good, and request a review. Then we can merge it.

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-py-api-0.0.1.tar.gz (7.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

eia_py_api-0.0.1-py3-none-any.whl (7.8 kB view details)

Uploaded Python 3

File details

Details for the file eia-py-api-0.0.1.tar.gz.

File metadata

  • Download URL: eia-py-api-0.0.1.tar.gz
  • Upload date:
  • Size: 7.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.7 tqdm/4.62.3 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.13

File hashes

Hashes for eia-py-api-0.0.1.tar.gz
Algorithm Hash digest
SHA256 e5fd63b8bcfb8e8509c703b40c15f1f67c28b3e953aaabf3e7945e4f329188db
MD5 2eca2147a447216845453f37594077d1
BLAKE2b-256 6c42fa300f81fd910857277a1817fce0b04126993a1afab4cf580c610300f568

See more details on using hashes here.

File details

Details for the file eia_py_api-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: eia_py_api-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 7.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.7 tqdm/4.62.3 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.13

File hashes

Hashes for eia_py_api-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 17a26568188fda842425a7b04621b3ff3131ed4b56df752c18d3bc374b08d187
MD5 9513fd7cd6ecb8faed5005ea38aae4ad
BLAKE2b-256 fd2d3ae77c0a0bb4c9acc267adb982eda22c822d57d4ef5b746f518351e6218a

See more details on using hashes here.

Supported by

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