Skip to content

Latest commit

 

History

History
36 lines (25 loc) · 644 Bytes

README.md

File metadata and controls

36 lines (25 loc) · 644 Bytes

reqrep

Simple zmq/json remote interface

Installation

conda install reqrep -c slsdetectorgroup

Implementing the server

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):
        ...

Implementing the client

from reqrep import Client

class MyClient(Client):
    def __init__(self, host, port, wraps = MyServer, verbose=False):
        super().__init__(host, port, wraps = wraps, verbose=verbose)