python ownet client library
Project description
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pyownet-0.8.1.tar.gz.
File metadata
- Download URL: pyownet-0.8.1.tar.gz
- Upload date:
- Size: 22.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3588d94e0460e47a26f81e731b62646ec53a83f7f5f4917c37e9643ef55021fe
|
|
| MD5 |
902b03bf14c630b0a95f518f2bbfc35b
|
|
| BLAKE2b-256 |
1bea555965c067884677aca45caa81ed9c5ad5dae2bd2266e2525e283dcd419a
|
File details
Details for the file pyownet-0.8.1-py3-none-any.whl.
File metadata
- Download URL: pyownet-0.8.1-py3-none-any.whl
- Upload date:
- Size: 10.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b1ad7fad38db7464019e136f79805a60af35d459331f13d7a6eeef9715533cf4
|
|
| MD5 |
b19619c6d6fa0d04dad1e1af8b96ff39
|
|
| BLAKE2b-256 |
501a31ff1540fbf3b4838462e9bb40ef6f2963010c6c580086493f691befaa21
|
File details
Details for the file pyownet-0.8.1-py2-none-any.whl.
File metadata
- Download URL: pyownet-0.8.1-py2-none-any.whl
- Upload date:
- Size: 10.2 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0996460a0b406b17fd2652bcf492438b2b5fa20892451b5f6590996ac8257eaf
|
|
| MD5 |
c154e3b805d1c72bd5d3795523ebbe77
|
|
| BLAKE2b-256 |
90bcf6dbb01c6fa8d449736332310413bf5467b00aca3b72ab05d95cc6f317db
|