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:

>>> @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.

Requirements

  • Python 3.4

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.1.1.tar.gz (1.7 kB view details)

Uploaded Source

File details

Details for the file knx-0.1.1.tar.gz.

File metadata

  • Download URL: knx-0.1.1.tar.gz
  • Upload date:
  • Size: 1.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for knx-0.1.1.tar.gz
Algorithm Hash digest
SHA256 b140e161fbc964cccdf245d5e6016c6efa1fd6a9661962f17ea73fa88482cbc2
MD5 80bb845722395490e4e9d44d70902df3
BLAKE2b-256 e0c9f9a045f35bee264e7b9837350602ae9d5554aa86f6fd2951205353bbc3ec

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