Skip to main content

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.0.tar.gz (2.8 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.0-py3-none-any.whl (2.4 kB view details)

Uploaded Python 3

File details

Details for the file fs_filefs-1.0.0.tar.gz.

File metadata

  • Download URL: fs_filefs-1.0.0.tar.gz
  • Upload date:
  • Size: 2.8 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.0.tar.gz
Algorithm Hash digest
SHA256 082cafb0d96247994a744de359ad615a86cb0aa8d3c5cc9aefe51f0a391ed260
MD5 5420c32382d87c0ef1be5c52a29a26d6
BLAKE2b-256 110a467ebe2a5b8a38af2dc04fdae38ed441c898c40daf1f769eb18a14f266f9

See more details on using hashes here.

File details

Details for the file fs_filefs-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: fs_filefs-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 2.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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6854d03fa1e4eeffc261d6daea5a618e8435aa25a36eb33f0b476c53304dc608
MD5 1c1aabc4b8ce95a56979ff560b6dff7c
BLAKE2b-256 24e5c74284e5356218d1648bffb33c20de5db7071b5277a5a1e4d9336c102d6b

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