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.3.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.3.tar.gz.
File metadata
- Download URL: fs_filefs-1.0.3.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 |
bbcb981a5b318b6f13ae3db5592b17c24768c8c23c80f21a63260b12d2d5b892
|
|
| MD5 |
1847abb39bff740b538dbd6bdf357000
|
|
| BLAKE2b-256 |
ec265e280bc12f9dce2738603489c6b681eeec7620f3b4742d36ed76033fb52e
|
File details
Details for the file fs_filefs-1.0.3-py3-none-any.whl.
File metadata
- Download URL: fs_filefs-1.0.3-py3-none-any.whl
- Upload date:
- Size: 3.5 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 |
72ac46a21c72cc7172b0063575777fc1a58f056bf2ded92f0b06d835be152c25
|
|
| MD5 |
489b557c272cb1035ffdc3728ecff423
|
|
| BLAKE2b-256 |
8d0779138304a93eef598f8dad67c216d4604bbf0bfc53ab11c0285d1ff958db
|