/flask-autoindex

Generates index page like mod_autoindex

Primary LanguagePythonMIT LicenseMIT

Build Status Maintainability Test Coverage

PyPI version

A mod_autoindex for Flask

Requirements

  • Flask
  • Python >= 3.6

Install

pip install Flask-AutoIndex

Usage

import os.path
from flask import Flask
from flask_autoindex import AutoIndex

app = Flask(__name__)
AutoIndex(app, browse_root=os.path.curdir)

if __name__ == '__main__':
    app.run()

flask run

Test

python setup.py test