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.4.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.4-cp311-abi3-win_amd64.whl (1.9 MB view details)

Uploaded CPython 3.11+Windows x86-64

fsspec_rs-0.1.4-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.4-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.4.tar.gz.

File metadata

  • Download URL: fsspec_rs-0.1.4.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.4.tar.gz
Algorithm Hash digest
SHA256 6f2e3b04922eba9e35fa3a6fc6ddc67bb1f45d9974b108c0afd5117cd40ee30d
MD5 e70958c37743c9a6ea41aecfb9595c64
BLAKE2b-256 d2422982a08ccf84d4b4d56aafe28c49c923e92917fda0fd41fb8ea905d68625

See more details on using hashes here.

File details

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

File metadata

  • Download URL: fsspec_rs-0.1.4-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.4-cp311-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 36f6f224005d3a3d3550b051e3c867a4144d8b5c3ff402d13f3c2f1f163a9d0b
MD5 460662c7ca16b4e7d36d6a9290b31b5a
BLAKE2b-256 844043c1a69c634c9b64e33c7ed1d834464703507c44838c37d7a6c1eced9dc5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for fsspec_rs-0.1.4-cp311-abi3-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 85ffa312d00ddabaac5b2252566166d3789d958d0c5591241d9aabcaf80aa0d0
MD5 e521a7cf62fa877721ac35a58ec70d5c
BLAKE2b-256 e34d66d9d3196d88080166ae7f05e26b86ed2845e2897c5cd9dd2832deed3cd9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for fsspec_rs-0.1.4-cp311-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ced95a44958df81673cdaf37e0802b47fda893186dd6c6468e6967f75940971a
MD5 af1a4e603da616d0b495a3957c7e60bc
BLAKE2b-256 9117940f9989a6a911eff1e827b3a943a46c5f837f4fdc6f38696b15afecaa1a

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