An open API service indexing awesome lists of open source software.

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

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()
```