A Python SDK for Rowma
Project description
RowmaPy
The Rowma SDK for Python.
Usage
Publish
from rowmapy import Rowma
rowma = Rowma()
rowma.connect()
robot_uuid = 'xxxx-xxxx-xxxx'
rowma.publish(robot_uuid, '/chatter', { "data": "topic from python" })
Subscribe
from rowmapy import Rowma
rowma = Rowma()
rowma.connect()
robot_uuid = 'xxxx-xxxx-xxxx'
# Transfer /chatter topic in xxxx-xxxx-xxxx to this script
rowma.set_topic_route(robot_uuid, 'application', rowma.uuid, '/chatter')
def on_chatter(msg):
print(msg)
rowma.subscribe('/chatter', on_chatter)
Development
$ python setup.py sdist
$ pip install -U .
Publish
rm -rf dist/*
python setup.py sdist
pip install wheel twine
twine upload dist/*
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
rowmapy-1.0.5.tar.gz
(3.8 kB
view details)
File details
Details for the file rowmapy-1.0.5.tar.gz.
File metadata
- Download URL: rowmapy-1.0.5.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.8.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
080e9e2db0105708a90a536396fa53621f2c0538730b4d2a1d337cb892fff6e0
|
|
| MD5 |
3e91dc6cdac123bcadf7f7ee272ca652
|
|
| BLAKE2b-256 |
ac27bc08bb104e519589884363cdcdd282a348c003d6081085faaba5165a979b
|