hub.py 486 B

123456789101112131415
  1. import sys
  2. import importlib
  3. sys.path.append('../3rdparty')
  4. methods = importlib.import_module(f"xlib")
  5. class Global(object):
  6. pb = importlib.import_module(f"protobuf.protocol_pb2")
  7. # emqx = importlib.import_module(f"xclient.xmqtt").Client(host='10.10.61.229', port=41883)
  8. mdb = importlib.import_module(f"xclient.xmongo").Client(host='58.34.94.178', port=7030, database='bg',
  9. username='admin', password='admin')