httpx VS quart

Compare httpx vs quart and see what are their differences.

httpx

A next generation HTTP client for Python. 🦋 (by encode)

quart

An async Python micro framework for building web applications. (by pgjones)
InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
httpx quart
53 8
12,274 12
1.2% -
8.9 0.0
8 days ago over 1 year 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.

httpx

Posts with mentions or reviews of httpx. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-02-27.
  • A Retrospective on Requests
    2 projects | news.ycombinator.com | 27 Feb 2024
    For reference, it's a butterfly, not a moth.

    Source: https://github.com/encode/httpx/issues/834

  • Show HN: Twitter API Wrapper for Python – No API Keys Needed
    3 projects | news.ycombinator.com | 3 Feb 2024
    Very cool, first I'm hearing of httpx https://www.python-httpx.org/

    I think most people would start with trying out requests or something for this kind of work, I'm guessing that didn't work out? You've got a star from me.

  • Harlequin: SQL IDE for Your Terminal
    11 projects | news.ycombinator.com | 5 Jan 2024
    To access 10 different commands at the same time, that is tricky but definitely doable.

    First thing that comes to mind, you can use aliases.

    To keep it simple, lets use 3 examples instead of 10: harlequin (this project), pgcli (https://www.pgcli.com/) and httpx (https://www.python-httpx.org/)

    Setup a main home for all your venvs:

        cd ~
  • HTTP Rate Limit
    3 projects | dev.to | 4 Jan 2024
    There are already some implementations for Python HTTP clients. One of them is aiometer. But it's not suitable for my use case. Since httpx already has the internal pool, it would be better to reuse the design.
  • Introducing Flama for Robust Machine Learning APIs
    11 projects | dev.to | 18 Dec 2023
    Besides, flama also provides support for SQL databases via SQLAlchemy, an SQL toolkit and Object Relational Mapper that gives application developers the full power and flexibility of SQL. Finally, flama also provides support for HTTP clients to perform requests via httpx, a next generation HTTP client for Python.
  • Embracing Modern Python for Web Development
    12 projects | dev.to | 8 Dec 2023
    We can use the async HTTP client provided by httpx, a fully featured HTTP client for Python with an API broadly compatible with requests, so it can be used in pretty much the same way in most cases.
  • Didn't want to click on refresh to see updates, this is what I did!
    2 projects | dev.to | 15 Nov 2023
    httpx in place of requests library
  • Python Requests 3
    1 project | news.ycombinator.com | 13 Nov 2023
    The main value of Requests is that it provided an abstract interface on top of HTTP, which was designed well-enough to become a standard. But today it has fallen way behind in its field, and there are much better alternatives such as HTTPX [0].

    [0] https://www.python-httpx.org/

  • Unlocking Performance: A Guide to Async Support in Django
    2 projects | dev.to | 25 Jun 2023
    HTTPX is a popular Python library that provides an asynchronous HTTP client, and it can be beneficial for enabling async support in Django. While Django itself does not require HTTPX for async support, using HTTPX in combination with Django's async views can bring several advantages:
  • Show HN: Python package for interfacing with ChatGPT with minimized complexity
    8 projects | news.ycombinator.com | 19 Jun 2023
    The underlying library for both sync and async is httpx (https://www.python-httpx.org/) which may be limited from the HTTP Client perspective but it may be possible to add rate limiting at a Session level.

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
  • Question about Synchronous web frameworks
    1 project | /r/learnpython | 6 Jun 2022
    Sorry. It's not Quartz, it's just Quart https://pgjones.gitlab.io/quart/
  • 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 | /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.
  • Create Asynchronous API in Python and Flask
    1 project | /r/flask | 5 May 2021
    For people looking to do async stuff with Flask, there is also Quart! It’s essentially an async port of Flask, with all your favorite, familiar methods!
  • asyncio: We Did It Wrong
    2 projects | /r/Python | 12 Mar 2021
    I agree with the transition issues, Quart has this awkward code to try and get around this.
  • Python developer survey reaction - 6 insights to make you a better dev
    1 project | /r/Python | 25 Feb 2021
    Appreciate the feedback! I forgot to pimp my favorite web framework, Quart, but I can attest to Flask and even Django being great. I always looked down on Django as too big but then I used it for my current company and I realized I was totally wrong. Easy to pick up, lots of functionality if you want it, but it doesn't force it on you.

What are some alternatives?

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

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

Flask - The Python micro framework for building web applications.

Niquests - Requests but with HTTP/3, HTTP/2, Multiplexed Connections, System CAs, Certificate Revocation, DNS over HTTPS / TLS / QUIC or UDP, Async, DNSSEC, and (much) pain removed!

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

requests-html - Pythonic HTML Parsing for Humansâ„¢

starlette - The little ASGI framework that shines. 🌟

requests - A simple, yet elegant, HTTP library.

flask-pydantic - flask extension for integration with the awesome pydantic package

uvicorn - An ASGI web server, for Python. 🦄

asyncpg - A fast PostgreSQL Database Client Library for Python/asyncio.