Skip to main content

fsspec-rs

fsspec-compatible filesystem backends with Rust acceleration.

Build Status codecov License PyPI

Overview

fsspec-rs provides Python filesystem classes that inherit from fsspec.spec.AbstractFileSystem while delegating core operations to Rust. They can be used anywhere fsspec filesystems are accepted, including pandas, dask, xarray, and direct fsspec.open() calls.

The package currently includes:

Backend Protocol Python class Replaces
Local filesystem file-rs, local-rs fsspec_rs.LocalFileSystem fsspec.implementations.local.LocalFileSystem
Amazon S3 s3-rs fsspec_rs.S3FileSystem s3fs.S3FileSystem

Install

pip install fsspec-rs

Quick start

import fsspec
from fsspec_rs import LocalFileSystem
from fsspec_rs import S3FileSystem

fs = LocalFileSystem()
fs.pipe_file("/tmp/example.txt", b"hello")
print(fs.cat_file("/tmp/example.txt"))

s3 = S3FileSystem(bucket="my-bucket", region="us-east-1")
s3.pipe_file("path/to/output.txt", b"hello")

with fsspec.open("file-rs:///tmp/example.txt", "rb") as f:
    print(f.read())

Documentation

  • Filesystems: local and S3 usage, configuration, caching, and path conventions.
  • API reference: Python API generated with yardang/Sphinx.
  • Rust traits: Rust FileSystem, experimental AsyncFileSystem, FsFile, and cache traits.

Build docs locally with:

yardang build

Metadata

Release files for fsspec-rs 0.1.5

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-rs 0.1.5
File Size Uploaded
fsspec_rs-0.1.5.tar.gz 2.3 MB Details

Built distributions (wheels)

Table of built distributions (wheels) for fsspec-rs 0.1.5
File Interpreter ABI Platform
fsspec_rs-0.1.5-cp311-abi3-win_amd64.whl CPython 3.11 abi3 Windows x86-64 Details
fsspec_rs-0.1.5-cp311-abi3-manylinux_2_28_x86_64.whl CPython 3.11 abi3 Linux glibc 2.28+ x86-64 Details
fsspec_rs-0.1.5-cp311-abi3-macosx_11_0_arm64.whl CPython 3.11 abi3 macOS 11.0+ ARM64 Details

Total release size: 8.2 MB

Release files / fsspec_rs-0.1.5.tar.gz

Download URL fsspec_rs-0.1.5.tar.gz
Size 2.3 MB
Tags Source
SHA-256 checksum
How to use checksums
2d7d9876dd5f29dc782c85cdb8414a3ed913e7ccc4ef10e830a859c2d2415ef1
BLAKE2b-256 checksum
How to use checksums
f3978934097ebd5c32f1a339b70319f2ef449eabfd1939517f63ab9cda383cf8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.13

Release files / fsspec_rs-0.1.5-cp311-abi3-win_amd64.whl

Download URL fsspec_rs-0.1.5-cp311-abi3-win_amd64.whl
Size 1.9 MB
Tags CPython 3.11 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
c1318540d3527dacb0f049227888ce4b3ce26ce81a8ba2062faf964be729f497
BLAKE2b-256 checksum
How to use checksums
5e2221a70a33a07de94bf19fdbb9be8b568a29893921c7debb19a76730e4a5f7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.13

Release files / fsspec_rs-0.1.5-cp311-abi3-manylinux_2_28_x86_64.whl

Download URL fsspec_rs-0.1.5-cp311-abi3-manylinux_2_28_x86_64.whl
Size 2.2 MB
Tags CPython 3.11 Linux glibc 2.28+ x86-64 abi3
SHA-256 checksum
How to use checksums
5449d225899fb4aa300e1ff906a031dd5ad76b21b9e80c3d42a87479e51e127b
BLAKE2b-256 checksum
How to use checksums
3b6d87a6f65515e09e632a23300e171da87c915275f5c3d624d59dc85c53c23f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.13

Release files / fsspec_rs-0.1.5-cp311-abi3-macosx_11_0_arm64.whl

Download URL fsspec_rs-0.1.5-cp311-abi3-macosx_11_0_arm64.whl
Size 1.9 MB
Tags CPython 3.11 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
5423bfa52cb0787886a94e31ab506ab9beb378fa071bb6006e5a0a1e11b11b57
BLAKE2b-256 checksum
How to use checksums
fcea7097e08edf2860447584a3f2de586526035a936476c165de646714033062
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.13

Release history Release notifications | RSS feed

This release

0.1.5 This release

4 release files

0.1.4

4 release files

0.1.3

4 release files

0.1.2

4 release files

0.1.1

4 release files

0.1.0

4 release files

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