Use responses for Flask directly
Project description
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()
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
dflask-1.0.2.tar.gz
(2.4 kB
view hashes)
Built Distribution
dflask-1.0.2-py3-none-any.whl
(2.7 kB
view hashes)