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.6.0.tar.gz
(7.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.6.0.tar.gz.
File metadata
- Download URL: vuefinder_wsgi-1.6.0.tar.gz
- Upload date:
- Size: 7.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f7851c9aee1583de7cafc2ec5110edd0cad182c67728685c656b3261e575c931
|
|
| MD5 |
27d3ddc69e43fd440320c1688664c8c0
|
|
| BLAKE2b-256 |
2d0909c93e6e5e6ffa4b7698726f7e75b9f43da13bb03967f1421012aded1333
|
File details
Details for the file vuefinder_wsgi-1.6.0-py3-none-any.whl.
File metadata
- Download URL: vuefinder_wsgi-1.6.0-py3-none-any.whl
- Upload date:
- Size: 6.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2e4bad96cdceb7605aa5753a0efa4a9b5201f220cee7c572579215ad5b819d11
|
|
| MD5 |
1b4fe44a0ef99d6ffd867ac58589b90a
|
|
| BLAKE2b-256 |
2202a4f6c76a264e228b4fb06de1ead0bc145f76c687d03508b93ede51d05b31
|