Skip to main content

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.

Source Distribution

rowmapy-1.0.4.tar.gz (3.7 kB view details)

Uploaded Source

File details

Details for the file rowmapy-1.0.4.tar.gz.

File metadata

  • Download URL: rowmapy-1.0.4.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.2

File hashes

Hashes for rowmapy-1.0.4.tar.gz
Algorithm Hash digest
SHA256 96dbcefcaf9b80440646bf2403a02f5cab1d9d8d2f82b3d83c7d1fc77129897e
MD5 e09595a4a2cadd024692b32b7377f392
BLAKE2b-256 2456368ad572fa5ddd665282e0eddecd7ef10bda8fd0d8a237213c7bbd198e21

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page