A custom filesystem for pyfilesystem2 that allows mounting files from other filesystems.
Project description
fs.filefs: Custom filesystem for pyfilesystem2
This package provides FileFS, a custom filesystem for pyfilesystem2 that allows you to mount files from other filesystems.
Installation
pip install fs.filefs
Usage Example
from fs.osfs import OSFS
from fs.filefs import FileFS
image_fs = OSFS("~/images")
file_fs = FileFS()
file_fs.add_file("screenshot_1.png", image_fs)
file_fs.add_file("screenshot_2.png", image_fs, name="img_2.png")
print(file_fs.listdir("/")) # ['screenshot_1.png', 'img_2.png']
Develpment
# Install package in editable mode
pip install -e .
# Run tests
python -m unittest discover -s tests
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
fs_filefs-1.0.1.tar.gz
(3.6 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file fs_filefs-1.0.1.tar.gz.
File metadata
- Download URL: fs_filefs-1.0.1.tar.gz
- Upload date:
- Size: 3.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d59dbc06bdc0c09275c7df5a3440564cbf3e834ecfc6d51d9321fa914a14ea27
|
|
| MD5 |
8b87904016cc1de871102ccb80ae6789
|
|
| BLAKE2b-256 |
1ff224870f62af8c323ad0518f1ad5fac709e81e3bb0d09de3b675c555625161
|
File details
Details for the file fs_filefs-1.0.1-py3-none-any.whl.
File metadata
- Download URL: fs_filefs-1.0.1-py3-none-any.whl
- Upload date:
- Size: 3.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b47c0ca50d00adf07a2073c03af04d1d95074a832605fce05d4e888c3669ffec
|
|
| MD5 |
867b9f5488afae4c8addcdc86142fc49
|
|
| BLAKE2b-256 |
de2af4c670d8d483aafd71c774ba21989725a118c67399f804f364579bf4e7a1
|