{"id":16678859,"url":"https://github.com/otl/jps","last_synced_at":"2025-04-09T21:52:23.368Z","repository":{"id":62572694,"uuid":"50430206","full_name":"OTL/jps","owner":"OTL","description":"json pub sub","archived":false,"fork":false,"pushed_at":"2016-07-17T14:58:13.000Z","size":94,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-09T21:52:18.953Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/OTL.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-01-26T13:27:18.000Z","updated_at":"2022-06-26T04:02:11.000Z","dependencies_parsed_at":"2022-11-03T18:27:01.362Z","dependency_job_id":null,"html_url":"https://github.com/OTL/jps","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OTL%2Fjps","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OTL%2Fjps/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OTL%2Fjps/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OTL%2Fjps/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/OTL","download_url":"https://codeload.github.com/OTL/jps/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248119401,"owners_count":21050754,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-12T13:31:43.046Z","updated_at":"2025-04-09T21:52:23.328Z","avatar_url":"https://github.com/OTL.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"jps\n=============\n\njps is simple pub/sub system for python(v2.7 is supported now).\nIt is very easy to install and it is easy to understand if you have experience of ROS(Robot Operating System).\n\nsee http://jps.readthedocs.org/\n\n[![Build Status](https://travis-ci.org/OTL/jps.svg?branch=master)](https://travis-ci.org/OTL/jps)\n\n\nInstall\n------------------\n\n```bash\n$ sudo pip install jps\n```\n\nIf it fails, try below.\n\n```bash\nsudo apt-get install python2.7-dev\n```\n\nPublisher\n---------------\n`publisher.py`\n\n```python\nimport jps\nimport time\n\npub = jps.Publisher('/hoge1')\ni = 0\nwhile True:\n    pub.publish('hello! jps{0}'.format(i))\n    i += 1\n    time.sleep(0.5)\n```\n\nSubscriber\n----------------------\n`subscriber.py`\n\n```python\nimport jps\nfor msg in jps.Subscriber('/hoge1'):\n    print msg\n```\n\n\nHow to Run\n---------------\nYou need three consoles.\n\n```bash\n$ jps_master\n```\n\n```bash\n$ python publisher.py\n```\n\n```bash\n$ python subscriber.py\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fotl%2Fjps","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fotl%2Fjps","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fotl%2Fjps/lists"}