Python Client for GridStatus.io API
Project description
GridStatus.io Hosted API
Python client for accessing the GridStatus.io Hosted API.
Installation
gridstatusio supports python 3.9+. Install with pip:
pip install gridstatusio
Upgrade using the following command
python -m pip install --upgrade gridstatusio
Getting Started
- Sign up for a Grid Status account and retrieve your API key from your settings page
- Set your API key as an environment variable:
export GRIDSTATUS_API_KEY=your_api_key
- NOTE: the Grid Status API has a 1 million rows per month limit on the free plan. This limit is very easy to exceed when querying data, especially real time prices.
- Make sure to add
limit
to all of yourget_dataset
calls to avoid quickly exceeding the limit.
- Make sure to add
- The Grid Status API has rate limits that restrict the number of requests that are allowed each second, minute and hour. If rate limits are hit the client will automatically retry the request after a delay. You can configure the maximum number of retries using the
max_retries
parameter when initializing the client. If you find yourself hitting rate limits, you may need to add a delay between your requests. The Grid Status Pricing Page contains more details on specific rate limits.
Check out this example notebook: Getting Started
Other Examples:
Open Source
If you prefer to use an open source library that fetches data directly from the source, you can check out the github repo. For more information on Hosted API vs Open Source API, please see this guide
Get Help
We'd love to answer any usage or data access questions! Please let us know by emailing us at contact@gridstatus.io
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
File details
Details for the file gridstatusio-0.8.0.tar.gz
.
File metadata
- Download URL: gridstatusio-0.8.0.tar.gz
- Upload date:
- Size: 14.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7fb92374826a0a28119e8a36542f7a0223d538b3c30bc71bcd657d3ba60a30fb |
|
MD5 | cbb5ce8f87c2e3419287bd1d2a5fe60f |
|
BLAKE2b-256 | 1280664a9fd6097ebf746a82a1441f00a3c030b9f2a30693c5c3dd819e94972f |
File details
Details for the file gridstatusio-0.8.0-py3-none-any.whl
.
File metadata
- Download URL: gridstatusio-0.8.0-py3-none-any.whl
- Upload date:
- Size: 15.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 06f5a0d1374e447c5d8eac4ada4af6a9a343abcc054ee650cc66f3feb211540e |
|
MD5 | 1ada2d8f68894c4732705544d30bc92e |
|
BLAKE2b-256 | f30062723a93999a1bcf13c0337e7ecccf4d98e9bf78eec6fac88402465ff8cc |