[prev in list] [next in list] [prev in thread] [next in thread] 

List:       owfs-developers
Subject:    [Owfs-developers] pyownet: announcing release 0.8.0
From:       Stefano Miccoli <mocme () icloud ! com>
Date:       2015-01-04 13:07:03
Message-ID: B00FE77B-B9AD-493A-A1CD-1B9B0C3DBD63 () icloud ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


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


[Attachment #5 (unknown)]

<html><head><meta http-equiv="Content-Type" content="text/html \
charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; \
-webkit-line-break: after-white-space;" class="">Happy 2015 everybody!<div \
class=""><br class=""></div><div class="">I have released version 0.8.0 of \
pyownet:</div><div class="">it is available on <a \
href="https://pypi.python.org/pypi/pyownet" \
class="">https://pypi.python.org/pypi/pyownet</a>&nbsp;and&nbsp;<a \
href="https://github.com/miccoli/pyownet/releases/tag/v0.8.0" \
class="">https://github.com/miccoli/pyownet/releases/tag/v0.8.0</a></div><div \
class=""><br class=""></div><div class="">Highlights:</div><div class=""><ul \
class="MailOutline"><li class="">persistent connection support</li><li \
class="">package documentation on read the docs:&nbsp;<a \
href="http://pyownet.readthedocs.org/en/latest/" \
class="">http://pyownet.readthedocs.org/en/latest/</a></li></ul><div class=""><br \
class=""></div></div><div class=""><br class=""></div><div class="">pyownet can be \
considered a replacement for ownet (which can be found in&nbsp;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.</div><div class=""><br \
class=""></div><div class="">If there is an owserver listening at port 4304 \
of&nbsp;<a href="http://server.example.com" class="">server.example.com</a>, the use \
of pyownet is as simple as:</div><div class=""><pre style="box-sizing: border-box; \
font-family: Consolas, 'Andale Mono WT', 'Andale Mono', 'Lucida Console', 'Lucida \
Sans Typewriter', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Liberation Mono', \
'Nimbus Mono L', Monaco, 'Courier New', Courier, monospace; margin-top: 0px; \
margin-bottom: 0px; padding: 12px; line-height: 1.5; overflow: auto; color: rgb(64, \
64, 64);" class=""><span class="gp" style="box-sizing: border-box; color: rgb(85, 85, \
85);">&gt;&gt;&gt; </span><span class="kn" style="box-sizing: border-box; \
font-weight: bold;">from</span> <span class="nn" style="box-sizing: border-box; \
color: rgb(85, 85, 85);">pyownet</span> <span class="kn" style="box-sizing: \
border-box; font-weight: bold;">import</span> <span class="n" style="box-sizing: \
border-box; color: rgb(51, 51, 51);">protocol</span> <span class="gp" \
style="box-sizing: border-box; color: rgb(85, 85, 85);">&gt;&gt;&gt; </span><span \
class="n" style="box-sizing: border-box; color: rgb(51, 51, 51);">owproxy</span> \
<span class="o" style="box-sizing: border-box; font-weight: bold;">=</span> <span \
class="n" style="box-sizing: border-box; color: rgb(51, 51, \
51);">protocol</span><span class="o" style="box-sizing: border-box; font-weight: \
bold;">.</span><span class="n" style="box-sizing: border-box; color: rgb(51, 51, \
51);">proxy</span><span class="p" style="box-sizing: border-box;">(</span><span \
class="n" style="box-sizing: border-box; color: rgb(51, 51, 51);">host</span><span \
class="o" style="box-sizing: border-box; font-weight: bold;">=</span><span class="s" \
style="box-sizing: border-box; color: rgb(221, 17, 68);">"<a \
href="http://server.example.com" class="">server.example.com</a>"</span><span \
class="p" style="box-sizing: border-box;">,</span> <span class="n" style="box-sizing: \
border-box; color: rgb(51, 51, 51);">port</span><span class="o" style="box-sizing: \
border-box; font-weight: bold;">=</span><span class="mi" style="box-sizing: \
border-box; color: rgb(0, 153, 153);">4304</span><span class="p" style="box-sizing: \
border-box;">)</span> <span class="gp" style="box-sizing: border-box; color: rgb(85, \
85, 85);">&gt;&gt;&gt; </span><span class="n" style="box-sizing: border-box; color: \
rgb(51, 51, 51);">owproxy</span><span class="o" style="box-sizing: border-box; \
font-weight: bold;">.</span><span class="n" style="box-sizing: border-box; color: \
rgb(51, 51, 51);">dir</span><span class="p" style="box-sizing: border-box;">()</span> \
<span class="go" style="box-sizing: border-box; color: rgb(136, 136, \
136);">[u'/10.A7F1D92A82C8/', u'/05.D8FE434D9855/', u'/26.8CE2B3471711/']</span> \
<span class="gp" style="box-sizing: border-box; color: rgb(85, 85, 85);">&gt;&gt;&gt; \
</span><span class="n" style="box-sizing: border-box; color: rgb(51, 51, \
51);">owproxy</span><span class="o" style="box-sizing: border-box; font-weight: \
bold;">.</span><span class="n" style="box-sizing: border-box; color: rgb(51, 51, \
51);">present</span><span class="p" style="box-sizing: border-box;">(</span><span \
class="s" style="box-sizing: border-box; color: rgb(221, 17, \
68);">'/10.A7F1D92A82C8/temperature'</span><span class="p" style="box-sizing: \
border-box;">)</span> <span class="go" style="box-sizing: border-box; color: rgb(136, \
136, 136);">True</span> <span class="gp" style="box-sizing: border-box; color: \
rgb(85, 85, 85);">&gt;&gt;&gt; </span><span class="n" style="box-sizing: border-box; \
color: rgb(51, 51, 51);">owproxy</span><span class="o" style="box-sizing: border-box; \
font-weight: bold;">.</span><span class="n" style="box-sizing: border-box; color: \
rgb(51, 51, 51);">read</span><span class="p" style="box-sizing: \
border-box;">(</span><span class="s" style="box-sizing: border-box; color: rgb(221, \
17, 68);">'/10.A7F1D92A82C8/temperature'</span><span class="p" style="box-sizing: \
border-box;">)</span> <span class="go" style="box-sizing: border-box; color: rgb(136, \
136, 136);">'     6.68422'</span></pre><div class="">As pyownet is registered on \
PyPI, the recommended installation is ‘pip install pyownet'.</div><div \
class="">Bye</div></div><div class=""><br class=""></div><div \
class="">Stefano</div></body></html>



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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic