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

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for vuefinder_wsgi-1.3.3.tar.gz
Algorithm Hash digest
SHA256 1de9701a778642a46b7a237b9b4a3ce9c53b564c781c539a087ad10830f4a3e6
MD5 1675c9360f3c18ea864d122701f28cea
BLAKE2b-256 23a714f9400aba1479cb6806ea7d780865e6ceb7c600a786f4fe57dc5f343804

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for vuefinder_wsgi-1.3.3-py3-none-any.whl
Algorithm Hash digest
SHA256 917cb32e5d945100a94ba72a9ce65a8780e3e441b3c1332708c4e7ef69b782f1
MD5 adf3a149534718fbb8e9fa52783ea3b6
BLAKE2b-256 87003904a2712ad4e59c99078ef93c021e41b04a292c08d7ee0928008fda9cd0

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