Skip to content

pmdz/smite

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

64 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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',))

About

Simple RPC-like messaging library based on ZMQ

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages