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.2.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.2.tar.gz.
File metadata
- Download URL: fs_filefs-1.0.2.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 |
8e858d668d7c7a6cdbad4626fdc0c0fcf02a5ecbec50d28c4b58d24bc7616d4b
|
|
| MD5 |
c739860237fd9e9f7c811a873aefd71f
|
|
| BLAKE2b-256 |
c2fd8f7d2a2a1263a36f2f1a0c338e1dd75a714e4ec09586f2e9832bb5e95c48
|
File details
Details for the file fs_filefs-1.0.2-py3-none-any.whl.
File metadata
- Download URL: fs_filefs-1.0.2-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 |
7d0e36b2719726c757178d85823f0d43640fc5110798ffdf2aa27ef1382daacc
|
|
| MD5 |
8be47e215b81af22e2b7af1c12d881e5
|
|
| BLAKE2b-256 |
1dd180dce807c3a5019dcbb79bf3bc3324c91306fdc5171424009d87cf13d23a
|