Files
grum/rpcclient.py
T

12 lines
207 B
Python

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)