Skip to main content

aiolauntel

An asynchronous Python client for the API used by the My Launtel mobile app. It has no Home Assistant dependency and supports all nine recovered API operations.

Source and issue tracking are maintained at Poshy163/aiolauntel. This is an unofficial client and is not endorsed by Launtel.

Local installation and tests

Python 3.13 or newer is required. From this directory:

python -m pip install -e ".[test]"
python -m pytest

The tests intercept HTTP requests and use synthetic values. They do not contact Launtel or require Home Assistant. Build distributions locally with python -m build after installing the build package.

Maintainers can run python scripts/release.py to test and build a release locally. See RELEASING.md for the PyPI trusted publisher setup, version tags, and retries. The helper never commits, pushes, tags, or uploads.

Usage

import aiohttp

from aiolauntel import LauntelApi


async def read_account(token: str) -> dict:
    async with aiohttp.ClientSession() as session:
        api = LauntelApi(session, token=token)
        return await api.async_get_user()

The caller supplies and closes the aiohttp.ClientSession. For initial sign-in, construct the client without a token and call await api.async_login(username, password). This returns a bearer token and sets api.token; the caller decides whether and how to persist it. The login request retains the existing device_name value, Home Assistant, for compatibility. The client does not persist credentials or provide automatic sign-in/token refresh.

Operations

Method Result
async_login(username, password) Token string; also updates api.token
async_get_user() Raw account dictionary, including resi_user_id
async_get_services() List of raw service dictionaries, each containing avcid
async_get_plans(avc_id) Dictionary containing raw plans and has_custom_shaper
async_modify_service(avc_id, ps_id, disc_code=None) Applies the selected catalog entry; returns None
async_create_health_check(avc_id) Creates a diagnostic job; returns its string or integer ID
async_get_health_checks(avc_id) List of raw health records in server order
async_get_health_check(job_id) One raw health record
async_get_portal_token() Residential portal sign-in token string

Responses retain their wire field names and optional fields. The client validates the response envelope, object/list shape, and essential identifiers; it does not coerce optional values or invent missing service data. Missing has_custom_shaper defaults to False. Service modification uses the selected catalog entry's id as ps_id, not its speed_id or plan_id, and accepts the app's exact successful HTTP statuses, 200 and 202.

The client makes a request only when an operation is called. It does not poll, create background tasks, retry failed requests, or repeat POST operations. Applications own polling schedules, ownership checks, action confirmation, and authentication policy. Health polling should distinguish is_finished from is_complete; both raw flags are preserved.

Errors and transport behavior

All errors derive from LauntelApiError:

  • LauntelAuthError: missing/invalid bearer credentials or HTTP 401.
  • LauntelConnectionError: request timeout, transport failure, or unreadable transport response.
  • LauntelRateLimitError: HTTP 429. Its retry_after contains the server's numeric delay in seconds when supplied, capped at 86,400; otherwise it is None. HTTP-date forms are not interpreted.
  • LauntelApiError: other rejected HTTP responses or malformed response data.

Requests use the fixed HTTPS mobile API origin, a 30-second total timeout, encoded path identifiers, and disabled redirects. Exceptions omit raw server bodies and credentials. Raw account/service results and portal tokens can still contain private information; applications should avoid logging them.

The API was recovered from the mobile app. Server token expiration, revocation, and the backend's complete schema are not specified by this client.

License

MIT; see LICENSE.

Metadata

Release files for aiolauntel 0.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 aiolauntel 0.1.0
File Size Uploaded Provenance Actions
aiolauntel-0.1.0.tar.gz 15.8 kB Without provenance Details for aiolauntel-0.1.0.tar.gz

Built distribution (wheel)

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

Total release size: 23.0 kB

Release files / aiolauntel-0.1.0.tar.gz

Download URL aiolauntel-0.1.0.tar.gz
Size 15.8 kB
Tags Source
SHA-256 checksum
How to use checksums
f0b44a93f1be43db77849d97cc1b3a0a04b1de21c7ed40814134c5bcb0ecf7ee
BLAKE2b-256 checksum
How to use checksums
531183f581b8c8ec2bce6e3c9d677a486f80dd2e7fd9d5ad1364e749ab1a4c21
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / aiolauntel-0.1.0-py3-none-any.whl

Download URL aiolauntel-0.1.0-py3-none-any.whl
Size 7.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8a6e1ba246bcb11664be84d3afc356b41145ad9986aa75a487b37df309ac54e4
BLAKE2b-256 checksum
How to use checksums
d09cd9c461729987a5ab4bd7639266fea6e150ec79a0643997a35b178019b2bf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Security for aiolauntel 0.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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No 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