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
uvinstead of Poetry. await hub.connect(username, password)replaceshub.init(...).async with AlisteHub()orawait hub.close()now manages HTTP and MQTT lifecycle cleanly.
Project details
Release history Release notifications | RSS feed
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.0.0.tar.gz
(7.5 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
aliste-2.0.0-py3-none-any.whl
(10.2 kB
view details)
File details
Details for the file aliste-2.0.0.tar.gz.
File metadata
- Download URL: aliste-2.0.0.tar.gz
- Upload date:
- Size: 7.5 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bf4d453da3f5bd28611fb0bd3b149e7616328b73b81debda930bcdafda0e26f3
|
|
| MD5 |
0ac057b2776bb2221ce3be0311ca677d
|
|
| BLAKE2b-256 |
1cd155393bc8734283c054af71bab4db376c85eae8f51c2263dbaaaf34bdb4a3
|
File details
Details for the file aliste-2.0.0-py3-none-any.whl.
File metadata
- Download URL: aliste-2.0.0-py3-none-any.whl
- Upload date:
- Size: 10.2 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a58d96c17d7ec62d8ffc9f6cb55afabe47774b302ea31b4b30e8b99157ca8422
|
|
| MD5 |
c995ce86170fb33530a9182855408b59
|
|
| BLAKE2b-256 |
5c21141435756393c4d7501170be12541e4e2cf15eb27045465a56c6fb934912
|