ossfs
fsspec filesystem for OSS
What it is and what it does
OSSFS is a Python adapter that exposes Alibaba Cloud's Object Storage Service (OSS) through the fsspec filesystem abstraction layer. It lets you read, write, and list objects in OSS buckets using the same standard API you would use for local files or other cloud storage backends, making it easy to swap storage backends in data pipelines and applications.
The package offers two modes: a synchronous variant using the official oss2 library, and an asynchronous variant using aiooss2 for concurrent bulk operations. According to the documentation, the async version can be significantly faster for workloads involving many small files—the example shows a 10x speedup for uploading 1200 small files. Both modes integrate seamlessly with fsspec, so you can use them with tools and libraries that already support fsspec.
Use it for:
- Access OSS objects in data pipelines and machine learning workflows using standard fsspec APIs.
- Migrate data between local storage and OSS without changing application code.
- Perform concurrent bulk uploads or downloads of many small files using the async variant.
- Integrate OSS storage with DVC or other fsspec-aware tools for reproducible data workflows.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
OSSFS provides a Python interface to Alibaba Cloud's Object Storage Service (OSS) through the fsspec standard API, enabling file-like operations on OSS objects with both synchronous and asynchronous backends.
Yes, if you work with Alibaba Cloud OSS and want a standard fsspec interface. The package is stable (Beta status), supports current Python versions (3.8–3.13), has no known vulnerabilities, and low install friction. The 464-day release gap suggests slower maintenance, so verify that aiooss2 support meets your needs before committing to the async variant.
Install
ossfs on PyPI
pip
pip install ossfsuv
uv add ossfspoetry
poetry add ossfsInstalling ossfs
Before you install
Low install friction with a pure-Python wheel. Maintenance is aging—last release was 464 days ago—but the repository remains active with a recent commit on 2025-05-07 and no archived status.
License in practice
Distributed under Apache-2.0, a permissive open-source license that allows commercial use, modification, and distribution with minimal restrictions.
Quickstart
pip install ossfs
import ossfs
fs = ossfs.OSSFileSystem(endpoint='http://oss-cn-hangzhou.aliyuncs.com')
with fs.open('/bucket/file') as f:
data = f.read()
Requires OSS credentials (access key ID and secret) and a valid OSS endpoint URL; async variant (AioOSSFileSystem) depends on the third-party aiooss2 backend which is not officially supported.
Verify before relying
- Whether aiooss2 dependency is installed by default or requires explicit opt-in for async functionality.
- Current status of aiooss2 official support and feature parity with oss2.
- Whether the 464-day gap since last release indicates active maintenance or dormancy.
Package facts
| License | Apache-2.0 (permissive) |
| Python support | supports the current Python release (>=3.8) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 3 — aiooss2, fsspec, oss2 |
| Maintenance | aging — 464 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 117,164/month — #12,175 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: ossfs-2025.5.0-py3-none-any.whl
Tags
More Distributed Computing packages
gRPC Python is an HTTP/2-based RPC framework…
permissive · top 100 on PyPI
execnetexecnet lets you spawn and communicate with…
permissive · top 1,000 on PyPI
cloudpickleCloudpickle extends Python's standard pickle…
permissive · top 1,000 on PyPI
smart-openProvides a unified, open()-compatible Python…
permissive · top 1,000 on PyPI
portalockerPortalocker provides cross-platform file…
permissive · top 1,000 on PyPI
rayRay is a distributed computing framework that…
permissive · top 1,000 on PyPI
aiooss2Aiooss2 provides an async client for Aliyun OSS…
permissive · top 15,000 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
gdrive-fsspecProvides a fsspec-compatible filesystem…
permissive · top 15,000 on PyPI
alibabacloud-oss-utilProvides utility functions for working with…
permissive · top 15,000 on PyPI
sshfsProvides an fsspec-compatible filesystem…
permissive · top 5,000 on PyPI
alibabacloud-oss20190517Provides a Python SDK for interacting with…
permissive · top 15,000 on PyPI
alibabacloud-oss-v2Uploads, downloads, and manages files on…
permissive · top 5,000 on PyPI
alibabacloud-gateway-oss-utilProvides utility functions for working with…
permissive · top 15,000 on PyPI
ocifsProvides a fsspec-compatible filesystem…
unclear · top 15,000 on PyPI