Skip to main content

python ownet client library

Project description

Package Documentation

pyownet is a pure python package that allows to access an owserver via the owserver network protocol, in short ownet.

owserver is part of the OWFS 1-Wire File System:

OWFS is an easy way to use the powerful 1-wire system of Dallas/Maxim.

OWFS is a simple and flexible program to monitor and control the physical environment. You can write scripts to read temperature, flash lights, write to an LCD, log and graph, …

The pyownet.protocol module is a low-level implementation of the ownet protocol. Interaction with an owserver takes place via a proxy object whose methods correspond to ownet messages:

>>> owproxy = pyownet.protocol.proxy(host="owserver.example.com", port=4304)
>>> owproxy.ping()
>>> owproxy.dir()
['/10.67C6697351FF/', '/05.4AEC29CDBAAB/']
>>> owproxy.present('/10.67C6697351FF/temperature')
True
>>> owproxy.read('/10.67C6697351FF/temperature')
'     91.6195'

Python 3 is supported via 2to3 and use_2to3 = True in setup.py.

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

pyownet-0.8.2.tar.gz (23.3 kB view hashes)

Uploaded Source

Built Distributions

pyownet-0.8.2-py3-none-any.whl (10.4 kB view hashes)

Uploaded Python 3

pyownet-0.8.2-py2-none-any.whl (10.5 kB view hashes)

Uploaded Python 2

Supported by

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