Quart

0.20.0 · active · verified Fri Apr 10

Quart is a Python ASGI (Asynchronous Server Gateway Interface) web microframework, designed to be fully API compatible with Flask while providing native asynchronous functionality. It supports HTTP/1.1, HTTP/2, and WebSockets, making it suitable for modern, high-performance web applications. Currently at version 0.20.0, Quart maintains a regular release cadence with a focus on bug fixes and new features.

Warnings

Install

Imports

Quickstart

A minimal 'Hello, World!' Quart application. Routes are defined using `@app.route` decorators on `async def` functions, returning a string. For production, it's recommended to run with an ASGI server like Hypercorn (e.g., `hypercorn app:app`).

from quart import Quart

app = Quart(__name__)

@app.route('/')
async def hello():
    return 'Hello, Quart!'

# To run this, save as app.py and execute: hypercorn app:app

view raw JSON →