skillfed

alibabacloud-oss-v2

Alibaba Cloud OSS (Object Storage Service) SDK V2 for Python

alibabacloud-oss-v2 v1.3.2 5.0M downloads/30d#2,178 on PyPI46
Permissive license Apache License 2.0 Active released

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

uv

uv add alibabacloud-oss-v2

poetry

poetry add alibabacloud-oss-v2

Installing 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

Development Status :: 4 - BetaLicense :: OSI Approved :: Apache Software LicenseProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9

Tags

alibaba cloud oss storagealiyun object storage pythoncloud file upload downloadalibaba oss sdkobject storage service clientaliyun storage management
cloud-storagealibaba-cloud

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

oss2

Python SDK for uploading, downloading, and…

permissive · top 5,000 on PyPI

alibabacloud-gateway-oss

Provides a gateway implementation for Alibaba…

permissive · top 15,000 on PyPI

alibabacloud-gateway-oss-util

Provides utility functions for working with…

permissive · top 15,000 on PyPI

alibabacloud-oss20190517

Provides a Python SDK for interacting with…

permissive · top 15,000 on PyPI

alibabacloud-oss-util

Provides utility functions for working with…

permissive · top 15,000 on PyPI

aliyun-python-sdk-core

Provides core client infrastructure for calling…

permissive · top 5,000 on PyPI

aliyun-python-sdk-core-v3

Provides core client and authentication…

permissive · top 15,000 on PyPI

tos

A Python SDK for interacting with Volcengine's…

unclear · top 15,000 on PyPI

ossdata

Provides scalable datasets for software…

permissive · top 15,000 on PyPI

cloudconvert

Official Python SDK for CloudConvert API v2,…

permissive · top 15,000 on PyPI