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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fsspec_rs-0.1.5.tar.gz (2.3 MB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

fsspec_rs-0.1.5-cp311-abi3-win_amd64.whl (1.9 MB view details)

Uploaded CPython 3.11+Windows x86-64

fsspec_rs-0.1.5-cp311-abi3-manylinux_2_28_x86_64.whl (2.2 MB view details)

Uploaded CPython 3.11+manylinux: glibc 2.28+ x86-64

fsspec_rs-0.1.5-cp311-abi3-macosx_11_0_arm64.whl (1.9 MB view details)

Uploaded CPython 3.11+macOS 11.0+ ARM64

File details

Details for the file fsspec_rs-0.1.5.tar.gz.

File metadata

  • Download URL: fsspec_rs-0.1.5.tar.gz
  • Upload date:
  • Size: 2.3 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.13

File hashes

Hashes for fsspec_rs-0.1.5.tar.gz
Algorithm Hash digest
SHA256 2d7d9876dd5f29dc782c85cdb8414a3ed913e7ccc4ef10e830a859c2d2415ef1
MD5 6a8b99d2d2d3d774c71245b150f767c1
BLAKE2b-256 f3978934097ebd5c32f1a339b70319f2ef449eabfd1939517f63ab9cda383cf8

See more details on using hashes here.

File details

Details for the file fsspec_rs-0.1.5-cp311-abi3-win_amd64.whl.

File metadata

  • Download URL: fsspec_rs-0.1.5-cp311-abi3-win_amd64.whl
  • Upload date:
  • Size: 1.9 MB
  • Tags: CPython 3.11+, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.13

File hashes

Hashes for fsspec_rs-0.1.5-cp311-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 c1318540d3527dacb0f049227888ce4b3ce26ce81a8ba2062faf964be729f497
MD5 9b1d8f54d064f51a0e4510bebf93d1f5
BLAKE2b-256 5e2221a70a33a07de94bf19fdbb9be8b568a29893921c7debb19a76730e4a5f7

See more details on using hashes here.

File details

Details for the file fsspec_rs-0.1.5-cp311-abi3-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for fsspec_rs-0.1.5-cp311-abi3-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 5449d225899fb4aa300e1ff906a031dd5ad76b21b9e80c3d42a87479e51e127b
MD5 1e738ddcd7e8a10be7b1bf981b2fa50d
BLAKE2b-256 3b6d87a6f65515e09e632a23300e171da87c915275f5c3d624d59dc85c53c23f

See more details on using hashes here.

File details

Details for the file fsspec_rs-0.1.5-cp311-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for fsspec_rs-0.1.5-cp311-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5423bfa52cb0787886a94e31ab506ab9beb378fa071bb6006e5a0a1e11b11b57
MD5 625de85f53cfe5ea93fe77e450e0b338
BLAKE2b-256 fcea7097e08edf2860447584a3f2de586526035a936476c165de646714033062

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page