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.1.1.tar.gz
(4.9 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.1.1.tar.gz.
File metadata
- Download URL: vuefinder_wsgi-1.1.1.tar.gz
- Upload date:
- Size: 4.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6acfca56d7a8abdb5fb7c9ab8dd85bbd1f61252654f289761e68deb28b7caf37
|
|
| MD5 |
71f81ef4004c118e4c783d410a781995
|
|
| BLAKE2b-256 |
a6bdbeaa15da9bbe7aa10c5782d86329cb3a4b59ae8f7a6a72a31b6852b4289e
|
File details
Details for the file vuefinder_wsgi-1.1.1-py3-none-any.whl.
File metadata
- Download URL: vuefinder_wsgi-1.1.1-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f4d0ebd04a3fd53142fac0771f67cfca3b51d6dc550249b3a59297b314a71099
|
|
| MD5 |
d4f5d1970f20e1d004634165ce2d63a7
|
|
| BLAKE2b-256 |
6123a4a2bdb9041b4d8699a1985bb42e3cb85d79737a0454bd9fcba3f3c746d5
|