Skip to main content

aioTaipit

CI PyPI

Asynchronous Python API for Taipit cloud meters.

Installation

Use pip to install the library:

pip install aiotaipit

Usage

import asyncio
from pprint import pprint

import aiohttp

from aiotaipit import SimpleTaipitAuth, TaipitApi


async def main(username: str, password: str) -> None:
    """Create the aiohttp session and run the example."""
    async with aiohttp.ClientSession() as session:
        auth = SimpleTaipitAuth(username, password, session)
        api = TaipitApi(auth)

        meters = await api.async_get_meters()

        pprint(meters)


if __name__ == "__main__":
    _username = "<YOUR_USER_NAME>"
    _password = "<YOUR_PASSWORD>"
    asyncio.run(main(_username, _password))

The SimpleTaipitAuth client also accepts custom client ID and secret (this can be found by sniffing the client).

Exceptions

All exceptions inherit from TaipitError:

Exception Description
TaipitApiError Non-auth HTTP errors (server errors, unexpected status codes)
TaipitAuthError Base class for authentication errors
TaipitAuthInvalidGrant Invalid username/password combination
TaipitAuthInvalidClient Invalid OAuth client credentials
TaipitTokenError Base class for token errors
TaipitInvalidTokenResponse Token response missing required fields
TaipitTokenAcquireFailed Failed to acquire a new token
TaipitTokenRefreshFailed Failed to refresh the token

CLI

# Show all meters (guest account)
python -m aiotaipit

# Show meters for a specific user
python -m aiotaipit -u user@example.com -p password

# Show meter info
python -m aiotaipit --info 12345

# Show readings
python -m aiotaipit --readings 12345

# Show settings
python -m aiotaipit --settings

# Show warnings
python -m aiotaipit --warnings

Timeouts

aiotaipit does not specify any timeouts for any requests. You will need to specify them in your own code. We recommend the timeout from asyncio package:

import asyncio

with asyncio.timeout(10):
    all_readings = await api.async_get_meters()

Metadata

Release files for aiotaipit 3.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for aiotaipit 3.0.0
File Size Uploaded Provenance
aiotaipit-3.0.0.tar.gz 14.9 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for aiotaipit 3.0.0
File Interpreter ABI Platform
aiotaipit-3.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 27.0 kB

Release files / aiotaipit-3.0.0.tar.gz

Download URL aiotaipit-3.0.0.tar.gz
Size 14.9 kB
Tags Source
SHA-256 checksum
How to use checksums
7d4c6d2193415d6e7fbcb3b14e1587e795411c4eb39f424037699b8acd90627b
BLAKE2b-256 checksum
How to use checksums
b57dcdc0c742660bef62582e52731f1c7de194df69325d9a1ab4c02cafdebddb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Feb 18, 2026.

Transparency log

Release files / aiotaipit-3.0.0-py3-none-any.whl

Download URL aiotaipit-3.0.0-py3-none-any.whl
Size 12.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ec61c3ffb076758957672264a5c50abfd72d70f0d5dcd9f556766e62735ab4a6
BLAKE2b-256 checksum
How to use checksums
f357c5f897a0a1066f700382a0ca86f11b7be09227e26a43c32662da431c1b0a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Feb 18, 2026.

Transparency log

Security for aiotaipit 3.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for aiotaipit-3.0.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Feb 18, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Release history Release notifications | RSS feed

This release

3.0.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page