Skip to main content

A custom filesystem for pyfilesystem2 that allows mounting files from other filesystems.

Project description

fs.filefs: Custom filesystem for pyfilesystem2

PyPI version LICENSE

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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

fs_filefs-1.0.1-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

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

Hashes for fs_filefs-1.0.1.tar.gz
Algorithm Hash digest
SHA256 d59dbc06bdc0c09275c7df5a3440564cbf3e834ecfc6d51d9321fa914a14ea27
MD5 8b87904016cc1de871102ccb80ae6789
BLAKE2b-256 1ff224870f62af8c323ad0518f1ad5fac709e81e3bb0d09de3b675c555625161

See more details on using hashes here.

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

Hashes for fs_filefs-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b47c0ca50d00adf07a2073c03af04d1d95074a832605fce05d4e888c3669ffec
MD5 867b9f5488afae4c8addcdc86142fc49
BLAKE2b-256 de2af4c670d8d483aafd71c774ba21989725a118c67399f804f364579bf4e7a1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page