Skip to main content

Async Python SDK for Aliste Smart Home devices.

Project description

Aliste Smart Home SDK for Python

aliste 2.0 is an async-first SDK for discovering and controlling Aliste smart home devices from Python.

Requirements

  • Python 3.11 or newer
  • An Aliste account with at least one configured home

Install

uv add aliste

For a plain pip install:

pip install aliste

Development

uv sync --group dev
uv run ruff check .
uv run mypy aliste
uv build --no-sources

Quickstart

import asyncio

from aliste import AlisteHub


async def main() -> None:
    async with AlisteHub() as hub:
        await hub.connect("+91xxxxxxxxxx", "your-password")

        if hub.home is None:
            return

        print(f"Connected to {hub.home.name}")

        living_room_light = hub.home.get_device("device-id")
        if living_room_light is not None:
            await living_room_light.turn_on()


asyncio.run(main())

Live Smoke Test

List the first few devices on a real account:

ALISTE_USERNAME="+91xxxxxxxxxx" ALISTE_PASSWORD="your-password" \
uv run python scripts/test_live.py --action list

Toggle a specific device:

ALISTE_USERNAME="+91xxxxxxxxxx" ALISTE_PASSWORD="your-password" \
uv run python scripts/test_live.py --action toggle --device-id your-device-id

2.0 Migration Notes

  • The minimum supported Python version is now 3.11.
  • Packaging and local development use uv instead of Poetry.
  • await hub.connect(username, password) replaces hub.init(...).
  • async with AlisteHub() or await hub.close() now manages HTTP and MQTT lifecycle cleanly.

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

aliste-2.1.2.tar.gz (8.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

aliste-2.1.2-py3-none-any.whl (10.9 kB view details)

Uploaded Python 3

File details

Details for the file aliste-2.1.2.tar.gz.

File metadata

  • Download URL: aliste-2.1.2.tar.gz
  • Upload date:
  • Size: 8.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.29 {"installer":{"name":"uv","version":"0.11.29","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for aliste-2.1.2.tar.gz
Algorithm Hash digest
SHA256 a5aba2ce6704f558f893584cfb4ec047553f8163440d541ea1d0841b2ac62d92
MD5 4b46dbd3abb3ae4c1b939976cd2b6570
BLAKE2b-256 99b7e5bd354d2d962e7d7144009d0475b8222b93ba639685a9c06e8686499b33

See more details on using hashes here.

File details

Details for the file aliste-2.1.2-py3-none-any.whl.

File metadata

  • Download URL: aliste-2.1.2-py3-none-any.whl
  • Upload date:
  • Size: 10.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.29 {"installer":{"name":"uv","version":"0.11.29","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for aliste-2.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 62ba169501b3f835176103c338b11fd7cb85ad14300f3f83c15ad2ef1c20c5dd
MD5 5473493123b341a4e3aacd7dcdc40fb8
BLAKE2b-256 f6df2cb4342a5aeb5492c82fc57aac84ee781d42079af8cf760fe55826809df8

See more details on using hashes here.

Supported by

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