Skip to main content

腾讯云对象存储库,支持命令行

安装

通过pip安装:

pip install qcos

配置

使用官方的 命令行工具CLI 配置secret_id, scret_key

代码中使用

参照源码,比较简单, 调用方式:

from qcos import Client
client = Client(secret_id, secret_key, region, bucket)
# 根据路径上传
client.put_local('a.txt', local_path)
# 直接上传内容
client.put_object('a.txt', data='content')
# 检查文件是否存在
client.head_object('a.txt')

命令行

格式:

qcos 本地文件夹 region bucket cos文件夹路径

比如:

qcos ./build ap-beijing testbucket-10000 /

Metadata

Release files for qcos 2.3.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for qcos 2.3.4
File Size Uploaded
qcos-2.3.4.tar.gz 5.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for qcos 2.3.4
File Interpreter ABI Platform
qcos-2.3.4-py3-none-any.whl Python 3 none any Details

Total release size: 11.6 kB

Release files / qcos-2.3.4.tar.gz

Download URL qcos-2.3.4.tar.gz
Size 5.1 kB
Tags Source
SHA-256 checksum
How to use checksums
f92110a5cef00e9cf996ce3e32e7690aacfd1cff0fc6f734f4a184005222a01a
BLAKE2b-256 checksum
How to use checksums
c86260b10480be3e69fda292b5c245054efa89e31184c7b2439cb9529b9883c9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.5.1 CPython/3.10.12 Darwin/21.6.0

Release files / qcos-2.3.4-py3-none-any.whl

Download URL qcos-2.3.4-py3-none-any.whl
Size 6.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a868075e9b2919355deb02b3b8efde66365ab1ae837b3152aeed65f2e7339af9
BLAKE2b-256 checksum
How to use checksums
b0978466db4a18bb6095d114fb32eba37c30e69bab0e642bee68e0efc3e85042
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.5.1 CPython/3.10.12 Darwin/21.6.0

Release history Release notifications | RSS feed

This release

2.3.4 This release

2 release files

2.3.3

2 release files

2.3.2

2 release files

2.3.1

1 release file

2.3.0

1 release file

2.2.3

1 release file

2.2.2

1 release file

2.2.1

1 release file

2.2.0

1 release file

2.1.8

1 release file

2.1.7

1 release file

2.1.6

1 release file

2.1.5

1 release file

2.1.4

1 release file

2.1.3

1 release file

2.1.2

1 release file

2.1.1

1 release file

2.1.0

1 release file

2.0.2

1 release file

2.0.1

1 release file

2.0.0

1 release file

0.1.4

1 release file

0.1.3

1 release file

0.1.2

1 release file

0.1.1

1 release file

0.1.0

1 release file

0.0.3

1 release file

0.0.2

1 release file

0.0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page