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

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, pagination = 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.

Source Distribution

singularity_energy-0.0.9.tar.gz (6.7 kB view details)

Uploaded Source

Built Distribution

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

singularity_energy-0.0.9-py3-none-any.whl (6.4 kB view details)

Uploaded Python 3

File details

Details for the file singularity_energy-0.0.9.tar.gz.

File metadata

  • Download URL: singularity_energy-0.0.9.tar.gz
  • Upload date:
  • Size: 6.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.8.1

File hashes

Hashes for singularity_energy-0.0.9.tar.gz
Algorithm Hash digest
SHA256 6723a0631d8768065364a46ce81467ab5fbd1ce4bdf3417435e67055370e81e4
MD5 82659ffa7b50c47bffb176d8d7d936c6
BLAKE2b-256 d86560c7d8fcc36aac07b1c363ae7c662b3c633e70607225ec353ecc0aa2652f

See more details on using hashes here.

File details

Details for the file singularity_energy-0.0.9-py3-none-any.whl.

File metadata

  • Download URL: singularity_energy-0.0.9-py3-none-any.whl
  • Upload date:
  • Size: 6.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.8.1

File hashes

Hashes for singularity_energy-0.0.9-py3-none-any.whl
Algorithm Hash digest
SHA256 b2518f977bfc60a35a4d9afc4826eb10a75caa87feaac0a4c5952ca18babc963
MD5 0678bbc2f179d65e6618814736b079cb
BLAKE2b-256 1ff08850bf92bc39c28aa8142f1c94cfe982c1240b45801878e3701aeb98115e

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