A Python client library for the TruTankless API
Project description
pytrutankless
Python interface for TRUTANKLESS branded water heaters
Installation
pip install pytrutankless
Usage
from pytrutankles.api import TruTanklessApiInterface
email = "your_email"
password = "your_password"
api = await TruTanklessApiInterface.login(email, password)
Methods
login(email, password)
api.login(email, password)
Given email and password, logs into service and retrieves access_token
get_devices()
api.get_devices()
Updates list of locations and devices. Returns dictionary of device objects.
refresh_device(device_id)
api.refresh_device(device_id)
Given device_id
, updates usage data for that device.
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
pytrutankless-0.4.1.tar.gz
(5.4 kB
view hashes)
Built Distribution
Close
Hashes for pytrutankless-0.4.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9be474e708de290d9487cbc2fd01f34bbe2fa5eab7717e1b7334618964ac874e |
|
MD5 | 1c808537018ca286fa39cdf148b6cae7 |
|
BLAKE2b-256 | 5b345c128bfc6a3565842ba28c710346172c2fc3933b34a4886ffd989ec4abc8 |