Skip to main content

OriginP SDK

OriginP 数据平台 Python SDK,通过 API Key 调用数据接口,支持 DataFrame 转换。

安装

pip install originp-sdk

快速开始

import originp_sdk

with originp_sdk.OriginpAPI("opd_your_api_key") as client:
    df = client.query('co_info', limit=20, fields=['org_name', 'sec_code', 'sec_name'])
    print(df.head())

API

OriginpAPI

参数 类型 默认值 说明
api_key str 数据平台 API Key(必填)

方法

  • query(code, fields=None, **params) — 按接口编码查询数据,返回 pandas.DataFrame

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

originp_sdk-0.1.0-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

Details for the file originp_sdk-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: originp_sdk-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 5.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.16

File hashes

Hashes for originp_sdk-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2e9fca381ed6832c7b5030852cd8f153707177f307add7fed180a583be6c4641
MD5 dcff36da388892539c0eda6e07a56873
BLAKE2b-256 bd2cff34f4e015b45e5ed14e09d46ca5eabba4d9101813f5e0aba76aea9c6e28

See more details on using hashes here.

Supported by

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