26 ms·
whats the benefit of this over the classic requests package?
by Woshiwuja 2y ago
whats the benefit of this over the classic requests package?
- manvillej 2y agoasync?
- gjvc 2y agomainly that it's not requests, but also read the docs yourself for god's sake
- Woshiwuja 2y agowho hurt you?
- jessekv 2y agoThere is a quick list here: https://github.com/encode/httpx/?tab=readme-ov-file#features 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.