Skip to content

Commit 722d0fc

Browse files
committedFeb 9, 2014
package ready for pypi
1 parent 4bcb33f commit 722d0fc

File tree

6 files changed

+47
-3
lines changed

6 files changed

+47
-3
lines changed
 

‎MANIFEST.in

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
include README.md
1+
include README.txt

‎Makefile

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#
2+
# mantain both markdown and reStructuredText README
3+
#
4+
README.txt: README.md
5+
pandoc --from=markdown --to=rst --output=$@ --reference-links $?

‎README.md

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ pyownet is a pure python package that allows to access an
66
in short _ownet_.
77

88
owserver is part of the [OWFS 1-Wire File System](http://owfs.org):
9+
910
> OWFS is an easy way to use the powerful 1-wire system of Dallas/Maxim.
1011
>
1112
> OWFS is a simple and flexible program to monitor and control the physical

‎README.txt

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
pyownet, a pythonic interface to ownet
2+
======================================
3+
4+
pyownet is a pure python package that allows to access an `owserver`_
5+
via the `owserver network protocol`_, in short *ownet*.
6+
7+
owserver is part of the `OWFS 1-Wire File System`_:
8+
9+
OWFS is an easy way to use the powerful 1-wire system of
10+
Dallas/Maxim.
11+
12+
OWFS is a simple and flexible program to monitor and control the
13+
physical environment. You can write scripts to read temperature,
14+
flash lights, write to an LCD, log and graph, ...
15+
16+
The ``pyownet.protocol`` module is a low-level implementation of the
17+
ownet protocol. Interaction with an owserver takes place via a proxy
18+
object whose methods correspond to ownet messages:
19+
20+
::
21+
22+
>>> owproxy = OwnetProxy(host="owserver.example.com", port=4304)
23+
>>> owproxy.ping()
24+
>>> owproxy.dir()
25+
['/10.67C6697351FF/', '/05.4AEC29CDBAAB/']
26+
>>> owproxy.present('/10.67C6697351FF/temperature')
27+
True
28+
>>> owproxy.read('/10.67C6697351FF/temperature')
29+
' 91.6195'
30+
31+
32+
.. _owserver: http://owfs.org/index.php?page=owserver_protocol
33+
.. _owserver network protocol: http://owfs.org/index.php?page=owserver-protocol
34+
.. _OWFS 1-Wire File System: http://owfs.org

‎pyownet/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@
1717
# along with this program. If not, see <http://www.gnu.org/licenses/>.
1818
#
1919

20-
__version__ = '0.7.0.dev0'
20+
__version__ = '0.7.0.dev1'

‎setup.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
from pyownet import __version__
22

3+
with open('README.txt') as file:
4+
long_description = file.read()
5+
36
from distutils.core import setup
47
try:
58
from distutils.command.build_py import build_py_2to3 as build_py
@@ -11,6 +14,7 @@
1114
version = __version__,
1215
packages = ['pyownet', ],
1316
description = 'python ownet client library',
17+
long_description = long_description,
1418
author = 'Stefano Miccoli',
1519
author_email = 'stefano.miccoli@polimi.it',
1620
url = 'https://github.com/miccoli/pyownet',
@@ -20,5 +24,5 @@
2024
'Intended Audience :: Developers',
2125
'License :: OSI Approved :: GNU General Public License v3 (GPLv3)',
2226
],
23-
cmdclass = {'build_py':build_py}
27+
cmdclass = {'build_py':build_py},
2428
)

0 commit comments

Comments
 (0)
Please sign in to comment.