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.2.0.tar.gz
(5.1 kB
view hashes)
Built Distribution
Close
Hashes for pytrutankless-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5f82950bffc4937eaa4d44ad4c448f0fe335ee2a5e1007c5144038a239b7850c |
|
MD5 | a453485b69cefacefa3642668e148f4c |
|
BLAKE2b-256 | e63c4d3bfe376ba5cc3e33cda8518d5b8ee45a5cb66048eabf757ea1f3f8aa06 |