11 lines
493 B
Python
11 lines
493 B
Python
# -*- coding: utf-8 -*-
|
||
"""授权平台客户端(license-v2 / lease-v2)。
|
||
|
||
api_server 只 import license_client.gate 这一个入口:
|
||
import license_client.gate as license_gate
|
||
license_gate.init(DATA_DIR) # run() 启动时
|
||
license_gate.intercept(method, path, body) # do_GET / do_POST 顶部
|
||
业务侧判定用 client.can_run_safe()(门禁内部已用,业务代码一般不必再调)。
|
||
"""
|
||
from .client import LicenseClient, DEFAULT_API_BASE # noqa: F401
|