Skip to main content

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


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)

Uploaded Source

Built Distribution

dflask-1.0.2-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