K3Cloud Web Api SDK v1.0
##########################
介绍
_______
金蝶云星空WebAPI的Python SDK, 目前可以支持Python3。
安装指南
__________
使用pip在线安装 ::
pip install k3cloud_webapi_sdk
使用pip离线安装 ::
pip install 本地whl包文件的完整目录
手动安装::
python setup.py install
使用方法
__________
使用python sdk,参照sample.py
.. code:: python
#!/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)
Raw data
{
"_id": null,
"home_page": "https://open.kingdee.com",
"name": "kingdee.cdp.webapi.sdk",
"maintainer": null,
"docs_url": null,
"requires_python": null,
"maintainer_email": null,
"keywords": "k3cloud webapi sdk",
"author": "g_wang",
"author_email": "1249350176@qq.com",
"download_url": null,
"platform": null,
"description": "K3Cloud Web Api SDK v1.0\r\n##########################\r\n\r\n\u4ecb\u7ecd\r\n_______\r\n\r\n\u91d1\u8776\u4e91\u661f\u7a7aWebAPI\u7684Python SDK, \u76ee\u524d\u53ef\u4ee5\u652f\u6301Python3\u3002\r\n\r\n\u5b89\u88c5\u6307\u5357\r\n__________\r\n\r\n\u4f7f\u7528pip\u5728\u7ebf\u5b89\u88c5 ::\r\n\r\n pip install k3cloud_webapi_sdk\r\n\r\n\u4f7f\u7528pip\u79bb\u7ebf\u5b89\u88c5 ::\r\n\r\n pip install \u672c\u5730whl\u5305\u6587\u4ef6\u7684\u5b8c\u6574\u76ee\u5f55\r\n\r\n\u624b\u52a8\u5b89\u88c5::\r\n\r\n python setup.py install\r\n\r\n\u4f7f\u7528\u65b9\u6cd5\r\n__________\r\n\r\n\u4f7f\u7528python sdk\uff0c\u53c2\u7167sample.py\r\n\r\n.. code:: python\r\n\r\n #!/usr/bin/python\r\n # -*- coding: utf-8 -*-\r\n from k3cloud_webapi_sdk.main import K3CloudApiSdk\r\n\r\n # \u9996\u5148\u6784\u9020\u4e00\u4e2aSDK\u5b9e\u4f8b\r\n api_sdk = K3CloudApiSdk()\r\n\r\n # \u7136\u540e\u521d\u59cb\u5316SDK\uff0c\u9700\u6307\u5b9a\u5982\u4e0b\u914d\u7f6e\u6587\u4ef6\u76f8\u5173\u53c2\u6570\uff0c\u5426\u5219\u4f1a\u5bfc\u81f4SDK\u521d\u59cb\u5316\u5931\u8d25\u800c\u65e0\u6cd5\u4f7f\u7528\uff1a\r\n # config_path:\u914d\u7f6e\u6587\u4ef6\u7684\u76f8\u5bf9\u6216\u7edd\u5bf9\u8def\u5f84\uff0c\u5efa\u8bae\u4f7f\u7528\u7edd\u5bf9\u8def\u5f84\r\n # config_node:\u914d\u7f6e\u6587\u4ef6\u4e2d\u7684\u8282\u70b9\u540d\u79f0\r\n api_sdk.Init(config_path='conf.ini', config_node='config')\r\n\r\n # \u6784\u9020\u4fdd\u5b58\u63a5\u53e3\u7684\u90e8\u5206\u5b57\u6bb5\u6570\u636e\uff0c\u4f7f\u7528\u65f6\u8bf7\u53c2\u8003WebAPI\u5177\u4f53\u63a5\u53e3\u7684\u5b9e\u9645\u53c2\u6570\u5217\u8868\r\n save_data = {\"Model\": {\r\n \"FCreateOrgId\": {\"FNumber\": 100},\r\n \"FUserOrgId\": {\"FNumber\": 100},\r\n \"FNumber\": \"***********\",\r\n \"FName\": \"***********\"\r\n }}\r\n\r\n # \u8c03\u7528sdk\u4e2d\u7684\u4fdd\u5b58\u63a5\u53e3\r\n api_sdk.Save(\"BD_Material\", save_data)\r\n\r\n\r\n",
"bugtrack_url": null,
"license": "MIT License",
"summary": "python sdk for k3cloud web api v3.0",
"version": "8.0.4",
"project_urls": {
"Homepage": "https://open.kingdee.com"
},
"split_keywords": [
"k3cloud",
"webapi",
"sdk"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "ef6ade62d35932348288bfa8324d60980d72e6b9f10e35aceb4153d4e4d15d99",
"md5": "c0af4b2cbf027175f7378c835beefd78",
"sha256": "9dfdd139a61c8a2aa8b4ecc8983cfd4060423911cdadfce9fe3a7380b632fe2c"
},
"downloads": -1,
"filename": "kingdee.cdp.webapi.sdk-8.0.4-py3-none-any.whl",
"has_sig": false,
"md5_digest": "c0af4b2cbf027175f7378c835beefd78",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 15284,
"upload_time": "2024-12-27T02:27:27",
"upload_time_iso_8601": "2024-12-27T02:27:27.887220Z",
"url": "https://files.pythonhosted.org/packages/ef/6a/de62d35932348288bfa8324d60980d72e6b9f10e35aceb4153d4e4d15d99/kingdee.cdp.webapi.sdk-8.0.4-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-12-27 02:27:27",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "kingdee.cdp.webapi.sdk"
}