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
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.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4cf407703ef50405cfdd9ab64c8de307180740f47dc92d1fc0857ba24496916a |
|
MD5 | af9a8e615250e520dac2e7217bfe860c |
|
BLAKE2b-256 | c12e6a030341a0be43ceb5fa827820b41a3283ae09cc35e2c40519c51bc374fc |