httpx
starlette
httpx | starlette | |
---|---|---|
59 | 68 | |
13,809 | 10,724 | |
1.4% | 1.7% | |
8.3 | 9.1 | |
13 days ago | 10 days ago | |
Python | Python | |
BSD 3-clause "New" or "Revised" License | BSD 3-clause "New" or "Revised" License |
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
-
Ruff: Python linter and code formatter written in Rust
I've mostly ditched requests in favour of httpx these days. https://www.python-httpx.org
-
Asynchronous HTTP Requests in Python with HTTPX and asyncio
Now that your environment is set up, youβre going to need to install the HTTPX library for making requests, both asynchronous and synchronous which we will compare. Install this with the following command after activating your virtual environment:
-
Video data IO through ffmpeg subprocess
Now time to code the implementation, as I wanted to both read from and write to ffmpeg concurrently, so this is going to be an asyncio application. The http client library we are using this time is httpx, which has a method to fetch download in smaller batches:
-
HTTPX: Dump requests library in a junkyard π
The concept of a Client in httpx is analogous to a Session in requests. However, httpx.Client is more powerful and efficient. You can read the article from the httpx documentation, to learn more about httpx.Client.
-
Current problems and mistakes of web scraping in Python and tricks to solve them!
Let's look at a simple code example. This will work for requests, httpx, and aiohttp with a clean installation and no extensions.
- Httpx β next-generation HTTP client for Python
-
A Retrospective on Requests
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
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
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
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.
starlette
-
π₯ The Fastest Python API Frameworks Ranked β Which One Should You Choose?
π Learn More: Starlette GitHub
-
FastAPI Tutorial: Build, Deploy, and Secure an API for Free
This article is written by Marcelo Trylesinski, a > FastAPI expert and > maintainer of Starlette and > Uvicorn. You can check out more of his work > here. All opinions expressed are his own.
-
Best Backend Frameworks for 2025: A Developer's Guide to Making the Right Choice
Starlette: The ASGI Foundation
-
The Core of FastAPI: A Deep Dive into Starlette πππ
FastAPI is essentially an API wrapper for Starlette. To fully grasp FastAPI, one must first understand Starlette.
-
Server-Sent Events (SSE) Are Underrated
I built several tool to tail logs with SSE using Flask/FastAPI. Easy to implement and maintain.
For FastAPI if you want some hooks when client disconnects aka nginx 499 errors, follow this simple tip
https://github.com/encode/starlette/discussions/1776#discuss...
-
Is Flask Dead? Is FastAPI the Future?
ASGI Web Framework: Web frameworks that implement the ASGI specification (such as FastAPI), while Flask and Django are web frameworks that implement WSGI. These frameworks are designed for developers to write applications, with easy-to-use interfaces. Developers only need to fill in the business logic according to their needs. Early frameworks mostly implemented ASGI toolkits internally, while later frameworks usually combine suitable toolkits. For example, Flask uses Werkzeug (its own), and FastAPI uses Starlette (from others).
-
Top 20 Python API Frameworks with OpenAPI Support
Starlette is a lightweight ASGI framework/toolkit, ideal for building high-performance async services in Python. It provides the essential components needed to build web applications, including routing, middleware, sessions, and more.
-
Analyzing the OpenAPI Tooling Ecosystem
Or you can go straight to Starlette [0], which is much more streamlined to develop with. FastAPI is based on it itself, and while it provides many additional bells and whistles I find it messes things up significantly.
[0] https://www.starlette.io/
- Starlette: The little ASGI framework that shines
-
Understanding FastAPI: How FastAPI works
Now it's time to take a closer look on how FastAPI extends Starllete.
What are some alternatives?
Niquests - βSafest, Fastest, Easiest, and Most advancedβ Python HTTP Client. Production Ready! Drop-in replacement for Requests. HTTP/1.1, HTTP/2, and HTTP/3 supported. With WebSocket, and SSE! Be free of Requests bondage now.
AIOHTTP - Asynchronous HTTP client/server framework for asyncio and Python
fastapi - FastAPI framework, high performance, easy to learn, fast to code, ready for production
requests - A simple, yet elegant, HTTP library.
uvicorn - An ASGI web server, for Python. π¦