Skip to main content

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


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.

kingdee.cdp.webapi.sdk-8.2.0-py3-none-any.whl (15.6 kB view details)

Uploaded Python 3

File details

Details for the file kingdee.cdp.webapi.sdk-8.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for kingdee.cdp.webapi.sdk-8.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 15c6c13e097425e0fdff1de425a986ff6ae1d4e418a98ce720a61fe7bd54f8f2
MD5 5cbfe5a66ef6852b18b633f215ddc21d
BLAKE2b-256 366d0e91fc3c0441fcea9700cd55e9dd4171609b139ae37a4e7a6bea6e2d0c4d

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