--- id: cos-python-sdk-v5 version: "1.9.44" license: MIT license_treatment: permissive maintenance: active --- # cos-python-sdk-v5 — cos-python-sdk-v5 License: permissive · Maintenance: active · Downloads: 1.3M/mo ## 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 above — 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 pip install cos-python-sdk-v5 uv add cos-python-sdk-v5 poetry add cos-python-sdk-v5 ## Installing 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: unspecified - Install friction: low - Maintenance: active - Downloads: 1.3M/month (top 5,000 on PyPI) - Known vulnerabilities: none known ## Tags tencent cloud object storage sdk, cos python sdk, cloud storage api client, qcloud storage management, object storage python library, cloud-storage, tencent-cloud, object-storage [View on SkillFed](https://skillfed.io/packages/cos-python-sdk-v5) · [View on PyPI](https://pypi.org/project/cos-python-sdk-v5/)