Metadata-Version: 2.4
Name: originp-sdk
Version: 0.1.0
Summary: OriginP API Python SDK
Author: OriginP Team
License-Expression: LicenseRef-Proprietary
Project-URL: Homepage, https://data.originp.com/
Project-URL: Documentation, https://data.originp.com/interfaces
Keywords: originp,api,sdk
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: httpx>=0.27
Requires-Dist: pandas>=2.0
Requires-Dist: pydantic>=2.0
Provides-Extra: dev
Requires-Dist: pytest>=7.0; extra == "dev"
Requires-Dist: respx<1.0,>=0.22; extra == "dev"
Dynamic: license-file

# OriginP SDK

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

## 安装

```bash
pip install originp-sdk
```

## 快速开始

```python
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`
