Httpx: A next-generation HTTP client for Python
python-httpx.org
Httpx: A next-generation HTTP client for Python
1–10 of 119 posts
Re: Httpx: A next-generation HTTP client for Python
#2Re: Httpx: A next-generation HTTP client for Python
#3Question: is there any advantage of this over flask’s builtin werkzeug test client?
[1] https://www.python-httpx.org/advanced/#calling-into-python-w...
Re: Httpx: A next-generation HTTP client for Python
#4Re: Httpx: A next-generation HTTP client for Python
#5Re: Httpx: A next-generation HTTP client for Python
#6Looking forward to trying it out
Edit: maybe the homepage can include a very simple async example as well?
Re: Httpx: A next-generation HTTP client for Python
#7Great package though. Love the dual support for async and sync requests.
Re: Httpx: A next-generation HTTP client for Python
#8httpx makes a pretty good first impression on me. The homepage provides examples, key selling points, install instructions, and links to any further reading one could hope for. However, I am missing one thing: The features this offers over the popular requests library do not seem to require httpx to be a competitor, but an extension or fork. There surely must be some major incompatibilities that allowed this library…
Yes it has to be. Requests is not as great as everyone thinks it is. It's API is simple, sure, but when you need more advanced features (doesn't even support HTTP/2 AFAIK) like timeouts, proper exception handling (which you cannot do in requests)) it actually sucks.
httpx is a far superior library already!
Re: Httpx: A next-generation HTTP client for Python
#9The only issue I've run into has been with my attempt to reuse the same AsyncClient to make multiple concurrent requests to the same remote host. It looks like this issue may have been fixed in 0.10 or 0.11 so I'll be upgrading soon to check.
Also, be sure to check out the other fantastic projects by Encode. https://github.com/encode I stumbled upon httpx after using Starlette and Uvicorn for one of our microservices and and been pleasantly surprised by how easy to set up and use they are.
Re: Httpx: A next-generation HTTP client for Python
#10After a brief glance, I'm not sure what this offers beyond requests?