https://github.com/donno2048/direct-flask
Use responses for Flask directly
https://github.com/donno2048/direct-flask
flask
Last synced: about 2 months ago
JSON representation
Use responses for Flask directly
- Host: GitHub
- URL: https://github.com/donno2048/direct-flask
- Owner: donno2048
- License: mit
- Created: 2021-06-08T08:00:23.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2022-02-05T20:24:15.000Z (over 4 years ago)
- Last Synced: 2024-12-16T06:35:45.291Z (over 1 year ago)
- Topics: flask
- Language: Python
- Homepage:
- Size: 6.84 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Direct-Flask
Use responses for Flask directly
## Installation
### From PyPI
```sh
pip3 install dflask
```
### From GitHub
```sh
pip3 install git+https://github.com/donno2048/Direct-Flask
```
## Usage
```py
from dflask import DirectFlask, Response
app = DirectFlask(__name__)
app.add_response("/", Response(""))
app.add_response("/style.css", "body{background-color: red;}").run()
```