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.10.0.tar.gz (96.2 kB view details)

Uploaded Source

Built Distribution

ks3sdk-1.10.0-py3-none-any.whl (85.8 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for ks3sdk-1.10.0.tar.gz
Algorithm Hash digest
SHA256 be708f4b0cd55b780e64d394326c279116ce873bfeb588b69ffc2a8f0edbf8b6
MD5 cb9e3bfdae44fbd269621fdb407a1d4b
BLAKE2b-256 47e461bd57c6aefb3c5730a8d6d9e60d2da1294d85fb5c02f144572d5f991cec

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ks3sdk-1.10.0-py3-none-any.whl
  • Upload date:
  • Size: 85.8 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.10.0-py3-none-any.whl
Algorithm Hash digest
SHA256 301bbbe55ebb1fca96c322a5da8f65212379a563514571b199d96d0de6b26101
MD5 e1b34817813698ba26599ce25d5c9526
BLAKE2b-256 804dfd52ad06236139a0101fba9d7f86d94f2fd3c223abdd315e7c3cdf4f7d10

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page