Metadata-Version: 2.0
Name: pyownet
Version: 0.8.2
Summary: python ownet client library
Home-page: https://github.com/miccoli/pyownet
Author: Stefano Miccoli
Author-email: stefano.miccoli@polimi.it
License: GPL
Platform: UNKNOWN
Classifier: Development Status :: 3 - Alpha
Classifier: Environment :: Other Environment
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: GNU General Public License v3 (GPLv3)
Classifier: Programming Language :: Python :: 2.6
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3

pyownet, a pythonic interface to ownet
======================================

|docs|

.. |docs| image:: https://readthedocs.org/projects/pyownet/badge/?version=latest&style=flat
   :target: http://pyownet.readthedocs.org/en/latest/
   :alt: 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``.

.. _owserver: http://owfs.org/index.php?page=owserver_protocol
.. _owserver network protocol: http://owfs.org/index.php?page=owserver-protocol
.. _OWFS 1-Wire File System: http://owfs.org


