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.2.0.tar.gz
(9.9 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.2.0-py3-none-any.whl
(12.7 kB
view details)
File details
Details for the file aliste-2.2.0.tar.gz.
File metadata
- Download URL: aliste-2.2.0.tar.gz
- Upload date:
- Size: 9.9 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 |
cd6ff51e25f13b305a2c2e2d0777eb55b1237d0798376ea909b2ad9ecd4d7e4a
|
|
| MD5 |
c4ab2f6031cbff1cabd44ef824c0cdd3
|
|
| BLAKE2b-256 |
43f845899f3989e5c3f86c7496c9351dfa4ee28385d041c2be80bd1e50163b4f
|
File details
Details for the file aliste-2.2.0-py3-none-any.whl.
File metadata
- Download URL: aliste-2.2.0-py3-none-any.whl
- Upload date:
- Size: 12.7 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 |
ef2dcec7e2d310d1b1f18cd7424245b308e79dfd072d692119662378dc602f25
|
|
| MD5 |
d76d3f26aa889cd0462a39760be00dfa
|
|
| BLAKE2b-256 |
f04f7f168cdd585cf48d808214098a296fb18cec817b35f1c42554f2b3d5326e
|