Quart
A Python ASGI web framework with the same API as Flask
What it is and what it does
Quart is an async reimplementation of Flask that lets you build modern Python web applications using async/await syntax. It handles HTTP requests, WebSocket connections, template rendering, and JSON APIs using an ASGI server (Hypercorn by default). If you know Flask, Quart's API will feel familiar—the main difference is that route handlers and related functions are async, allowing non-blocking I/O throughout your application.
Quart sits in the top 5000 PyPI packages by download volume and has been actively maintained since 2017. It depends on Flask, Werkzeug, Jinja2, and other stable libraries from the Pallets ecosystem, plus Hypercorn for async serving. The framework is typed and targets current Python versions (3.11+), making it suitable for new projects that need async capabilities without learning an entirely different web framework.
Use it for:
- Build async REST APIs that handle concurrent requests efficiently without blocking.
- Serve real-time WebSocket connections for chat, notifications, or live data feeds.
- Migrate existing Flask applications to async by adding await keywords and using Quart's compatible API.
- Render HTML templates asynchronously in a web application with async database or I/O operations.
- Stream large request or response bodies without loading them entirely into memory.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Quart is an async Python web framework that mirrors Flask's API, enabling you to build async HTTP and WebSocket applications with template rendering, JSON APIs, and streaming support.
Yes. Quart is actively maintained, has low install friction, carries no security vulnerabilities, and uses a permissive MIT license. It's a solid choice if you need async web capabilities and prefer Flask's familiar API over learning a different framework. The main constraint is the Python 3.11+ requirement.
Install
quart on PyPI
pip
pip install quartuv
uv add quartpoetry
poetry add quartInstalling Quart
Before you install
Low friction install with a pure-Python wheel. Active maintenance with a recent release (22 days ago) and steady repository activity. Depends on established web libraries like Flask, Werkzeug, and Hypercorn, all of which are well-maintained.
License in practice
MIT license is permissive and imposes no significant restrictions on use, modification, or distribution in most contexts.
Quickstart
pip install quart
from quart import Quart, render_template
app = Quart(__name__)
@app.route("/")
async def hello():
return await render_template("index.html")
if __name__ == "__main__":
app.run()
Requires Python 3.11 or later.
Verify before relying
- Extent of Flask extension compatibility beyond what the description states.
- Performance characteristics and scalability limits compared to other async frameworks.
Package facts
| License | MIT (permissive) |
| Python support | supports the current Python release (>=3.11) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 9 — aiofiles, blinker, click, flask, hypercorn, itsdangerous, jinja2, markupsafe, werkzeug |
| Maintenance | actively maintained — 22 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 3,668,288/month — #2,534 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: quart-0.21.0-py3-none-any.whl
Tags
More Application Frameworks packages
FastAPI is a Python web framework for building…
permissive · top 100 on PyPI
annotated-docProvides a way to document function parameters,…
permissive · top 100 on PyPI
textualTextual is a Python framework for building…
permissive · top 100 on PyPI
typerTyper builds command-line applications from…
permissive · top 1,000 on PyPI
mcpBuild and connect to Model Context Protocol…
permissive · top 1,000 on PyPI
WerkzeugWerkzeug is a WSGI utility library providing…
permissive · top 1,000 on PyPI
quart-corsQuart-CORS adds Cross-Origin Resource Sharing…
permissive · top 15,000 on PyPI
quart-schemaQuart-Schema adds schema validation and…
permissive · top 15,000 on PyPI
quart-authQuart-Auth provides session-based…
permissive · top 15,000 on PyPI
uvicornUvicorn is an ASGI web server that runs async…
permissive · top 100 on PyPI
async-asgi-testclientProvides an async test client for ASGI web…
permissive · top 15,000 on PyPI
FlaskFlask is a lightweight WSGI web application…
permissive · top 1,000 on PyPI
quart_babelAdds internationalization (i18n) and…
permissive · top 15,000 on PyPI
starletteStarlette is a lightweight ASGI framework for…
permissive · top 100 on PyPI
graphql-serverGraphQL-Server provides helper functions to…
permissive · top 15,000 on PyPI
HypercornHypercorn is an ASGI and WSGI web server…
permissive · top 5,000 on PyPI