Skip to main content

Use responses for Flask directly

Project description


Use responses for Flask directly


From PyPI

pip3 install dflask

From GitHub

pip3 install git+


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;}")

Project details

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.1.tar.gz (2.4 kB view hashes)

Uploaded Source

Built Distribution

dflask-1.0.1-py3-none-any.whl (2.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page