cos-python-sdk-v5
cos-python-sdk-v5
What it is and what it does
This is the official Python SDK for Tencent Cloud's COS (Cloud Object Storage) service. It provides a client library to interact with cloud storage buckets—uploading, downloading, listing, and managing objects programmatically. The SDK wraps Tencent's REST API and handles authentication, request signing, and response parsing.
The package is designed for developers building applications that need to store or retrieve files from Tencent Cloud. It depends on standard HTTP and cryptography libraries (requests, pycryptodome, certifi) and uses xmltodict to parse responses. The SDK is maintained by Tencent and released as pure Python wheels, making installation straightforward across Python versions.
Use it for:
- Upload user-generated content (images, documents, videos) to cloud storage from a web or mobile backend.
- Batch download or sync files from a COS bucket to a local system or data pipeline.
- Manage object metadata, permissions, and lifecycle policies programmatically without using the web console.
- Integrate cloud storage into a data processing workflow that reads input files and writes results back to COS.
- Build a file-sharing or archival service that stores and retrieves objects on behalf of end users.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Python SDK for Tencent Cloud's COS (Cloud Object Storage) service, enabling programmatic upload, download, and management of objects in cloud storage buckets.
Yes, if you are building on Tencent Cloud and need programmatic access to COS. The package has low install friction, permissive licensing, no known vulnerabilities, and active maintenance. It is the standard way to interact with Tencent's object storage from Python. Not relevant if you use a different cloud provider.
Install
cos-python-sdk-v5 on PyPI
pip
pip install cos-python-sdk-v5uv
uv add cos-python-sdk-v5poetry
poetry add cos-python-sdk-v5Installing cos-python-sdk-v5
Before you install
Low install friction with pure Python wheels for both Python 2 and 3. Maintained actively with a recent release 77 days ago. Depends on common, stable libraries (requests, certifi, xmltodict, six, crcmod, pycryptodome).
License in practice
MIT license permits commercial and private use with minimal restrictions—you may use, modify, and distribute this package freely provided you retain the license notice.
Quickstart
pip install cos-python-sdk-v5
from cos_python_sdk_v5 import CosConfig, CosS3Client
config = CosConfig(Region='region', SecretId='id', SecretKey='key')
client = CosS3Client(config)
client.put_object(Bucket='bucket', Key='key', Body=b'data')
Requires Tencent Cloud credentials (SecretId and SecretKey) and a configured bucket in a supported region.
Verify before relying
- Whether Python 2.6 and 2.7 support claimed in the description is still actively maintained or tested.
- Current state of the GitHub repository (stars, commit activity, open issues) to confirm active maintenance beyond the release date.
Package facts
| License | MIT (permissive) |
| Python support | not specified |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 6 — certifi, requests, xmltodict, six, crcmod, pycryptodome |
| Maintenance | actively maintained — 77 days since the last release |
| First released | |
| Downloads | 1,256,950/month — #4,153 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: cos_python_sdk_v5-1.9.44-py2-none-any.whl; cos_python_sdk_v5-1.9.44-py3-none-any.whl
Tags
More Internet packages
Botocore provides low-level, data-driven access…
permissive · top 100 on PyPI
aiobotocoreProvides an async client for AWS services using…
permissive · top 100 on PyPI
pydanticPydantic validates Python data structures…
permissive · top 100 on PyPI
filelockProvides a platform-independent file locking…
permissive · top 100 on PyPI
fastapiFastAPI is a Python web framework for building…
permissive · top 100 on PyPI
googleapis-common-protosProvides common Protocol Buffer message…
permissive · top 100 on PyPI
coscmdCOSCMD is a command-line tool for managing…
permissive · top 15,000 on PyPI
ibm-cos-sdkPython SDK for interacting with IBM Cloud…
permissive · top 5,000 on PyPI
tencentcloud-sdk-python-commonProvides Python bindings and common utilities…
permissive · top 5,000 on PyPI
tencentcloud-sdk-pythonOfficial SDK for accessing Tencent Cloud…
permissive · top 15,000 on PyPI
ibm-cos-sdk-s3transferManages transfers to and from IBM Cloud Object…
permissive · top 5,000 on PyPI
tccliCommand-line interface for managing Tencent…
permissive · top 15,000 on PyPI
tencentcloud-sdk-python-wsaProvides Python bindings to interact with…
permissive · top 15,000 on PyPI
ibm-cos-sdk-coreProvides a low-level Python interface to IBM…
permissive · top 5,000 on PyPI
google-cloud-storage-transferPython client library for Google Cloud Storage…
permissive · top 1,000 on PyPI
miniopy-asyncAsynchronous Python client for MinIO object…
permissive · top 15,000 on PyPI