1234567891011121314151617181920212223242526272829303132333435363738 |
- import sys
- import importlib
- sys.path.append('../module-py')
- methods = importlib.import_module(f"xlib")
- # camera_handle = importlib.import_module(f"libraries.base_external.camera_by_cv2")
- # numpy_method = importlib.import_module(f"libraries.base_external.data_by_numpy")
- class Global(object):
- # --- 时序数据库 ---
- # xdb = importlib.import_module(f"clients.db_influx").Client(host='fra-middleware-influx', port=8086,
- # database='vms')
- # --- 业务数据数据库 ---
- # mdb = importlib.import_module(f"clients.db_mongo").Client(host='sri-thirdparty-mongo', port=27017, database='ar',
- # username='admin', password='admin')
- # mdb = importlib.import_module(f"xclient.xmongo").Client(host='58.34.94.176', port=7030, database='hs',
- # username='admin', password='admin')
- mdb = importlib.import_module(f"xclient.xmongo").Client(host='192.168.131.23', port=7030, database='hs',
- username='admin', password='admin')
- # mysql = importlib.import_module(f"clients.db_maria2").Client(host='127.0.0.1', port=3306, database='ar',
- # username='root', password='20221212!')
- # mysql = importlib.import_module(f"xclient.db_maria2").Client(host='58.34.94.176', port=8806, database='hs',
- # username='root', password='rootroot&123123')
- # --- 缓存数据库 ---
- # rdb = importlib.import_module(f"clients.db_redis").Client(db=0, host='fra-middleware-redis', port=6379)
- # SSHClient = importlib.import_module(f"clients.l4_ssh_by_paramiko").Client
- # local_api = importlib.import_module(f"apis.local.api").Api()
- mccbts_agent = importlib.import_module(f"xapi.mccbts.api").API()
- enfei_api = importlib.import_module(f"xapi.enfei.api").API()
- http_api = importlib.import_module(f"xapi.ros1.api_for_hs").API(address='192.168.191.91', port=8000)
|