Async Python client for the Duco ventilation API
Project description
python-duco-client
Async Python client for the DUCO ventilation box local REST API.
Installation
pip install python-duco-client
Quick start
import asyncio
import aiohttp
from duco import DucoClient
async def main():
async with aiohttp.ClientSession() as session:
client = DucoClient(session=session, host="192.168.1.100")
board = await client.async_get_board_info()
print(f"Box: {board.box_name} ({board.box_sub_type_name})")
nodes = await client.async_get_nodes()
for node in nodes:
print(f"Node {node.node_id}: {node.general.node_type}")
if node.sensor and node.sensor.co2 is not None:
print(f" CO2: {node.sensor.co2} ppm")
await client.async_set_ventilation_state(1, "MAN2")
asyncio.run(main())
CLI
duco --host 192.168.1.100 info
duco --host 192.168.1.100 nodes
duco --host 192.168.1.100 set 1 MAN2
Documentation
See the docs/ folder for the full documentation:
License
MIT
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
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 python_duco_client-0.3.6.tar.gz.
File metadata
- Download URL: python_duco_client-0.3.6.tar.gz
- Upload date:
- Size: 18.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
551d8090b019e990186ae99ecf6f5045f1a608010749339c4e81a1a1c359793c
|
|
| MD5 |
1e00593aa39fff8fc694bbcc6caae881
|
|
| BLAKE2b-256 |
15b870ba7ca8c2fb62d1476d316a64cae209f31be4288f578b9b1fbca82131d5
|
Provenance
The following attestation bundles were made for python_duco_client-0.3.6.tar.gz:
Publisher:
ci.yml on ronaldvdmeer/python-duco-client
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
python_duco_client-0.3.6.tar.gz -
Subject digest:
551d8090b019e990186ae99ecf6f5045f1a608010749339c4e81a1a1c359793c - Sigstore transparency entry: 1366721534
- Sigstore integration time:
-
Permalink:
ronaldvdmeer/python-duco-client@95717afce15acba300cdae1ae1c6d3d764b7f7e3 -
Branch / Tag:
refs/tags/v0.3.6 - Owner: https://github.com/ronaldvdmeer
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
ci.yml@95717afce15acba300cdae1ae1c6d3d764b7f7e3 -
Trigger Event:
push
-
Statement type:
File details
Details for the file python_duco_client-0.3.6-py3-none-any.whl.
File metadata
- Download URL: python_duco_client-0.3.6-py3-none-any.whl
- Upload date:
- Size: 14.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
67e4be735b24229e59a9691afd0104be91c4fff1b0f533c5cbc06224ac02bce8
|
|
| MD5 |
eff0393ebdb14bc00e4e059bfcee55b4
|
|
| BLAKE2b-256 |
1b74d1c8f8c5866ef1a19b4c7b038a2d2c1a2ec834b97f15822aae013c0bcb0f
|
Provenance
The following attestation bundles were made for python_duco_client-0.3.6-py3-none-any.whl:
Publisher:
ci.yml on ronaldvdmeer/python-duco-client
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
python_duco_client-0.3.6-py3-none-any.whl -
Subject digest:
67e4be735b24229e59a9691afd0104be91c4fff1b0f533c5cbc06224ac02bce8 - Sigstore transparency entry: 1366721574
- Sigstore integration time:
-
Permalink:
ronaldvdmeer/python-duco-client@95717afce15acba300cdae1ae1c6d3d764b7f7e3 -
Branch / Tag:
refs/tags/v0.3.6 - Owner: https://github.com/ronaldvdmeer
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
ci.yml@95717afce15acba300cdae1ae1c6d3d764b7f7e3 -
Trigger Event:
push
-
Statement type: