python sdk for k3cloud web api v3.0
Project description
介绍
金蝶云星空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)
Project details
Release history Release notifications | RSS feed
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file kingdee.cdp.webapi.sdk-8.2.0-py3-none-any.whl.
File metadata
- Download URL: kingdee.cdp.webapi.sdk-8.2.0-py3-none-any.whl
- Upload date:
- Size: 15.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
15c6c13e097425e0fdff1de425a986ff6ae1d4e418a98ce720a61fe7bd54f8f2
|
|
| MD5 |
5cbfe5a66ef6852b18b633f215ddc21d
|
|
| BLAKE2b-256 |
366d0e91fc3c0441fcea9700cd55e9dd4171609b139ae37a4e7a6bea6e2d0c4d
|