Skip to main content

介绍

金蝶云星空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)

Table of built distributions (wheels) for kingdee.cdp.webapi.sdk 8.2.0
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

8.2.0 This release

1 release file

8.0.4

1 release file

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