API to access energy data
Project description
isodata provides standardized API to access energy data to the major Independent System Operators in the United States.
Install
isodata supports python 3.7+. Install with pip
python -m pip install isodata
Getting Started
First, we can see all of the ISOs that are supported
>>> import isodata
>>> isodata.list_isos()
Name Id
0 California ISO caiso
1 Electric Reliability Council of Texas ercot
2 New York ISO nyiso
3 Southwest Power Pool spp
4 PJM pjm
5 Midcontinent ISO miso
6 ISO New England isone
Next, we can select an ISO we want to use
>>> iso = isodata.get_iso('pjm')
>>> pjm = iso()
All ISOs have the same API. Here is how we can get the fuel mix
>>> pjm.get_fuel_mix()
Total Production: 110490 MW
Time: 2022-07-29T09:00:00
+------------------+---------+-----------+
| Fuel | MW | Percent |
|------------------+---------+-----------|
| Gas | 48778.5 | 44.1 |
| Nuclear | 32309.7 | 29.2 |
| Coal | 24781 | 22.4 |
| Solar | 2293.2 | 2.1 |
| Other Renewables | 684 | 0.6 |
| Hydro | 495.7 | 0.4 |
| Other | 398.8 | 0.4 |
| Wind | 314.2 | 0.3 |
| Multiple Fuels | 217.8 | 0.2 |
| Oil | 217.1 | 0.2 |
| Storage | 0 | 0 |
+------------------+---------+-----------+
Where does the data come from?
isodata uses publically available APIs provided by the ISOs, but falls back to webscraping if an API isn't available.
Feedback Welcome
isodata is under active development. If there is any particular data you would like access to, let us know by posting an issue or emailing kmax12@gmail.com.
Related projects
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file isodata-0.2.0.tar.gz.
File metadata
- Download URL: isodata-0.2.0.tar.gz
- Upload date:
- Size: 6.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.7.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5a6582f98e2ba38cdfbad557f920c7e7de05b350101f934212525d56bc643a60
|
|
| MD5 |
f73c037c18ae657b9b583fcd23ae6f6f
|
|
| BLAKE2b-256 |
ac653c839ae8c65349b77d8466a7875b1b0d9110d2b3dfda54250b6b81681b7d
|
File details
Details for the file isodata-0.2.0-py3-none-any.whl.
File metadata
- Download URL: isodata-0.2.0-py3-none-any.whl
- Upload date:
- Size: 9.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.7.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7c9496afed7b53890c765e122cf64d9f810bf81a82f86219529eb0b499483f58
|
|
| MD5 |
a421cc84ed2360b9b90348bc28f6ea53
|
|
| BLAKE2b-256 |
279ef3e61bc9e0550a0d5085bc1340c3796417b6ede51a82eb3f6b619493cef2
|