Skip to content

abichinger/vuefinder-wsgi

Repository files navigation

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)

About

WSGI app to use PyFilesystem2 with vuefinder

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages