dflask

Use responses for Flask directly


Keywords
flask
License
MIT
Install
pip install dflask==1.0.2

Documentation

Direct-Flask

Use responses for Flask directly

Installation

From PyPI

pip3 install dflask

From GitHub

pip3 install git+https://github.com/donno2048/Direct-Flask

Usage

from dflask import DirectFlask, Response
app = DirectFlask(__name__)
app.add_response("/", Response("<html><head><link href='/style.css' rel='stylesheet'></head><body></body></html>"))
app.add_response("/style.css", "body{background-color: red;}").run()