Flask VS quart

Compare Flask vs quart and see what are their differences.

Flask

The Python micro framework for building web applications. (by pallets)

quart

An async Python micro framework for building web applications. (by pgjones)
Our great sponsors
  • Sonar - Write Clean Python Code. Always.
  • InfluxDB - Access the most powerful time series database as a service
  • SaaSHub - Software Alternatives and Reviews
Flask quart
122 8
62,297 4
1.0% -
9.2 6.8
8 days ago 4 months ago
Python Python
BSD 3-clause "New" or "Revised" License MIT License
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

Flask

Posts with mentions or reviews of Flask. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-03-13.

quart

Posts with mentions or reviews of quart. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-07-01.
  • Python Flask has no remaining open issues or pull requests
    9 projects | news.ycombinator.com | 1 Jul 2022
  • The problem with Flask async views and async globals
    4 projects | dev.to | 2 Aug 2021
    If you're looking for an experience that's very similar to Flask you can use Quart which is inspired by Flask. Quart even has a guide about how to migrate from a Flask application to using Quart! Flask's own documentation for async views actually recommends using Quart in some cases due to the performance hit from using a new event loop per request.
  • New Versions Released! Flask 2.0 with async
    2 projects | news.ycombinator.com | 12 May 2021
    Flask getting async support is a huge step for the asyncio web ecosystem in Python. I wonder how Flask's ASGI support will evolve in parallel with Quart[1] which bills itself as the ASGI version of Flask and is maintained by a member of the Pallets team. One of the maintainers of Werkzeug even recommended using Quart[2]

    [1] https://pgjones.gitlab.io/quart/

    [2] https://github.com/pallets/werkzeug/issues/1322#issuecomment...

  • New major versions of Flask, Jinja, Click, and Werkzeug released!
    9 projects | reddit.com/r/Python | 11 May 2021
    What we get with the async part of this release - If you would like to run an async library or your own async code from a flask route you can do that now. This is super useful, where let's say we have some async code that fetches data from many sources concurrently, or call multiple a few ML prediction endpoints at the same time (as long as they don't time out) using httpx and respond with some sort of outcome, or finally try that cool new async-only database library. A current (v2) limitation is that the you can't make concurrent requests using just the current asyncio implementation (an alternative with Flask API and ASGI: Quart). Typically in production gunicorn or uwsgi + threads/processes/gevent-eventlet is used and this makes Flask behave asynchronously. More here and here if interested.
  • asyncio: We Did It Wrong
    2 projects | reddit.com/r/Python | 12 Mar 2021
    I agree with the transition issues, Quart has this awkward code to try and get around this.

What are some alternatives?

When comparing Flask and quart you can also consider the following projects:

fastapi - FastAPI framework, high performance, easy to learn, fast to code, ready for production

Django - The Web framework for perfectionists with deadlines.

AIOHTTP - Asynchronous HTTP client/server framework for asyncio and Python

Tornado - Tornado is a Python web framework and asynchronous networking library, originally developed at FriendFeed.

starlette - The little ASGI framework that shines. 🌟

CherryPy - CherryPy is a pythonic, object-oriented HTTP framework. https://cherrypy.dev

uvicorn - An ASGI web server, for Python. 🦄

Bottle - bottle.py is a fast and simple micro-framework for python web-applications.

web.py - web.py is a web framework for python that is as simple as it is powerful.

Masonite - The Modern And Developer Centric Python Web Framework. Be sure to read the documentation and join the Discord channel for questions: https://discord.gg/TwKeFahmPZ

dash - Data Apps & Dashboards for Python. No JavaScript Required.