Skip to main content

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:

  1. Create a virtual environment to have a python without any third-party packages in it’s sys.path: (Kinda Optional):

    python -m venv .venv
  2. Run bootstrap.py:

    .venv/bin/python bootstrap.py
  3. 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

knx-0.2.0.tar.gz (7.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

knx-0.2.0-py2.py3-none-any.whl (5.9 kB view details)

Uploaded Python 2Python 3

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

Hashes for knx-0.2.0.tar.gz
Algorithm Hash digest
SHA256 e270470c38535d3acbfc72a2d9b9f95a1dd0987d63a3c693f5d58d5643f34e6e
MD5 59291f523b8ea9a0f4591cebbb2b8c4a
BLAKE2b-256 25483c101552ab3d17205e3d7fe9fbb8ccb323f0552d845a5cce734f74e83ca6

See more details on using hashes here.

File details

Details for the file knx-0.2.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for knx-0.2.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 9e1f258e477ea413982367616e07f9a8f7f8172dc2f013c8a59fec0e928253be
MD5 2552e39c13768e17139c543ad063466d
BLAKE2b-256 887d82a8c1e1596c490f05e9e35fe8adaa9fe7490fe994a402b279f0948c9a23

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page