Shameless self-promotion: you should use pyownet, which is documented at http://pyownet.readthedocs.io/en/latest/
If you already have an owserver running on your localhost you can start with $ pip install pyownet $ python >>> from pyownet.protocol import proxy >>> owp = proxy(host='localhost') >>> owp.dir() ['/10.000010EF0000/', '/05.000005FA0100/', '/26.000026D90200/', '/01.000001FE0300/', '/43.000043BC0400/'] >>> float(owp.read('/26.000026D90200/temperature')) 4.0 The idea is to have a proxy object, whose methods correspond to the ownet operations (dir, read, write, ping, present, etc.) Calls to the proxy methods are lightweight, while creation of the proxy object is a little more costly, so please resiste to the temptation of calling pyownet.protocol.proxy().dir() but always create a proxy object at program initialisation and reuse it throughout your script. Stefano > On 27 Jul 2016, at 21:26, Mick Sulley <m...@sulley.info> wrote: > > Looking at converting my current Python code from owfs to ow-shell. I > have found a few different Python bindings, any opinions on which one to > use? Also there does not seem to be much documentation on any of them, > can anyone point me in the right direction? > > Thanks > > Mick > > > ------------------------------------------------------------------------------ > _______________________________________________ > Owfs-developers mailing list > Owfs-developers@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/owfs-developers ------------------------------------------------------------------------------ _______________________________________________ Owfs-developers mailing list Owfs-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/owfs-developers