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.1.1.tar.gz
(5.0 kB
view hashes)
Built Distribution
Close
Hashes for pytrutankless-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6316b317599b09099eaeaf1bd32e9a1793d21e2a67240e724f243953051f9f4e |
|
MD5 | 95a8923c151828b883ec1624eb1d117b |
|
BLAKE2b-256 | 5c8a63c0f3ee27267e738422e45c050da0c29592cf92725396282f082a88d21b |