Skip to content

Commit a8ae69e

Browse files
authored
Merge branch 'master' into master
2 parents 090c1cc + 8a3fd7a commit a8ae69e

File tree

15 files changed

+436
-250
lines changed

15 files changed

+436
-250
lines changed

CHANGELOG.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -227,8 +227,6 @@ MD5 check support both unicode and bytes
227227

228228
## [v1.6.7](https://github.com/tencentyun/cos-python-sdk-v5/compare/v1.6.5...v1.6.7) - 2019-04-24
229229

230-
standardized signature format
231-
232230
### Merged
233231

234232
- standardized singature format [`#84`](https://github.com/tencentyun/cos-python-sdk-v5/pull/84)

README.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ Qcloud COSv5 SDK
44
.. image:: https://img.shields.io/pypi/v/cos-python-sdk-v5.svg
55
:target: https://pypi.org/search/?q=cos-python-sdk-v5
66
:alt: Pypi
7-
.. image:: https://travis-ci.org/tencentyun/cos-python-sdk-v5.svg?branch=master
8-
:target: https://travis-ci.org/tencentyun/cos-python-sdk-v5
7+
.. image:: https://api.travis-ci.com/tencentyun/cos-python-sdk-v5.svg?branch=master
8+
:target: https://app.travis-ci.com/github/tencentyun/cos-python-sdk-v5
99
:alt: Travis CI
1010

1111
介绍

demo/batch_operation_demo.py

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,13 @@
1717

1818
logging.basicConfig(level=logging.INFO, stream=sys.stdout)
1919

20-
# 设置用户属性, 包括secret_id, secret_key, region
21-
# appid已在配置中移除,请在参数Bucket中带上appid。Bucket由bucketname-appid组成
22-
secret_id = '' # 替换为用户的secret_id
23-
secret_key = '' # 替换为用户的secret_key
24-
region = 'ap-guangzhou' # 替换为用户的region
25-
token = None # 使用临时密钥需要传入Token,默认为空,可不填
20+
# 设置用户属性, 包括 secret_id, secret_key, region等。Appid 已在CosConfig中移除,请在参数 Bucket 中带上 Appid。Bucket 由 BucketName-Appid 组成
21+
secret_id = 'SecretId' # 替换为用户的 SecretId,请登录访问管理控制台进行查看和管理,https://console.cloud.tencent.com/cam/capi
22+
secret_key = 'SecretKey' # 替换为用户的 SecretKey,请登录访问管理控制台进行查看和管理,https://console.cloud.tencent.com/cam/capi
23+
region = 'ap-beijing' # 替换为用户的 region,已创建桶归属的region可以在控制台查看,https://console.cloud.tencent.com/cos5/bucket
24+
# COS支持的所有region列表参见https://www.qcloud.com/document/product/436/6224
25+
token = None # 如果使用永久密钥不需要填入token,如果使用临时密钥需要填入,临时密钥生成和使用指引参见https://cloud.tencent.com/document/product/436/14048
26+
2627
config = CosConfig(Region=region, SecretId=secret_id, SecretKey=secret_key, Token=token) # 获取配置对象
2728
client = CosS3Client(config)
2829

demo/ci_compress.py

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,13 @@
1212

1313
logging.basicConfig(level=logging.INFO, stream=sys.stdout)
1414

15-
# 设置用户属性, 包括secret_id, secret_key, region
16-
# appid已在配置中移除,请在参数Bucket中带上appid。Bucket由bucketname-appid组成
17-
secret_id = '' # 替换为用户的secret_id
18-
secret_key = '' # 替换为用户的secret_key
19-
region = 'ap-guangzhou' # 替换为用户的region
20-
token = None # 使用临时密钥需要传入Token,默认为空,可不填
15+
# 设置用户属性, 包括 secret_id, secret_key, region等。Appid 已在CosConfig中移除,请在参数 Bucket 中带上 Appid。Bucket 由 BucketName-Appid 组成
16+
secret_id = 'SecretId' # 替换为用户的 SecretId,请登录访问管理控制台进行查看和管理,https://console.cloud.tencent.com/cam/capi
17+
secret_key = 'SecretKey' # 替换为用户的 SecretKey,请登录访问管理控制台进行查看和管理,https://console.cloud.tencent.com/cam/capi
18+
region = 'ap-beijing' # 替换为用户的 region,已创建桶归属的region可以在控制台查看,https://console.cloud.tencent.com/cos5/bucket
19+
# COS支持的所有region列表参见https://www.qcloud.com/document/product/436/6224
20+
token = None # 如果使用永久密钥不需要填入token,如果使用临时密钥需要填入,临时密钥生成和使用指引参见https://cloud.tencent.com/document/product/436/14048
21+
2122
config = CosConfig(Region=region, SecretId=secret_id, SecretKey=secret_key, Token=token) # 获取配置对象
2223
client = CosS3Client(config)
2324

0 commit comments

Comments
 (0)