Skip to main content

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)

Release files for common-data 0.0.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for common-data 0.0.5
File Size Uploaded
common_data-0.0.5.tar.gz 3.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for common-data 0.0.5
File Interpreter ABI Platform
common_data-0.0.5-py3-none-any.whl Python 3 none any Details

Total release size:8.7 kB

Release files / common_data-0.0.5.tar.gz

Download URL common_data-0.0.5.tar.gz
Size 3.7 kB
Tags Source
SHA-256 checksum
How to use checksums
d827d8196a20edf1c38b248a02c23d17989bdf34377ace6de387923e2e85f15d
BLAKE2b-256 checksum
How to use checksums
57d786dd8a104b2a78b0871e3f6ffea382e6f30707d5f6984f2208595331f303
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.1.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.7.5

Release files / common_data-0.0.5-py3-none-any.whl

Download URL common_data-0.0.5-py3-none-any.whl
Size 5.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ae9d2b1ca0d943229a12816ba09d83b8bd741d81693c9772fa163a3cc7af7bf6
BLAKE2b-256 checksum
How to use checksums
cdcf39bdf91732f9358aac7d0fa086fd7cbd88334b6cda62a229596a80af47c3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.1.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.7.5

Release history Release notifications | RSS feed

This release

0.0.5 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page