Skip to main content

WSGI app to use PyFilesystem2 with vuefinder

Project description

vuefinder-wsgi

PyPI version LICENSE

WSGI app for vuefinder. This is a vuefinder backend to access PyFilesystem2 filesystems.

Unimplemented

  • archive
  • unarchive

Installation

pip install vuefinder-wsgi

Usage

from vuefinder import VuefinderApp, fill_fs
from fs.memoryfs import MemoryFS
from werkzeug.serving import run_simple

if __name__ == "__main__":
    # Initialize filesystem
    memfs = MemoryFS()
    fill_fs(
        memfs,
        {
            "foo": {
                "file.txt": "Hello World!",
                "foo.txt": "foo bar baz",
                "bar": {"baz": None},
            },
            "foobar": {"empty": None, "hello.txt": "Hello!"},
        },
    )

    # Create and run the WSGI app
    app = VuefinderApp(enable_cors=True)
    app.add_fs("memory", memfs)
    run_simple("127.0.0.1", 8005, app)

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

vuefinder_wsgi-1.3.0.tar.gz (6.5 kB view details)

Uploaded Source

Built Distribution

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

vuefinder_wsgi-1.3.0-py3-none-any.whl (6.0 kB view details)

Uploaded Python 3

File details

Details for the file vuefinder_wsgi-1.3.0.tar.gz.

File metadata

  • Download URL: vuefinder_wsgi-1.3.0.tar.gz
  • Upload date:
  • Size: 6.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.9

File hashes

Hashes for vuefinder_wsgi-1.3.0.tar.gz
Algorithm Hash digest
SHA256 4a3225ae193373b562fd76d328ce0158a65e367f95c4a493bb5d628b3df0f014
MD5 95e6385041872f61bc08e531f31d511b
BLAKE2b-256 c09214be9695bdb50c332ef2fca740487a941467587a06b8f8c3af9aecba0706

See more details on using hashes here.

File details

Details for the file vuefinder_wsgi-1.3.0-py3-none-any.whl.

File metadata

  • Download URL: vuefinder_wsgi-1.3.0-py3-none-any.whl
  • Upload date:
  • Size: 6.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.9

File hashes

Hashes for vuefinder_wsgi-1.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1d9f708d57e4ea374553e71810b61972abb91990a765a36c8252696b484f42f6
MD5 065e5f1b7e7cf0b773b7fa65f60501dc
BLAKE2b-256 61500a1f3fd365f23f59a12bb8bfdc5fc63855b6fa16467032544eb41eefc6bf

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