Skip to main content

fsspec-compatible backends with Rust acceleration

Project description

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

Project details


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.3.tar.gz (109.1 kB 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.3-cp310-abi3-win_amd64.whl (1.9 MB view details)

Uploaded CPython 3.10+Windows x86-64

fsspec_rs-0.1.3-cp310-abi3-manylinux_2_28_x86_64.whl (2.2 MB view details)

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

fsspec_rs-0.1.3-cp310-abi3-macosx_11_0_arm64.whl (1.9 MB view details)

Uploaded CPython 3.10+macOS 11.0+ ARM64

File details

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

File metadata

  • Download URL: fsspec_rs-0.1.3.tar.gz
  • Upload date:
  • Size: 109.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for fsspec_rs-0.1.3.tar.gz
Algorithm Hash digest
SHA256 4872cfd78c087031c910ee109e1cc60e84aeac14e63043a8e8a73b08340fcbf9
MD5 1bf09eb131be28be69d987c5232c88f0
BLAKE2b-256 f24c38e348e09a2e6f98fa5d3877ca0ed3563cc6db15d98b9ba40a253f708c2a

See more details on using hashes here.

File details

Details for the file fsspec_rs-0.1.3-cp310-abi3-win_amd64.whl.

File metadata

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

File hashes

Hashes for fsspec_rs-0.1.3-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 e95eb2727c04ebbe8917763548bc335d45edab40a2bccc00c53ce92334db711f
MD5 f2c5a6ff3531d8ddf70bb69dc21ddf5d
BLAKE2b-256 f689c6874d22e1833e85925a2e6d28302b95842837b785226f7c7567d1369c2b

See more details on using hashes here.

File details

Details for the file fsspec_rs-0.1.3-cp310-abi3-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for fsspec_rs-0.1.3-cp310-abi3-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 fa0ff84f6cf95baf7748ef3613a73b92c7f27272c41efb64b5c7d7e23e5a51c7
MD5 0a5b4f4bbed868b23737d55f210e7509
BLAKE2b-256 dee99d212957b889a53da9320ca48c52c71d4411242eafede791eb335cd607a3

See more details on using hashes here.

File details

Details for the file fsspec_rs-0.1.3-cp310-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for fsspec_rs-0.1.3-cp310-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 46f453cbe2ae1a32e87e7454155d05fd1128e4aa1e97cb31ff92ec68b6e37c67
MD5 b9b8c54e1843be124ca90adfd5e5d1d4
BLAKE2b-256 6bccf4133dde1bd1b19523cb67640b5a73dce373f2f3d4cd1ed808fd8a236b40

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 Pingdom Monitoring Sentry Error logging StatusPage Status page