Hacker News new | past | comments | ask | show | jobs | submit login
Httpx – next-generation HTTP client for Python (python-httpx.org)
6 points by gjvc 22 days ago | hide | past | favorite | 5 comments



whats the benefit of this over the classic requests package?


There is a quick list here: https://github.com/encode/httpx/?tab=readme-ov-file#features

Of these, I use the ability to make requests directly to ASGI applications (i.e. FastAPI) extensively when writing tests.

I also appreciate that it adheres to the sans I/O programming philosophy, so that I can write code and configure connection behaviour independently of whether it ultimately executes in an async context or not.


async?


mainly that it's not requests, but also read the docs yourself for god's sake


who hurt you?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: