arb.py 341 B

123456789101112131415
  1. import jsonrpclib
  2. from threading import Thread
  3. class RPCClient(Thread):
  4. def __init__(self):
  5. self.client = jsonrpclib.Server('http://127.0.0.1:8082')
  6. def test(self):
  7. #print self.client.get_changes()
  8. print self.client.get_info("DateTime")
  9. client = RPCClient()
  10. client.test()