An unofficial Python module for interacting with Srp Energy data
Project description
The srpenergy module is an unofficial Python module for interacting with Srp Energy data.
Development: https://github.com/lamoreauxlab/srpenergy-api-client-python/
Documentation: https://srpenergy-api-client-python.readthedocs.io/
Srp provides an hourly energy usage report for their customers. The srpenergy module fetches the data found on the website.
Usage Date |
Hour |
kWh |
Cost |
---|---|---|---|
9/19/2018 |
12:00 AM |
1.2 |
$0.17 |
9/19/2018 |
1:00 AM |
2.1 |
$0.30 |
9/19/2018 |
2:00 AM |
1.5 |
$0.23 |
9/19/2018 |
3:00 AM |
1.3 |
$0.20 |
9/19/2018 |
4:00 AM |
1.5 |
$0.23 |
9/19/2018 |
5:00 AM |
1.5 |
$0.23 |
Installing
It is distributed on PyPI and can be installed with pip:
pip install srpenergy
Use
from srpenergy.client import SrpEnergyClient
accountid = 'your account id'
username = 'your username'
password = 'your password'
client = SrpEnergyClient(accountid, username, password)
usage = client.usage(start_date, end_date)
date, hour, isodate, kwh, cost = usage[0]
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 Distributions
Built Distribution
Hashes for srpenergy-1.0.5-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4030c7b0b8e76ecbdffa9b5c712b81b4b16a4fd38b55b08ae4725c9a7a23be5b |
|
MD5 | fd95a02efc4f455c64f162ec3e6cde32 |
|
BLAKE2b-256 | d2ffa7ba4cc20af7ed77e84f1b21c24ae33d58ed8b02f9ce9854a300093936e1 |