description Quart Overview
Quart is an asynchronous Python web framework with an API intentionally modeled on Flask. Built for ASGI, it supports async and await in route handlers and related application functions, while providing familiar concepts such as blueprints, templates, request contexts, sessions, WebSockets, and testing utilities. It is intended for developers who want Flask-style application structure while handling concurrent network operations and protocols that benefit from asynchronous execution.
help Quart FAQ
Is Quart based on Pyramid or Flask?
Quart is an asynchronous reimplementation of Flask's public API, not a Pyramid-based framework. A basic migration often starts by replacing Flask imports with Quart imports and adding async and await.
Why does Quart use ASGI instead of WSGI?
ASGI supports asynchronous connections and protocols that do not fit the traditional one-request, one-response WSGI model. This lets Quart handle WebSockets and concurrent I/O without blocking the event loop.
Which server is installed with Quart?
Quart installs Hypercorn as its development ASGI server. Production deployments can also use other compatible ASGI arrangements.
Will every Flask extension work unchanged with Quart?
No. Extensions that assume synchronous Flask internals can block the event loop or fail when a Quart operation must be awaited, although Quart offers compatibility tools for some extensions.
explore Explore More
Similar to Quart
See all arrow_forwardReviews & Comments
Write a Review
Be the first to review
Share your thoughts with the community and help others make better decisions.