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 details)

Uploaded Source

Built Distributions

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

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

Uploaded Python 3

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

Uploaded Python 2

File details

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

File metadata

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

File hashes

Hashes for pyownet-0.8.2.tar.gz
Algorithm Hash digest
SHA256 357d6e907acff84b24c7a45fc738900e82a3d4936de4361d89364d51224193c0
MD5 be825696c2f99d48530c92022b26278a
BLAKE2b-256 a089bf0e432a135b0c48ec6a2a2a814faeae0f7a4f152583b4ad89ca2f2ede1d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyownet-0.8.2-py3-none-any.whl
Algorithm Hash digest
SHA256 ae4c1cfc7bba83df7ad8fc1d416e5e5cbb5329b60e2298bff9027f793689941f
MD5 fec11f43df9bf49d820c8e791b6129ec
BLAKE2b-256 4b6e0b36c5d317dc97679f730752ba44ba4263fe2425aa8b7ff7a00fef7d98ff

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyownet-0.8.2-py2-none-any.whl
Algorithm Hash digest
SHA256 72fdd69bbc1a5c527201341b67d51b9d58be2f73ff05f40ce63e3b44da445361
MD5 96495c115fa8edb82d8054a16ce98444
BLAKE2b-256 5bd682ed969e0615531f43b497c386b83509c168e56e91bad8fcfb7b545fba1d

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