Skip to main content

Ksyun KS3 SDK

Project description

KS3 SDK for python使用指南


安装

安装python sdk

在线安装

pip install ks3sdk

本地安装

通过git下载SDK到本地,或者下载zip包后解压

git clone https://gitee.com/ks3sdk/ks3-python-sdk.git

进入ks3-python-sdk目录,安装SDK

cd ks3-python-sdk
python setup.py install

初始化

from ks3.connection import Connection
ak = 'YOUR_ACCESS_KEY'
sk = 'YOUR_SECRET_KEY'
c = Connection(ak, sk, host='YOUR_REGION_ENDPOINT', is_secure=False, domain_mode=False,timeout = 1)

常用参数说明

  • ak:金山云提供的ACCESS KEY ID
  • sk:金山云提供的SECRET KEY ID
  • host:金山云提供的各个Region的域名(例 ks3-cn-beijing.ksyuncs.com),具体定义可参考 API接口文档-Region(区域)
  • is_secure:是否通过HTTPS协议访问Ks3,True:启用 False:关闭
  • domain_mode:是否使用自定义域名访问Ks3(host填写自定义域名),True:是 False:否
  • timeout:设置超时时间 ,默认10秒 单位:秒

运行环境

适用于2.6、2.7、3.3、3.4、3.5、3.6、3.7的Python版本

推荐用3.5以上版本

更多文档

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ks3sdk-1.16.0.tar.gz (129.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ks3sdk-1.16.0-py3-none-any.whl (116.2 kB view details)

Uploaded Python 3

File details

Details for the file ks3sdk-1.16.0.tar.gz.

File metadata

  • Download URL: ks3sdk-1.16.0.tar.gz
  • Upload date:
  • Size: 129.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.15

File hashes

Hashes for ks3sdk-1.16.0.tar.gz
Algorithm Hash digest
SHA256 8bcb1565e1b39dc0e9f830db3fda8dc58f66fbc1e71a7c178ce5190d48d1fb75
MD5 ea03930617127347d5c91fd3c24fbc2f
BLAKE2b-256 921796fe2cfa814e2fbdc361c6c246b84b370527a72d6d8638ebc0dd1a587649

See more details on using hashes here.

File details

Details for the file ks3sdk-1.16.0-py3-none-any.whl.

File metadata

  • Download URL: ks3sdk-1.16.0-py3-none-any.whl
  • Upload date:
  • Size: 116.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.15

File hashes

Hashes for ks3sdk-1.16.0-py3-none-any.whl
Algorithm Hash digest
SHA256 21f610c877be115789604f27bd9c2ef7b30829cafe90ae83f947d15a6014b7ea
MD5 cd31097da543c145d74c13e1f525a388
BLAKE2b-256 5bb4688ed1493e1572141b4fb2188cab45011c8918bb3202020a073c69eb0b66

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