Python SDK for api.singularity.energy
Project description
Python Singularity Energy SDK
This package is the Python integration for real time energy data powered by Singularity
Read the full documentation on our readthedocs page
Examples
Here are a couple examples you can use to get started:
from datetime import datetime, timedelta
from singularity import SingularityAPI, Regions, APIException
singularity = SingularityAPI('API_KEY')
end = datetime.utcnow()
start = end - timedelta(hours=4)
events = singularity.search_region_events(
Regions.ISONE,
'carbon_intensity',
start.isoformat() + 'Z',
end.isoformat() + 'Z'
)
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
Close
Hashes for singularity_energy-0.0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8a9ecaf8de327bdefbfb075fcf1da0458dd96aa98fc9f387eb02688ff7458a66 |
|
MD5 | e3d57c288ee3fea21b0a97c463b08c51 |
|
BLAKE2b-256 | 1f11bf27c9d86c392c744a387e1e5b2fdfd5da9bdcf4a65eb6ae2bd26f30a6eb |