added RPCClient with interface symmetrical to RPCServer

This commit is contained in:
2022-12-19 12:25:16 +01:00
parent 9e2f501968
commit dee4052247

11
rpcclient.py Normal file
View 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)