logoalt Hacker News

HTTPX2 – A next-generation HTTP client for Python

103 pointsby toshtoday at 11:41 AM32 commentsview on HN

Comments

BoumTACtoday at 2:54 PM

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?

show 4 replies
jenderstoday at 2:01 PM

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.

show 5 replies
casper14today at 2:03 PM

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

show 4 replies
niltecedutoday at 5:29 PM

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

WalterGRtoday at 1:43 PM

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

vivzkestreltoday at 3:04 PM

aiohttp vs httpx2?

show 1 reply
x1colegaltoday at 6:45 PM

Cool project bro

igkougkousistoday at 3:34 PM

[flagged]