Happy 2015 everybody!
I have released version 0.8.0 of pyownet:
it is available on https://pypi.python.org/pypi/pyownet
<https://pypi.python.org/pypi/pyownet> and
https://github.com/miccoli/pyownet/releases/tag/v0.8.0
<https://github.com/miccoli/pyownet/releases/tag/v0.8.0>
Highlights:
persistent connection support
package documentation on read the docs:
http://pyownet.readthedocs.org/en/latest/
<http://pyownet.readthedocs.org/en/latest/>
pyownet can be considered a replacement for ownet (which can be found in
module/ownet/python in the owfs source tree). The main reason for writing this
code was the observation that the ‘official' ownet has an incomplete set of
features, it is not maintained anymore, and that there is no support for
Python3.
If there is an owserver listening at port 4304 of server.example.com
<http://server.example.com/>, the use of pyownet is as simple as:
>>> from pyownet import protocol
>>> owproxy = protocol.proxy(host="server.example.com", port=4304)
>>> owproxy.dir()
[u'/10.A7F1D92A82C8/', u'/05.D8FE434D9855/', u'/26.8CE2B3471711/']
>>> owproxy.present('/10.A7F1D92A82C8/temperature')
True
>>> owproxy.read('/10.A7F1D92A82C8/temperature')
' 6.68422'
As pyownet is registered on PyPI, the recommended installation is ‘pip install
pyownet’.
Bye
Stefano
------------------------------------------------------------------------------
Dive into the World of Parallel Programming! The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net
_______________________________________________
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers