介绍
金蝶云星空WebAPI的Python SDK, 目前可以支持Python3。
安装指南
使用pip在线安装
pip install k3cloud_webapi_sdk
使用pip离线安装
pip install 本地whl包文件的完整目录
手动安装:
python setup.py install
使用方法
使用python sdk,参照sample.py
#!/usr/bin/python
# -*- coding: utf-8 -*-
from k3cloud_webapi_sdk.main import K3CloudApiSdk
# 首先构造一个SDK实例
api_sdk = K3CloudApiSdk()
# 然后初始化SDK,需指定如下配置文件相关参数,否则会导致SDK初始化失败而无法使用:
# config_path:配置文件的相对或绝对路径,建议使用绝对路径
# config_node:配置文件中的节点名称
api_sdk.Init(config_path='conf.ini', config_node='config')
# 构造保存接口的部分字段数据,使用时请参考WebAPI具体接口的实际参数列表
save_data = {"Model": {
"FCreateOrgId": {"FNumber": 100},
"FUserOrgId": {"FNumber": 100},
"FNumber": "***********",
"FName": "***********"
}}
# 调用sdk中的保存接口
api_sdk.Save("BD_Material", save_data)
Metadata
Release files for kingdee.cdp.webapi.sdk 8.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| kingdee.cdp.webapi.sdk-8.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Release files / kingdee.cdp.webapi.sdk-8.2.0-py3-none-any.whl
| Download URL | kingdee.cdp.webapi.sdk-8.2.0-py3-none-any.whl |
|---|---|
| Size | 15.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
15c6c13e097425e0fdff1de425a986ff6ae1d4e418a98ce720a61fe7bd54f8f2
|
|
BLAKE2b-256 checksum How to use checksums |
366d0e91fc3c0441fcea9700cd55e9dd4171609b139ae37a4e7a6bea6e2d0c4d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.13.2
|
Security for kingdee.cdp.webapi.sdk 8.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.