skillfed

oss2

Aliyun OSS (Object Storage Service) SDK

oss2 v2.19.1 14.7M downloads/30d#1,220 on PyPI
Permissive license DORMANT released

What it is and what it does

oss2 is the Python SDK for Alibaba Cloud's Object Storage Service, a cloud storage platform operated by Alibaba. It wraps HTTP operations to let you authenticate with OSS, create and manage buckets, and perform standard object operations—upload, download, delete, and list. The SDK depends on requests for HTTP transport, crcmod for checksums, pycryptodome for cryptographic operations, and Alibaba's own SDK packages for KMS integration and core API calls.

The package is mature (Production/Stable classifier, first released in 2015) and widely downloaded (14 million monthly downloads, top 5000 PyPI packages). However, it has been dormant for 658 days with no recent maintenance activity, so it is best suited for stable, production workloads that do not require active support or updates. If you are already committed to Alibaba Cloud OSS and need a straightforward Python client, this is the official choice; if you are evaluating cloud storage options, the lack of recent maintenance may be a concern.

Use it for:

  • Upload and download files to Alibaba Cloud OSS buckets from Python applications without writing raw HTTP code.
  • Batch process objects stored in OSS—iterate over bucket contents, delete objects, or manage metadata.
  • Integrate OSS storage into data pipelines or web applications that run on Alibaba Cloud infrastructure.
  • Implement server-side encryption and KMS key management for sensitive data stored in OSS.

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

Python SDK for uploading, downloading, and managing objects in Alibaba Cloud Object Storage Service (OSS) buckets via HTTP.

Yes, if you are already using Alibaba Cloud OSS and need a Python client. The package is stable, widely used, and carries no known vulnerabilities. However, the 658-day maintenance gap means no active bug fixes or feature development—install only if you accept that constraint and your use case is stable. Not recommended if you are evaluating cloud storage options or need an actively maintained SDK.

Install

oss2 on PyPI

pip

pip install oss2

uv

uv add oss2

poetry

poetry add oss2

Installing oss2

Before you install

High install friction due to six runtime dependencies including cryptographic libraries (pycryptodome) and Alibaba-specific SDK packages (aliyun-python-sdk-kms, aliyun-python-sdk-core). Maintenance is dormant—last release was 658 days ago, so expect no active bug fixes or feature updates.

License in practice

MIT license (permissive) means you can use, modify, and distribute this package freely in commercial and private projects with minimal restrictions.

Quickstart

pip install oss2

import oss2

auth = oss2.Auth('access_key_id', 'access_key_secret')
bucket = oss2.Bucket(auth, 'http://oss-cn-hangzhou.aliyuncs.com', 'bucket_name')
bucket.put_object('key', 'content')
result = bucket.get_object('key')
print(result.read())

Requires valid Alibaba Cloud OSS credentials (AccessKeyId and AccessKeySecret) and an active OSS bucket endpoint; Python 2.6, 2.7, 3.3–3.8 are the documented supported versions.

Verify before relying

  • Whether the package works reliably with Python versions beyond 3.8 (classifiers list 3.8 as the highest, but latest_release is recent).
  • Current status of the aliyun-python-sdk-kms and aliyun-python-sdk-core dependencies and their own maintenance.
  • Whether dormant status reflects intentional stability or abandonment.

Package facts

License not declared (permissive)
Python support not specified
Install friction high — source build required
Runtime dependencies 6 — requests, crcmod, pycryptodome, aliyun-python-sdk-kms, aliyun-python-sdk-core, six
Maintenance dormant — 658 days since the last release
First released
Downloads 14,673,043/month — #1,220 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: oss2-2.19.1.tar.gz

Development Status :: 5 - Production/StableIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 2Programming Language :: Python :: 2.6Programming Language :: Python :: 2.7Programming Language :: Python :: 3Programming Language :: Python :: 3.3Programming Language :: Python :: 3.4Programming Language :: Python :: 3.5Programming Language :: Python :: 3.6Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8

Tags

alibaba cloud oss sdkobject storage python clientaliyun oss upload downloadcloud storage management sdkoss bucket operations
alibaba-cloudobject-storagecloud-sdk

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

alibabacloud-oss-v2

Uploads, downloads, and manages files on…

permissive · top 5,000 on PyPI

ossfs

OSSFS provides a Python interface to Alibaba…

permissive · top 15,000 on PyPI

tablestore

Python SDK for Aliyun Tablestore (OTS), a…

permissive · top 15,000 on PyPI

aiooss2

Aiooss2 provides an async client for Aliyun OSS…

permissive · top 15,000 on PyPI

alibabacloud-oss20190517

Provides a Python SDK for interacting with…

permissive · top 15,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-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