From dee4052247e8f6bb98ac115d1b0decbb944d3d31 Mon Sep 17 00:00:00 2001 From: Sven Augustin Date: Mon, 19 Dec 2022 12:25:16 +0100 Subject: [PATCH] added RPCClient with interface symmetrical to RPCServer --- rpcclient.py | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 rpcclient.py diff --git a/rpcclient.py b/rpcclient.py new file mode 100644 index 0000000..0510fa6 --- /dev/null +++ b/rpcclient.py @@ -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) + + +