XuGu Database Python Driver
虚谷数据库Python接口驱动
pip install xgcondb -i https://pypi.tuna.tsinghua.edu.cn/simple --trusted-host=pypi.tuna.tsinghua.edu.cn
import xgcondb as xg
def connect():
try:
conn = xg.connect(host='127.0.0.1',
port=5138,
database='SYSTEM',
user='SYSDBA',
password='SYSDBA')
conn.close()
print('Succeeded!')
except Exception as e:
print('Failed!', e)
if __name__ == '__main__':
connect()
具体使用参考链接 Python标准接口开发指南