Unofficial Amber Electric API Library
Project description
Python Library for Amber Electric API
Description
Connects to the Amber Electric API and retrieves market, usage and pricing information
Note
This is in no way affiliated with Amber Electric.
Issues
I don't know what the usage data for an account looks like at the moment. Until I have an account with active usage data - this part of the API is going to be very light.
Logging / Debugging
This library uses logging
just set the log level and format you need.
Example
See current market pricing
from amber_electric import AmberElectric
api = AmberElectric(
latitude=-37.828690,
longitude=144.997460,
)
print(api.market)
Get your current pricing
api = AmberElectric(
latitude=-37.828690,
longitude=144.997460,
username="family@example.com",
password="secret"
)
await api.auth()
print(api.price)
Get your current usage (WIP)
api = AmberElectric(
latitude=-37.828690,
longitude=144.997460,
username="family@example.com",
password="secret"
)
await api.auth()
print(api.usage)
Support
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
amber-electric-0.0.7.tar.gz
(29.6 kB
view hashes)
Built Distribution
Close
Hashes for amber_electric-0.0.7-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 311c591a2566000822916eaeeb56f9621f763caa7a57fe877bcee7988beadf6d |
|
MD5 | 467fa67d3750275f2bec4278ab883684 |
|
BLAKE2b-256 | 07f516b1cb7b1347d2ba3c4029d14eea762e9a7a36b39b851049e6085496e9e6 |