Skip to main content
Join the official 2020 Python Developers SurveyStart the survey!

A Python SDK for Rowma

Project description

RowmaPy

Netlify Status

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.

Files for rowmapy, version 1.0.4
Filename, size File type Python version Upload date Hashes
Filename, size rowmapy-1.0.4.tar.gz (3.7 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page