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

Uploaded Python 3

File details

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

File metadata

  • Download URL: vuefinder_wsgi-1.1.2.tar.gz
  • Upload date:
  • Size: 5.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.1.2.tar.gz
Algorithm Hash digest
SHA256 08b89e688422650ea6d2b406a6d3c1cf81d85c112acde3319d674a9cf5cc2c8b
MD5 707c4eefc3399c3693c76d679fbd4f41
BLAKE2b-256 b4d95220aa5b3e07ef8aafb3f0a627224194a1766ad9608908bddaf9273fae4d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: vuefinder_wsgi-1.1.2-py3-none-any.whl
  • Upload date:
  • Size: 5.2 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.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 8d7e884a453b019e27942048f117e036b5c9afd51ffcd7531313819c5903517e
MD5 466cd25cda4e5f4e9546c3f8bb55b4af
BLAKE2b-256 525cdad6f55753438806cdb363263d18d8c6156ae058615ec01b242bc9b8625a

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