common_data
Project description
Common Data gRPC API client
灵犀公共数据微服务接口
安装
pip install commondata
配置
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
common_data-0.0.5.tar.gz
(3.7 kB
view hashes)
Built Distribution
Close
Hashes for common_data-0.0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ae9d2b1ca0d943229a12816ba09d83b8bd741d81693c9772fa163a3cc7af7bf6 |
|
MD5 | 772fb2cbc52cb6bb4ed66590797600f5 |
|
BLAKE2b-256 | cdcf39bdf91732f9358aac7d0fa086fd7cbd88334b6cda62a229596a80af47c3 |