Async Python library for the Akuvox local HTTP API
Project description
pylocal-akuvox
Async Python library for the Akuvox local HTTP API.
pylocal-akuvox provides a single AkuvoxDevice object for
communicating with Akuvox intercoms and access controllers on the LAN.
It supports user/PIN management, relay control, schedule management,
and log retrieval over the device's local HTTP API.
Features
- Async-only — designed for
asyncioevent loops and Home Assistant - Single runtime dependency — only
aiohttp - Full device management — users, PINs, relays, schedules, and logs
- Multiple auth modes — None, Allowlist, Basic, and Digest
- SSL support — including self-signed certificate handling
- Comprehensive error handling — typed exception hierarchy
Installation
pip install pylocal-akuvox
Quick Start
import asyncio
from pylocal_akuvox import AkuvoxDevice
async def main():
async with AkuvoxDevice("192.168.1.100") as device:
info = await device.get_info()
print(f"{info.model} — FW {info.firmware_version}")
asyncio.run(main())
Manage Users and PINs
import asyncio
from pylocal_akuvox import AkuvoxDevice
async def main():
async with AkuvoxDevice("192.168.1.100") as device:
await device.add_user(
name="Alice",
user_id="2001",
web_relay="0",
schedule_relay="1001-1;",
lift_floor_num="0",
private_pin="1234",
)
users = await device.list_users()
for user in users:
print(f"{user.name} (ID: {user.user_id})")
asyncio.run(main())
Trigger a Door Relay
import asyncio
from pylocal_akuvox import AkuvoxDevice
async def main():
async with AkuvoxDevice("192.168.1.100") as device:
await device.trigger_relay(num=1, delay=5)
asyncio.run(main())
Authentication
import asyncio
from pylocal_akuvox import AkuvoxDevice, AuthConfig, AuthMethod
async def main():
# Basic Auth
auth = AuthConfig(method=AuthMethod.BASIC, username="admin", password="secret")
async with AkuvoxDevice("192.168.1.100", auth=auth) as device:
info = await device.get_info()
asyncio.run(main())
Documentation
Full documentation is available at pylocal-akuvox.readthedocs.io.
Contributing
This project uses uv for dependency management.
# Clone and install
git clone https://github.com/tykeal/pylocal-akuvox.git
cd pylocal-akuvox
uv sync --group dev
# Run tests
uv run pytest tests/ -x -q
# Run linting
uv run ruff check src/ tests/
# Build docs locally
uv run --extra docs sphinx-build -b html docs docs/_build/html
License
Apache-2.0 — see LICENSE for details.
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
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
File details
Details for the file pylocal_akuvox-0.1.0.tar.gz.
File metadata
- Download URL: pylocal_akuvox-0.1.0.tar.gz
- Upload date:
- Size: 153.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.2.0 CPython/3.12.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4e74984a20d5981f68b6b007275c637208dcbbd52843f0d68c253495f46b47f4
|
|
| MD5 |
a2c303d5d70a9f37d216886e6f14384e
|
|
| BLAKE2b-256 |
15f9b929f1be0d486e64863b730dda394106ce92bd840a6ebdc84f465ea034e1
|
Provenance
The following attestation bundles were made for pylocal_akuvox-0.1.0.tar.gz:
Publisher:
build-test-release.yaml on tykeal/pylocal-akuvox
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pylocal_akuvox-0.1.0.tar.gz -
Subject digest:
4e74984a20d5981f68b6b007275c637208dcbbd52843f0d68c253495f46b47f4 - Sigstore transparency entry: 976501722
- Sigstore integration time:
-
Permalink:
tykeal/pylocal-akuvox@0101406fcdbaba2d8563d9ead1ad09a26e928b32 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/tykeal
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
build-test-release.yaml@0101406fcdbaba2d8563d9ead1ad09a26e928b32 -
Trigger Event:
push
-
Statement type:
File details
Details for the file pylocal_akuvox-0.1.0-py3-none-any.whl.
File metadata
- Download URL: pylocal_akuvox-0.1.0-py3-none-any.whl
- Upload date:
- Size: 20.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.2.0 CPython/3.12.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7cc781469169b4070eb0cddcef6a52f6b9e0ba2543d7d83609cad618974bdc3f
|
|
| MD5 |
6c9be5d6de3a705dd81b3330c0fb2bc3
|
|
| BLAKE2b-256 |
74965d9f7eea815d932cc9e20523ca6b8a787b73f0bf524333685defc9b2e354
|
Provenance
The following attestation bundles were made for pylocal_akuvox-0.1.0-py3-none-any.whl:
Publisher:
build-test-release.yaml on tykeal/pylocal-akuvox
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pylocal_akuvox-0.1.0-py3-none-any.whl -
Subject digest:
7cc781469169b4070eb0cddcef6a52f6b9e0ba2543d7d83609cad618974bdc3f - Sigstore transparency entry: 976501723
- Sigstore integration time:
-
Permalink:
tykeal/pylocal-akuvox@0101406fcdbaba2d8563d9ead1ad09a26e928b32 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/tykeal
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
build-test-release.yaml@0101406fcdbaba2d8563d9ead1ad09a26e928b32 -
Trigger Event:
push
-
Statement type: