Make HTTP requests to APIs from Python code using a syntax similar to the requests library.
Send many requests concurrently using async support instead of blocking one at a time.
Make HTTP requests directly from the terminal using the built in command-line tool.
Stream large file downloads or uploads with automatic timeout and decompression handling.
| pydantic/httpx2 | opennswm-lab/faros | s0912758806p/agentic-sop-to-work | |
|---|---|---|---|
| Stars | 176 | 174 | 173 |
| Language | Python | Python | Python |
| Setup difficulty | easy | hard | easy |
| Complexity | 2/5 | 4/5 | 3/5 |
| Audience | developer | researcher | ops devops |
Figures from each repo's GitHub metadata at analysis time.
HTTPX2 is a Python library for making HTTP requests, the kind of network calls your code makes when it needs to talk to a web server or API. It is a continuation of the widely used HTTPX library, picked up and maintained by the Pydantic organization after the original project slowed down. The name change to HTTPX2 signals this new stewardship rather than a major redesign. The library is designed to feel familiar to developers who have used the popular requests library, while adding modern capabilities: support for both HTTP/1.1 and the newer HTTP/2 protocol (which allows more efficient connections), and both synchronous (one-step-at-a-time) and asynchronous (non-blocking, handles many requests at once) programming styles. Other included features are a built-in command-line tool so you can make HTTP requests directly from your terminal without writing any Python, strict connection timeouts to prevent code from hanging indefinitely, streaming downloads for large files, proxy support, automatic response decompression, file uploads, and cookie handling. The library requires Python 3.10 or newer and is installable via pip. HTTP/2 support, SOCKS proxy support, and command-line interface features are optional extras installed separately. Full documentation is available at httpx2.pydantic.dev.
A Python library for making HTTP requests, the Pydantic-maintained continuation of the popular HTTPX library, supporting sync, async, and HTTP/2.
Mainly Python. The stack also includes Python, HTTP/2, asyncio.
Use freely for any purpose, including commercial use, as long as you keep the copyright notice (BSD license).
Setup difficulty is rated easy, with roughly 5min to a first successful run.
Mainly developer.
This repo across BitVibe Labs
Verify against the repo before relying on details.