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.1.1.tar.gz
(8.1 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.1.1-py3-none-any.whl
(10.8 kB
view details)
File details
Details for the file aliste-2.1.1.tar.gz.
File metadata
- Download URL: aliste-2.1.1.tar.gz
- Upload date:
- Size: 8.1 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 |
ca8ecf561ac2b41214820e563b3e2479f2d3de300a406beb11653958cc05140f
|
|
| MD5 |
905203d9f731d9f1542c4c84750d901f
|
|
| BLAKE2b-256 |
f3517ea8acc513c6097297c29cddd8d00b96954789d56bc5f56f32627e9c97ce
|
File details
Details for the file aliste-2.1.1-py3-none-any.whl.
File metadata
- Download URL: aliste-2.1.1-py3-none-any.whl
- Upload date:
- Size: 10.8 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 |
b4a9b76fba3c04487d886d27917f7db99149fad999ca1e1d67d86a0b671b1b6d
|
|
| MD5 |
441f2820c6683caca45eec01b3b737a2
|
|
| BLAKE2b-256 |
337d2df78a8e255844894482dec24c41a03038cbfc6552fb6409248c73b278f8
|