lxcommondata
Project description
Common Data gRPC API client
灵犀公共数据微服务接口
配置
settings配置指定server
COMMON_DATA_SERVER = 'host:port'
使用
# 导入查询接口
from commondata.apis import do_query
# 定义查询对象
query_obj = {
'model': 'CompanyModify', # model名(必须)
'operate': { # 操作(必须)
'filter': "entid_id=363248", # 方法、参数
'order_by': "'-ALTDATE'",
},
'paging': '[0:5]' # 分页(可选)
}
# 查询并接收结果
status, data = do_query(query_obj)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
lxcommondata-0.0.7.tar.gz
(4.6 kB
view hashes)
Built Distribution
Close
Hashes for lxcommondata-0.0.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9917ac4b46f264366cfbcc0104ae6bd7f0915a90633ea0fa81b1ccdcf65dc36f |
|
MD5 | 8d7a2fa3cc3e9cf733d2e6c1876b76fa |
|
BLAKE2b-256 | 9fce328d6c9a988e664d51d098237fc28661bf2b62cdd43f64d6b602f4810cd8 |