skillfed

cos-python-sdk-v5

cos-python-sdk-v5

cos-python-sdk-v5 v1.9.44 1.3M downloads/30d#4,153 on PyPI
Permissive license MIT Active released

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-v5

uv

uv add cos-python-sdk-v5

poetry

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 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

tencent cloud object storage sdkcos python sdkcloud storage api clientqcloud storage managementobject storage python library
cloud-storagetencent-cloudobject-storage

More Internet packages

botocore

Botocore provides low-level, data-driven access…

permissive · top 100 on PyPI

aiobotocore

Provides an async client for AWS services using…

permissive · top 100 on PyPI

pydantic

Pydantic validates Python data structures…

permissive · top 100 on PyPI

filelock

Provides a platform-independent file locking…

permissive · top 100 on PyPI

fastapi

FastAPI is a Python web framework for building…

permissive · top 100 on PyPI

googleapis-common-protos

Provides common Protocol Buffer message…

permissive · top 100 on PyPI

coscmd

COSCMD is a command-line tool for managing…

permissive · top 15,000 on PyPI

ibm-cos-sdk

Python SDK for interacting with IBM Cloud…

permissive · top 5,000 on PyPI

tencentcloud-sdk-python-common

Provides Python bindings and common utilities…

permissive · top 5,000 on PyPI

tencentcloud-sdk-python

Official SDK for accessing Tencent Cloud…

permissive · top 15,000 on PyPI

ibm-cos-sdk-s3transfer

Manages transfers to and from IBM Cloud Object…

permissive · top 5,000 on PyPI

tccli

Command-line interface for managing Tencent…

permissive · top 15,000 on PyPI

tencentcloud-sdk-python-wsa

Provides Python bindings to interact with…

permissive · top 15,000 on PyPI

ibm-cos-sdk-core

Provides a low-level Python interface to IBM…

permissive · top 5,000 on PyPI

google-cloud-storage-transfer

Python client library for Google Cloud Storage…

permissive · top 1,000 on PyPI

miniopy-async

Asynchronous Python client for MinIO object…

permissive · top 15,000 on PyPI