https://github.com/cloud11665/flask_dirview
A reimplementation of Apache's directory browser in flask
https://github.com/cloud11665/flask_dirview
Last synced: 12 months ago
JSON representation
A reimplementation of Apache's directory browser in flask
- Host: GitHub
- URL: https://github.com/cloud11665/flask_dirview
- Owner: cloud11665
- License: apache-2.0
- Created: 2021-07-16T21:37:20.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2021-11-28T13:55:38.000Z (over 4 years ago)
- Last Synced: 2025-03-23T17:22:37.700Z (about 1 year ago)
- Language: Python
- Size: 73.2 KB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# flask_dirview
A reimplementation of Apache's directory browser in flask. [Try it](https://cld.sh/static) for yourself
## how to use
just copy [`flask_dirview.py`](https://raw.githubusercontent.com/Cloud11665/flask_dirview/master/flask_dirview.py) from this repo into your project's folder.
## Usage:
```py
from flask import Flask
from flask_dirview import DirView, Apache
app = Flask(__name__)
DirView(app, "/home/foo", "/bar", frontend=Apache)
# this maps the directory `/home/foo` to `/bar` url
# thats it, enjoy.
```
when run directly (`./flask_dirview.py`) it will fire up a demo of this micro-library. (flask is required)
## FAQ
- what in the world is this big binary blob?
- it's a uuencoded, gzipped tarball of apache's icons, (they are public domain)