This release is a pre-release and may not be stable for production use.
electricityAPI
This packages gives you interfaces to various providers of electricity grid data.
Currently we only support electricitymap.org but are planing to add many more. Please leave a comment or pr if you want to contribute more providers.
electricitymap.org
https://www.electricitymaps.com/ is a great resource to get data about grid intensity. They also have a great api [0] that can be used to query the data programmatically.
This package has no affiliation with https://www.electricitymaps.com/ it is just to make the querying easier. Our thanks go out to the great people at electricitymaps for creating such an amazing project.
Currently we don't support the full api but we are working on it. Feel free to help us and submit a pull request.
We also use the free tier urls to date!!!
Installation
pip install electricityapi
Please set the ELECTRICITYMAP_API_TOKEN if you want to use the test code provided
export ELECTRICITYMAP_API_TOKEN='your_api_token_here'
Usage
[0] https://static.electricitymaps.com/api/docs/index.html#introduction
Metadata
Release files for electricityapi 0.2.dev1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| electricityapi-0.2.dev1.tar.gz | 14.5 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| electricityapi-0.2.dev1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 29.2 kB
Release files / electricityapi-0.2.dev1.tar.gz
| Download URL | electricityapi-0.2.dev1.tar.gz |
|---|---|
| Size | 14.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5b9841ea5d8ff08072f35e2b1682a73b70253b60b3001d0bbce999008034e147
|
|
BLAKE2b-256 checksum How to use checksums |
640f4440e7c23c0e98b2d488dd21c298a4aabd9473ae1b78bf6f9debee8f2e6a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.12.0
|
Release files / electricityapi-0.2.dev1-py3-none-any.whl
| Download URL | electricityapi-0.2.dev1-py3-none-any.whl |
|---|---|
| Size | 14.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3f8d63582dab035ce947eb95dd7554ff33174dac1a3f4a73e8086d05d6293be9
|
|
BLAKE2b-256 checksum How to use checksums |
34f5d0ae3a41ebec3b25a17445dcae969bff92228b4203e49d32a0146e6d67b7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.12.0
|
Security for electricityapi 0.2.dev1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.