WSGI app to use PyFilesystem2 with vuefinder
Project description
vuefinder-wsgi
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
Release history Release notifications | RSS feed
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.4.tar.gz
(6.6 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file vuefinder_wsgi-1.3.4.tar.gz.
File metadata
- Download URL: vuefinder_wsgi-1.3.4.tar.gz
- Upload date:
- Size: 6.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
638e41b323534a56fc314f21f5a923c2d96a4296591196150c4bb2f663068384
|
|
| MD5 |
00445c3a0ffeff2889fe16cf4f03d66c
|
|
| BLAKE2b-256 |
7849c7733b7f13b1823903463d438df756f786d1b834f3c2813223a917fad261
|
File details
Details for the file vuefinder_wsgi-1.3.4-py3-none-any.whl.
File metadata
- Download URL: vuefinder_wsgi-1.3.4-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b934daaead5a75599ebbb4bf73dcada629821a35fd64c21540002afb600b0d5c
|
|
| MD5 |
6ee63ca66f173a915e2498ca9f9b9f59
|
|
| BLAKE2b-256 |
a158a094938d9635521eaf42b5f8106b186de8e86ffc893755d1b81313dd5812
|