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以上版本
更多文档
Metadata
Release files for ks3sdk 1.19.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ks3sdk-1.19.0.tar.gz | 167.0 kB | Without provenance | Details for ks3sdk-1.19.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ks3sdk-1.19.0-py3-none-any.whl | Python 3 | none | any | Details for ks3sdk-1.19.0-py3-none-any.whl |
Total release size: 314.7 kB
Release files / ks3sdk-1.19.0.tar.gz
| Download URL | ks3sdk-1.19.0.tar.gz |
|---|---|
| Size | 167.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2f01d8b80ff1c68864e8d084b8970a855edb9174c47268286d46d587129d4ca1
|
|
BLAKE2b-256 checksum How to use checksums |
cd41b4c6195820ec54daca2fc0a4c8f5752fb73658da10f71a8bad0c7756e2e2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.15
|
Release files / ks3sdk-1.19.0-py3-none-any.whl
| Download URL | ks3sdk-1.19.0-py3-none-any.whl |
|---|---|
| Size | 147.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1ea821cb609cfe8cb528ffdbb72677868c7e573f184df3915c00ceffb8f7d965
|
|
BLAKE2b-256 checksum How to use checksums |
dd9325aa5c1a0c930721b53d3eb6e7d5c8417e4a4bc6da33e77a68d863d8a734
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.15
|
Security for ks3sdk 1.19.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.