Skip to content

Commit

Permalink
package ready for pypi
Browse files Browse the repository at this point in the history
  • Loading branch information
miccoli committed Feb 9, 2014
1 parent 4bcb33f commit 722d0fc
Show file tree
Hide file tree
Showing 6 changed files with 47 additions and 3 deletions.
2 changes: 1 addition & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1 +1 @@
include README.md
include README.txt
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#
# mantain both markdown and reStructuredText README
#
README.txt: README.md
pandoc --from=markdown --to=rst --output=$@ --reference-links $?
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ pyownet is a pure python package that allows to access an
in short _ownet_.

owserver is part of the [OWFS 1-Wire File System](http://owfs.org):

> 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
Expand Down
34 changes: 34 additions & 0 deletions README.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
pyownet, a pythonic interface to ownet
======================================

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 = OwnetProxy(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'


.. _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
2 changes: 1 addition & 1 deletion pyownet/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#

__version__ = '0.7.0.dev0'
__version__ = '0.7.0.dev1'
6 changes: 5 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
from pyownet import __version__

with open('README.txt') as file:
long_description = file.read()

from distutils.core import setup
try:
from distutils.command.build_py import build_py_2to3 as build_py
Expand All @@ -11,6 +14,7 @@
version = __version__,
packages = ['pyownet', ],
description = 'python ownet client library',
long_description = long_description,
author = 'Stefano Miccoli',
author_email = '[email protected]',
url = 'https://github.com/miccoli/pyownet',
Expand All @@ -20,5 +24,5 @@
'Intended Audience :: Developers',
'License :: OSI Approved :: GNU General Public License v3 (GPLv3)',
],
cmdclass = {'build_py':build_py}
cmdclass = {'build_py':build_py},
)

0 comments on commit 722d0fc

Please sign in to comment.