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.1.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.1.0
File Size Uploaded Provenance Actions
aiotaipit-3.1.0.tar.gz 15.5 kB With provenance Details for aiotaipit-3.1.0.tar.gz

Built distribution (wheel)

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

Total release size: 27.7 kB

Release files / aiotaipit-3.1.0.tar.gz

Download URL aiotaipit-3.1.0.tar.gz
Size 15.5 kB
Tags Source
SHA-256 checksum
How to use checksums
2e3ae853fd7cb0a9e6b1415816f927f85e336c076bd65602dd30ae389cefeb2f
BLAKE2b-256 checksum
How to use checksums
7674983da81ef2d6af1ea19ef5ad05141f6ba3b0c578dfe05f2d2a78f2fcad9e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 18, 2026.

Transparency log

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

Download URL aiotaipit-3.1.0-py3-none-any.whl
Size 12.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5552d68f94a0283e113f09029d845d6c48cd68b6c0fcda33b08ff30995d80a87
BLAKE2b-256 checksum
How to use checksums
6107c5165bd9215176276e0b83d6a26887c78bbb0ff89373f29a93eff72ea1b2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 18, 2026.

Transparency log

Security for aiotaipit 3.1.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

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for aiotaipit-3.1.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 Nov 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.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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