Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

83 Commits

Repository files navigation

LicenseBuild Status

Micro-framework for Python RPC+Pub/Sub communication over WebSockets

Installation

sudo apt-get install python-dev libzmq3-dev avahi-daemon
# Disable avahi on init
sudo update-rc.d -f avahi-daemon remove
sudo pip install pyrainbow

Protocol

Rainbow protocol

Description

API description

Example

Basic example

fromrainbowimportregister, run@registerdefadd(a=0, b=0):
returna+brun(host='0.0.0.0')

Publish example

fromrainbowimportregister, publish, run@registerdefpub():
publish('event', 'data')
run(host='0.0.0.0')

Check more amazing examples!

About

Micro-framework for Python RPC+Pub/Sub over WebSockets

Resources

Stars

13 stars

Watchers

3 watching

Forks

Releases

Packages

Used by

Contributors

Languages