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

Uploaded Python 3

File details

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

File metadata

  • Download URL: vuefinder_wsgi-1.5.0.tar.gz
  • Upload date:
  • Size: 7.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.11

File hashes

Hashes for vuefinder_wsgi-1.5.0.tar.gz
Algorithm Hash digest
SHA256 966c86b21766a8320c7b41acc120ee0543f0f107bca01f520b4105abe58a2762
MD5 14afad9158124437df9f9a4181d0f901
BLAKE2b-256 306bd1efc266e61ec45feaa8c98aeedad6cad68756314ca5ba602dc79a964b07

See more details on using hashes here.

File details

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

File metadata

  • Download URL: vuefinder_wsgi-1.5.0-py3-none-any.whl
  • Upload date:
  • Size: 6.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.11

File hashes

Hashes for vuefinder_wsgi-1.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3ad5393eb4c5b983f0d5c99d46afad745a1a8472f0e72593387854a348fd2bf0
MD5 187b54ae6e92506f1fbbc33d44ed8d66
BLAKE2b-256 020a59128bb7e3cf756eb51a2b8882944bd82897341bf571d599089d444ebaa4

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