KNX / EIB library
Project description
A minimalistic KNX / EIB python library. It can be used to send telegrams to actors in the bus system:
>>> from knx import connect
>>> with connect() as c:
... c.write('0/1/14', 1)
Or it can be used to listen to the traffic on the bus system:
>>> import knx >>> @knx.coroutine ... def logger(): ... while True: ... telegram = (yield) ... print(telegram.src) ... print(telegram.dst) ... print(telegram.value) >>> knx.listen(logger())
See the examples folder for a full working example.
Install & Requirements
Python >= 3.4
Install using pip:
$ pip install knx
Disclaimer
I’ve only tested this with eibd 0.0.5 as a gateway.
Development
In order to setup a sandboxed development environment use buildout:
Create a virtual environment to have a python without any third-party packages in it’s sys.path: (Kinda Optional):
python -m venv .venv
Run bootstrap.py:
.venv/bin/python bootstrap.py
Run bin/buildout:
bin/buildout
Once these steps are done you’ll be able to run tests using bin/test.
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 knx-0.2.0.tar.gz.
File metadata
- Download URL: knx-0.2.0.tar.gz
- Upload date:
- Size: 7.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e270470c38535d3acbfc72a2d9b9f95a1dd0987d63a3c693f5d58d5643f34e6e
|
|
| MD5 |
59291f523b8ea9a0f4591cebbb2b8c4a
|
|
| BLAKE2b-256 |
25483c101552ab3d17205e3d7fe9fbb8ccb323f0552d845a5cce734f74e83ca6
|
File details
Details for the file knx-0.2.0-py2.py3-none-any.whl.
File metadata
- Download URL: knx-0.2.0-py2.py3-none-any.whl
- Upload date:
- Size: 5.9 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9e1f258e477ea413982367616e07f9a8f7f8172dc2f013c8a59fec0e928253be
|
|
| MD5 |
2552e39c13768e17139c543ad063466d
|
|
| BLAKE2b-256 |
887d82a8c1e1596c490f05e9e35fe8adaa9fe7490fe994a402b279f0948c9a23
|