added RPCClient with interface symmetrical to RPCServer
This commit is contained in:
11
rpcclient.py
Normal file
11
rpcclient.py
Normal file
@ -0,0 +1,11 @@
|
||||
import xmlrpc.client as xrc
|
||||
|
||||
|
||||
class RPCClient(xrc.ServerProxy):
|
||||
|
||||
def __init__(self, host, port, *args, **kwargs):
|
||||
uri = f"http://{host}:{port}/"
|
||||
super().__init__(uri, *args, **kwargs)
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user