Skip to main content

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


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 details)

Uploaded Source

Built Distribution

common_data-0.0.5-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

Details for the file common_data-0.0.5.tar.gz.

File metadata

  • Download URL: common_data-0.0.5.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for common_data-0.0.5.tar.gz
Algorithm Hash digest
SHA256 d827d8196a20edf1c38b248a02c23d17989bdf34377ace6de387923e2e85f15d
MD5 0cf1284e8ee085549a7dce851983a78d
BLAKE2b-256 57d786dd8a104b2a78b0871e3f6ffea382e6f30707d5f6984f2208595331f303

See more details on using hashes here.

File details

Details for the file common_data-0.0.5-py3-none-any.whl.

File metadata

  • Download URL: common_data-0.0.5-py3-none-any.whl
  • Upload date:
  • Size: 5.0 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for common_data-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 ae9d2b1ca0d943229a12816ba09d83b8bd741d81693c9772fa163a3cc7af7bf6
MD5 772fb2cbc52cb6bb4ed66590797600f5
BLAKE2b-256 cdcf39bdf91732f9358aac7d0fa086fd7cbd88334b6cda62a229596a80af47c3

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page