Pydantic takes over HTTPX, releases HTTPX2 with HTTP/2 and async support

Pydantic has assumed stewardship of the popular HTTPX library, releasing HTTPX2 as a continuation with an integrated command-line client, HTTP/1.1 and HTTP/2 support, and both sync and async APIs. It remains requests-compatible, fully type-annotated, and includes strict timeouts and 100% test coverage. The project aims to provide a reliably maintained path forward, including timely security updates, for a library critical to many production systems.

With HTTPX itself seeing limited activity recently, Pydantic is picking up stewardship under the HTTPX2 name so that users have a reliably maintained path forward - including timely security updates for a library that sits in the critical path of so many production systems.
  1. BoumTAC

    Noob question: what's the purpose of having so many request libraries? In JavaScript it's crazy, but in Python it's starting to feel the same: requests, httpx, httpx2...

    From my perspective, HTTP requests have been mastered for years (decades?). What's the point of switching libraries? What's so extraordinary about the new HTTP library that makes requests look crap?

    I understand that new protocols appear from time to time (like HTTP/2), but that's very rare. And if there are performance differences between two libraries, are they really that huge? Even if they are, 99% of people don't need that boost. What prevents someone from just improving the existing library's performance?

  2. jenders

    I would been pleased to see this project named something else, maybe “httpx-ng” or “httpy” as I immediately link “http*2” with the obsolete http/2 protocol and not the httpx project.

  3. casper14

    People should be aware how much worse HTTPX performs versus Aiohttp. For high scale systems it makes a massive difference

  4. niltecedu

    Everytime someone is using httpx I always wonder why use that especially when niquests exists? I feel like it has always been such a better package

  5. WalterGR

    Also see the user’s other submission https://news.ycombinator.com/item?id=49477212

    “OpenAI: Migrating to HTTPX2” (github.com/openai)

    66 points | 1 hour ago | 50 comments

More from this day

2026-08-28