Skip to main content

This packages gives you interfaces to various providers of electricity grid data

Project description

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

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

electricityapi-0.2.dev1.tar.gz (14.5 kB view details)

Uploaded Source

Built Distribution

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

electricityapi-0.2.dev1-py3-none-any.whl (14.7 kB view details)

Uploaded Python 3

File details

Details for the file electricityapi-0.2.dev1.tar.gz.

File metadata

  • Download URL: electricityapi-0.2.dev1.tar.gz
  • Upload date:
  • Size: 14.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.12.0

File hashes

Hashes for electricityapi-0.2.dev1.tar.gz
Algorithm Hash digest
SHA256 5b9841ea5d8ff08072f35e2b1682a73b70253b60b3001d0bbce999008034e147
MD5 d9afd7257ae7a359327f6c3e797272a5
BLAKE2b-256 640f4440e7c23c0e98b2d488dd21c298a4aabd9473ae1b78bf6f9debee8f2e6a

See more details on using hashes here.

File details

Details for the file electricityapi-0.2.dev1-py3-none-any.whl.

File metadata

File hashes

Hashes for electricityapi-0.2.dev1-py3-none-any.whl
Algorithm Hash digest
SHA256 3f8d63582dab035ce947eb95dd7554ff33174dac1a3f4a73e8086d05d6293be9
MD5 adf27b43cb70bdd54b4f6a4cf2cf90f2
BLAKE2b-256 34f5d0ae3a41ebec3b25a17445dcae969bff92228b4203e49d32a0146e6d67b7

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