donno2048 / Direct-Flask

Use responses for Flask directly

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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()

About

Use responses for Flask directly

License:MIT License


Languages

Language:Python 100.0%