Skip to main content

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


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)

Uploaded Source

Built Distribution

pytrutankless-0.2.0-py3-none-any.whl (6.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page