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()
Metadata
Release files for dflask 1.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| dflask-1.0.2.tar.gz | 2.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| dflask-1.0.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 5.1 kB
Release files / dflask-1.0.2.tar.gz
| Download URL | dflask-1.0.2.tar.gz |
|---|---|
| Size | 2.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
30be09d6d5af07e885397f36f2530988ae127ff33c25eaac693ad2b2cb5b7907
|
|
BLAKE2b-256 checksum How to use checksums |
e617711517c8d1a240722f05122f142ebb1cf09cdee54a52e6efa37fcc401898
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / dflask-1.0.2-py3-none-any.whl
| Download URL | dflask-1.0.2-py3-none-any.whl |
|---|---|
| Size | 2.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b50c423b878853bed2cbc3e53bb173d8aaa8fd5e5cf0afa5dac6388363d32865
|
|
BLAKE2b-256 checksum How to use checksums |
f7328382553374ae62e104ecd4f7cd62a7498d0773f02a5e7d4af00e847ed380
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|