json pub sub
Python
Latest commit 2c5a438 Jul 17, 2016 @OTL committed on GitHub Bridge by service (#3)
* Add bridge using service

* apply autopep8
Permalink
Failed to load latest commit information.
docs Update documents Jun 11, 2016
jps Bridge by service (#3) Jul 17, 2016
samples Add action samples Jun 9, 2016
test Bridge by service (#3) Jul 17, 2016
.gitignore json pub/sub python library Jan 26, 2016
.travis.yml Stop support python3 Feb 23, 2016
LICENSE Initial commit Jan 26, 2016
README.md Update README Jun 11, 2016
setup.py Apply pep8 Jun 11, 2016

README.md

jps

jps is simple pub/sub system for python(v2.7 is supported now). It is very easy to install and it is easy to understand if you have experience of ROS(Robot Operating System).

see http://jps.readthedocs.org/

Build Status

Install

$ sudo pip install jps

If it fails, try below.

sudo apt-get install python2.7-dev

Publisher

publisher.py

import jps
import time

pub = jps.Publisher('/hoge1')
i = 0
while True:
    pub.publish('hello! jps{0}'.format(i))
    i += 1
    time.sleep(0.5)

Subscriber

subscriber.py

import jps
for msg in jps.Subscriber('/hoge1'):
    print msg

How to Run

You need three consoles.

$ jps_master
$ python publisher.py
$ python subscriber.py