Simple zmq/json remote interface
conda install reqrep -c slsdetectorgroup
from reqrep import Server
class MyServer(Server):
def __init__(self, port):
#Initialize any instance variables
#self._value = 7
super().__init__(port)
#Implement your functions
def do_something(self):
...
from reqrep import Client
class MyClient(Client):
def __init__(self, host, port, wraps = MyServer, verbose=False):
super().__init__(host, port, wraps = wraps, verbose=verbose)