fsspec-python
Native python integration for fsspec backends
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 importeruninstall_importer(fs: Union[str, AbstractFileSystem] = ""): uninstall an fsspec url or filesystem instance, or if nothing provided remove the last-installed oneinstall_open_hook(fsspec: str, **fsspec_args): monkeypatch Python'sopenbuiltin to run off anfsspecfilesystemuninstall_open_hook(): remove the monkeypatchedopen
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)
| File | Size | Uploaded | |
|---|---|---|---|
| fsspec_python-0.1.0.tar.gz | 11.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| 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
|