No description, website, or topics provided.
Python
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
vaurienrelay
README.rst
setup.py
test-requirements.txt

README.rst

Vaurien RPC relay

Expose a way to control multiple vaurien proxies with a single 0mq interface.

Here is how, programatically, yoyu can use this "relay":

from vaurienrelay import RPCRelay

relay = RPCRelay('tcp://socket', instances={
    'db1': 'host:port',
    'memcache2': 'host:port',
})
relay.start()

Then, on the client side, you can call the methods you want, as follows:

from zerorpc import Client

c = Client('tcp://socket')
c.set_hander('db1', 'blackout')

And that's it!