alibabacloud-oss-v2
Alibaba Cloud OSS (Object Storage Service) SDK V2 for Python
What it is and what it does
The Alibaba Cloud OSS Python SDK v2 is the official client library for interacting with Alibaba Cloud's Object Storage Service. It provides methods to list buckets, list objects within buckets, upload files, download files, and manage object metadata through a paginated, request-response API pattern. The SDK handles authentication via environment variables or custom credential providers and abstracts the underlying HTTP communication through the requests library.
The package is designed for developers building applications that need to store or retrieve files from Alibaba Cloud's cloud storage infrastructure. It supports Python 3.8 through 3.12 and is currently in Beta status. The SDK uses pycryptodome for cryptographic operations and crcmod-plus for checksum validation, ensuring data integrity during transfers.
Use it for:
- Upload application logs or user-generated content to OSS for long-term archival and backup.
- Build a file management system that lists, retrieves, and serves files stored in OSS buckets.
- Integrate OSS as a data lake backend for batch processing or analytics pipelines.
- Implement a media hosting service that stores images or videos and serves them via OSS.
- Sync local files to OSS as part of a disaster recovery or data replication workflow.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Uploads, downloads, and manages files on Alibaba Cloud Object Storage Service (OSS) from Python applications using the official v2 SDK.
Yes, if you are building on Alibaba Cloud infrastructure and need to interact with OSS. The SDK is actively maintained, has low install friction, carries no known vulnerabilities, and uses a permissive license. It is Beta status, so verify that its API stability and feature set meet your production requirements before committing to it.
Install
alibabacloud-oss-v2 on PyPI
pip
pip install alibabacloud-oss-v2uv
uv add alibabacloud-oss-v2poetry
poetry add alibabacloud-oss-v2Installing alibabacloud-oss-v2
Before you install
Low install friction with a pure-wheel distribution. Actively maintained as of 2026-08-12 with recent releases. Depends on three stable runtime libraries: requests, pycryptodome, and crcmod-plus.
License in practice
Licensed under Apache License 2.0 (permissive), allowing commercial use, modification, and redistribution with minimal restrictions—suitable for most projects.
Quickstart
pip install alibabacloud-oss-v2
import alibabacloud_oss_v2 as oss
credentials_provider = oss.credentials.EnvironmentVariableCredentialsProvider()
cfg = oss.config.load_default()
cfg.credentials_provider = credentials_provider
cfg.region = "cn-hangzhou"
client = oss.Client(cfg)
paginator = client.list_buckets_paginator()
for page in paginator.iter_page(oss.ListBucketsRequest()):
for bucket in page.buckets:
print(bucket.name)
Requires Python 3.8 or above and Alibaba Cloud OSS credentials (access key ID and secret) set as environment variables.
Verify before relying
- Whether the SDK supports multipart uploads or streaming for large files.
- Performance characteristics when handling high-throughput or large-scale object operations.
- Availability of comprehensive error handling and retry logic documentation.
Package facts
| License | Apache License 2.0 (permissive) |
| Python support | supports the current Python release (>=3.8) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 3 — crcmod-plus, pycryptodome, requests |
| Maintenance | actively maintained — 39 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 5,040,910/month — #2,178 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: alibabacloud_oss_v2-1.3.2-py3-none-any.whl
Keywords: alibabacloud, oss
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
oss2Python SDK for uploading, downloading, and…
permissive · top 5,000 on PyPI
alibabacloud-gateway-ossProvides a gateway implementation for Alibaba…
permissive · top 15,000 on PyPI
alibabacloud-gateway-oss-utilProvides utility functions for working with…
permissive · top 15,000 on PyPI
alibabacloud-oss20190517Provides a Python SDK for interacting with…
permissive · top 15,000 on PyPI
alibabacloud-oss-utilProvides utility functions for working with…
permissive · top 15,000 on PyPI
aliyun-python-sdk-coreProvides core client infrastructure for calling…
permissive · top 5,000 on PyPI
aliyun-python-sdk-core-v3Provides core client and authentication…
permissive · top 15,000 on PyPI
tosA Python SDK for interacting with Volcengine's…
unclear · top 15,000 on PyPI
ossdataProvides scalable datasets for software…
permissive · top 15,000 on PyPI
cloudconvertOfficial Python SDK for CloudConvert API v2,…
permissive · top 15,000 on PyPI