smite

Simple RPC-like messaging library based on ZMQ


License
Other
Install
pip install smite==0.2a3

Documentation

Smite

Simple RPC-like messaging library based on ZMQ.

For more examples please take a look at tests.py file, which contains integration tests.

Basic example

import smite

host = '127.0.0.1'
port = 3000

def echo(text):
    return text

servant = smite.Servant(handlers={'echo': echo})
servant.bind_tcp(host, port)
servant.run()

client = smite.Client()
client.connect_tcp(host, port)
client.send(msg_name='echo', args=('foobar',))