Skip to content

slsdetectorgroup/reqrep

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)

About

Simple zmq/json remote interface

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published