Skip to main content

fsspec-alt-strategies

PyPI - Version PyPI - Version Python versions License CI CodeQL codecov

Alternative, filesystem-independent strategies for fsspec filesystems, and a way to watch and stop what they do.

Status: alpha. The API may change.

fsspec's recursive operations, such as find, rm and copy, list a whole tree before they act on it. That suits object stores, which list every key under a prefix in one paginated request. It is slow on storages with a hierarchical namespace, which list one folder per request, such as Azure Data Lake Storage Gen2, SFTP or HDFS. And once called, such an operation cannot be watched or stopped until it ends.

This library offers other ways of doing the same things. It is a third-party project, not part of fsspec.

What it offers

  • Faster file tree operations: finding, deleting, copying or moving a whole folder tree, on storages with folders and on object stores alike.
  • Work on huge folders: files are acted on as soon as they are found, so a folder of hundreds of thousands of files never needs to fit in memory.
  • Progress you can see, and stop: follow a long operation file by file, see which files failed, and stop it at any time, through the familiar fsspec calls.
  • Faster reads and writes: files in cloud storages adapt to how each is used, and writes can wait for fsspec's transaction to commit.
  • Copies between storages: one filesystem can span several storages, and copy or move files between them.
  • Works with what you have: existing fsspec filesystems, such as s3fs, get these features with a single call, and a new one by implementing a few basic operations.

Getting started

The library has two packages:

  • fsspec-alt-strategies, installed with pip install fsspec-alt-strategies;
  • fsspec-alt-strategies-impl, which we recommend copying into your own package, so that its behaviour changes only when you choose.

USAGE.md explains what to copy for each feature, and how to use each one.

Compatibility

  • Python: 3.11 to 3.14, each tested in CI.
  • fsspec: 2024.2.0 or later.
  • Dependencies: none but fsspec. The command line copying the strategies needs click, with the cli extra.
  • Filesystems: any fsspec filesystem, async or sync. Those known to monitored() are the local filesystem, s3fs, gcsfs, adlfs, and fsspec's memory, SFTP and HDFS filesystems.

Development, security and license

  • DEVELOPMENT.md explains how to work on the library: its design, setup, tests and releases.
  • SECURITY.md explains how to report a vulnerability.
  • The library is licensed under the Apache License 2.0. See LICENSE.

Metadata

Release files for fsspec-alt-strategies-impl 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for fsspec-alt-strategies-impl 0.1.0
File Size Uploaded Provenance Actions
fsspec_alt_strategies_impl-0.1.0.tar.gz 173.3 kB With provenance Details for fsspec_alt_strategies_impl-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for fsspec-alt-strategies-impl 0.1.0
File Interpreter ABI Platform Actions
fsspec_alt_strategies_impl-0.1.0-py3-none-any.whl Python 3 none any Details for fsspec_alt_strategies_impl-0.1.0-py3-none-any.whl

Total release size: 320.5 kB

Release files / fsspec_alt_strategies_impl-0.1.0.tar.gz

Download URL fsspec_alt_strategies_impl-0.1.0.tar.gz
Size 173.3 kB
Tags Source
SHA-256 checksum
How to use checksums
388b929041ab8cc27eea25deda257e9ed694d8e8feee8ba4e9a5360803cf0cdc
BLAKE2b-256 checksum
How to use checksums
b25f0b42846413c174548ad02e71f8466d0adaff8a8884bd0a49f11c89413ab4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 8, 2026.

Transparency log

Release files / fsspec_alt_strategies_impl-0.1.0-py3-none-any.whl

Download URL fsspec_alt_strategies_impl-0.1.0-py3-none-any.whl
Size 147.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e3c7b56c95463858e1980d4a8f6878134207a62016272bed3d98845c5767e414
BLAKE2b-256 checksum
How to use checksums
136b27af14732e867131f8e8a4e828ee33cd89a50332a40ed58a44173271447c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 8, 2026.

Transparency log

Security for fsspec-alt-strategies-impl 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for fsspec_alt_strategies_impl-0.1.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 8, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page