Skip to main content
Change of provenance

The repository or configuration that created this release differ from a previous release. View details.

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.1

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

Change of provenance

The repository or configuration that created these release files differ from that of a previous release.

We recommend inspecting the repository and configuration before proceeding. View details.

Source distribution (sdist)

Source distribution for aiotaipit 3.1.1
File Size Uploaded Provenance Actions
aiotaipit-3.1.1.tar.gz 15.5 kB With provenance Details for aiotaipit-3.1.1.tar.gz

Built distribution (wheel)

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

Total release size: 27.7 kB

Release files / aiotaipit-3.1.1.tar.gz

Change of provenance

This file belongs to a release with changed provenance: the repository or configuration that created the release files differ from that of a previous release.

We recommend inspecting the repository and configuration before proceeding. View details.

Download URL aiotaipit-3.1.1.tar.gz
Size 15.5 kB
Tags Source
SHA-256 checksum
How to use checksums
3dc38dbf87da033ce6c9b67ad7e5323dc8637c976c50a052bf2d26c05663b24b
BLAKE2b-256 checksum
How to use checksums
7abaf92db88d5620ab67b908f37f7c93b8528a7954eaf59537aa7ff9d257cfb6
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 20, 2026.

Transparency log

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

Change of provenance

This file belongs to a release with changed provenance: the repository or configuration that created the release files differ from that of a previous release.

We recommend inspecting the repository and configuration before proceeding. View details.

Download URL aiotaipit-3.1.1-py3-none-any.whl
Size 12.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
68c7313b6a2a70a1ca77091af47508b2e5f7b5ea39c5760e75ea773ebe729358
BLAKE2b-256 checksum
How to use checksums
3d102978531f184086eeaa9f75676033b58b45610958cc670b7df747a20206f8
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 20, 2026.

Transparency log

Security for aiotaipit 3.1.1

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.

Change of provenance

The repository and configuration that created this release differ from a previous release.

While this could reflect a routine change by the project maintainers, it may also indicate that the release files have been compromised.

Select from 2 files

Attestation for aiotaipit-3.1.1.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 20, 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