File tree Expand file tree Collapse file tree 2 files changed +17
-13
lines changed
Expand file tree Collapse file tree 2 files changed +17
-13
lines changed Original file line number Diff line number Diff line change 44"""
55Interface to jambit's project traffic lights.
66
7+ jambel.py ADDRESS [OPTIONS] COMMAND [COMMAND ...]
8+
79COMMANDS:
810
911 status - Will return a list of status codes for the light modules as JSON.
1618
1719EXAMPLES:
1820
19- To remote control a Jambel, simply run this script ::
21+ To remote control a Jambel, simply run one of these on the command line ::
2022
2123 jambel.py ampel3.dev.jambit.com --debug green=on yellow=blink red=off
2224 jambel.py ampel1.dev.jambit.com:10001 reset green=flash
23-
25+
26+ Type jambel.py --help for more information.
2427"""
2528
2629import argparse
2932import telnetlib
3033import re
3134
32- __version__ = '0.1.1 '
35+ __version__ = '0.1.2 '
3336
3437OFF = 0
3538ON = 1
Original file line number Diff line number Diff line change 22import os
33import re
44
5+
56def get_version ():
6- """
7- Extracts version directly from Jambel module.
8- """
9- version_reg = re .compile ("""^__version__ = '(.*)'""" , re .M )
10- _here = os .path .dirname (os .path .abspath (__file__ ))
11- path = os .path .join (_here , 'jambel.py' )
12- m = version_reg .search (open (path ).read ())
13- return m .group (1 ) if m is not None else '?'
14-
15-
7+ """
8+ Extracts version directly from Jambel module.
9+ """
10+ version_reg = re .compile ("""^__version__ = '(.*)'""" , re .M )
11+ _here = os .path .dirname (os .path .abspath (__file__ ))
12+ path = os .path .join (_here , 'jambel.py' )
13+ m = version_reg .search (open (path ).read ())
14+ return m .group (1 ) if m is not None else '?'
15+
16+
1617setup (
1718 name = 'jambel' ,
1819 version = get_version (),
You can’t perform that action at this time.
0 commit comments