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.17.0.tar.gz (146.7 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.17.0-py3-none-any.whl (124.6 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for ks3sdk-1.17.0.tar.gz
Algorithm Hash digest
SHA256 cf44a162d989eb5344d2fe882a1cdeb8f0cb9de9e6c72c133ed3ec8582df809e
MD5 567e0db03e85f89ba3c2709299e1cd99
BLAKE2b-256 a6f3a253e14dcd5ee6796fce97d4d332592d67ee9e0c994df280c1142c0c79ee

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ks3sdk-1.17.0-py3-none-any.whl
  • Upload date:
  • Size: 124.6 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.17.0-py3-none-any.whl
Algorithm Hash digest
SHA256 be1f0fad8223d4e242175c16bbeed925038357bd1cac861f855a96df6be3d21d
MD5 2ce9a5fdeaa05f58d399a75d4893ba75
BLAKE2b-256 e3e875de63bb55669951758bc49e7a9d65a59acfa59b2b5e51ab6041244ec9d9

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