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

Uploaded Source

Built Distributions

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

pyownet-0.8.0-py3-none-any.whl (20.8 kB view details)

Uploaded Python 3

pyownet-0.8.0-py2-none-any.whl (10.0 kB view details)

Uploaded Python 2

File details

Details for the file pyownet-0.8.0.tar.gz.

File metadata

  • Download URL: pyownet-0.8.0.tar.gz
  • Upload date:
  • Size: 22.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pyownet-0.8.0.tar.gz
Algorithm Hash digest
SHA256 e933d325922710f480d2f2209dfdbd46c365a1b8bfdc7676a56fe08b15c82024
MD5 72de949fdf49119268f31e51417ad3d6
BLAKE2b-256 4de70ab272e71eb135d1feb27381de413374c7537215f6eb0fa87a632c2e8fde

See more details on using hashes here.

File details

Details for the file pyownet-0.8.0-py3-none-any.whl.

File metadata

File hashes

Hashes for pyownet-0.8.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f02656544531388711bb484659c0161cbc51aaea180751d40472a0040905866b
MD5 a59328b19f20c86ca0f3c91f536d8ee2
BLAKE2b-256 bc04a231c5b976b83a37fa44c638317073295741be6c2df232f128c37075aaa5

See more details on using hashes here.

File details

Details for the file pyownet-0.8.0-py2-none-any.whl.

File metadata

File hashes

Hashes for pyownet-0.8.0-py2-none-any.whl
Algorithm Hash digest
SHA256 867820293837d749b2f73843e4c902bd25a777a545b3f769d8b2dcd89e18d675
MD5 5f6ba4dd51611485dd36f6431c529e55
BLAKE2b-256 7db4ef78fd2aabe39f595e3329313b5df56b43bf93b513417b6f0a8b78bdb7d5

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