Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

FWIW, requests3 has "Type-annotations for all public-facing APIs", asyncio, HTTP/2, connection pooling, timeouts, etc https://github.com/kennethreitz/requests3



Sorry, have you checked the source? Are these features there or only announced? Has requests added a timeout by default finally?


It looks like requests is now owned by PSF. https://github.com/psf/requests

But IDK why requests3 wasn't transferred as well, and why issues appear to be disabled on the repo now.

The docs reference a timeout arg (that appears to default to the socket default timeout) for connect and/or read https://3.python-requests.org/user/advanced/#timeouts

And the tests reference a timeout argument. If that doesn't work, I wonder how much work it would be to send a PR (instead of just talking s to Ken and not contributing any code)


>But IDK why requests3 wasn't transferred as well, and

That's thing... Who knows..


TIL requests3 beta works with httpx as a backend: https://github.com/not-kennethreitz/team/issues/21#issuecomm...

If requests3 is installed, `import requests' imports requests3




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

Search: