Skip to main content

fsspec-python

Native python integration for fsspec backends

Build Status codecov License PyPI

Overview

This library wraps an fsspec filesystem so that files and folders inside it can be imported in Python.

from fsspec import open

open(f"python::s3://my-python-bucket")

import my_bucket_lib  # s3://my-python-bucket/my_bucket_lib.py

Usage

In addition to the python:: chained protocol url, this library exposes a handful of functions and monkey patches for connecting Python internal mechanisms to an fsspec-based filesystem.

  • install_importer: install an
  • install_importer(fs: Union[str, AbstractFileSystem], **kwargs): install an fsspec url/args or filesystem instance as an importer
  • uninstall_importer(fs: Union[str, AbstractFileSystem] = ""): uninstall an fsspec url or filesystem instance, or if nothing provided remove the last-installed one
  • install_open_hook(fsspec: str, **fsspec_args): monkeypatch Python's open builtin to run off an fsspec filesystem
  • uninstall_open_hook(): remove the monkeypatched open

Coming soon:

  • Monkey patching for os / os.path / pathlib

[!NOTE] This library was generated using copier from the Base Python Project Template repository.

Metadata

Release files for fsspec-python 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-python 0.1.0
File Size Uploaded
fsspec_python-0.1.0.tar.gz 11.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for fsspec-python 0.1.0
File Interpreter ABI Platform
fsspec_python-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 26.1 kB

Release files / fsspec_python-0.1.0.tar.gz

Download URL fsspec_python-0.1.0.tar.gz
Size 11.5 kB
Tags Source
SHA-256 checksum
How to use checksums
224de5735a687e4a805dc18a61ec755fce81d0f9d80a1633d64ba30d901ffc0d
BLAKE2b-256 checksum
How to use checksums
ec605abeae63133768e7c67a5bd5f8a577fed8bb3689876850049577dce2f900
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

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

Download URL fsspec_python-0.1.0-py3-none-any.whl
Size 14.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0cd05c4d3c75215d1ba1d211f7398565467e522a1b7422e91d5866cf0955c3ad
BLAKE2b-256 checksum
How to use checksums
6e7895fa8cb9fb0136cbb2fb979ea1570e89ddcc9569195e84e616bbad7b5bd8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 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