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
username = 'your username'
password = 'your password'
client = SrpEnergyClient(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 Distribution
Built Distributions
Hashes for srpenergy-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1b21a2decc539dc58a05d92e448d1dc90a59eee9bc01343f24aa351f90908b90 |
|
MD5 | 58beda70cfe221061f6569f6c90521f3 |
|
BLAKE2b-256 | 64e2b4d76ab5b13eb4b87fc884a333bf10d83f2bbb18ead7554d00dea9716e77 |
Hashes for srpenergy-1.0.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0617c8f0ff97c527a8e9cfd40713d5981a12a498ef8c789d42665b1c06416197 |
|
MD5 | 759728fb94b487a73ac9c8d8227a008b |
|
BLAKE2b-256 | 9e3faf388499f3d2313cfa51a3f2861707a435c55d709902aac2f5d75f69d283 |