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

Uploaded Source

Built Distribution

dflask-1.0.2-py3-none-any.whl (2.7 kB view details)

Uploaded Python 3

File details

Details for the file dflask-1.0.2.tar.gz.

File metadata

  • Download URL: dflask-1.0.2.tar.gz
  • Upload date:
  • Size: 2.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.10.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2

File hashes

Hashes for dflask-1.0.2.tar.gz
Algorithm Hash digest
SHA256 30be09d6d5af07e885397f36f2530988ae127ff33c25eaac693ad2b2cb5b7907
MD5 4b06fe4d1a758f177df06717da360f87
BLAKE2b-256 e617711517c8d1a240722f05122f142ebb1cf09cdee54a52e6efa37fcc401898

See more details on using hashes here.

File details

Details for the file dflask-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: dflask-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 2.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.10.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2

File hashes

Hashes for dflask-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 b50c423b878853bed2cbc3e53bb173d8aaa8fd5e5cf0afa5dac6388363d32865
MD5 e8cbf2dbdd6575db549d4b4d55b0030f
BLAKE2b-256 f7328382553374ae62e104ecd4f7cd62a7498d0773f02a5e7d4af00e847ed380

See more details on using hashes here.

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