This commit is contained in:
jack
2026-03-26 08:48:53 +08:00
parent 0e39f21012
commit 8564a6ec00
14 changed files with 1070 additions and 440 deletions
@@ -0,0 +1,17 @@
# -*- coding: utf-8 -*-
from xmlrpc.client import ServerProxy
is_local = 0
if is_local:
url = 'http://127.0.0.1:28888'
else:
url = 'http://192.168.31.41:32000'
username = 'rpc'
password = 'aaaAAA111'
db = "quantify"
common = ServerProxy(f"{url}/xmlrpc/2/common")
uid = common.authenticate(db, username, password, {})
print(uid)