Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for singularity-energy, version 0.0.4
Filename, size File type Python version Upload date Hashes
Filename, size singularity_energy-0.0.4-py3-none-any.whl (5.1 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size singularity_energy-0.0.4.tar.gz (5.4 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page