Live data from Hacker News

Httpx: A next-generation HTTP client for Python

python-httpx.org

81–90 of 119 posts

Re: Httpx: A next-generation HTTP client for Python

#83

Earlier quoted context omitted.

I want to mess with certs in Python so that my web crawler can actually access the whole web. If you don't talk to a wide variety of hosts, you probably haven't noticed that it's broken for 1%.

If you work in a corporate environment, you would probably notice that systems that insist on bundling their own certs without an easy to activate option of using system cert store are broken. (And even if the library has an easy to use option, if it's easy to not expose it, much software built on the library will still be broken.) People should be empowered to substitute cert stores, but the system store should be t…

Why yes, my web crawler operates in a corporate environment. It's almost as if different companies have different needs.

Re: Httpx: A next-generation HTTP client for Python

#86
post #23

Earlier quoted context omitted.

The huge win against requests is that Https is fully async.. you can download 20 files in parallel without not too much effort. Throughout in python asyncio is amazing, something similar to node or perhaps better... That's the main point.

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?

Re: Httpx: A next-generation HTTP client for Python

#87
post #86

Earlier quoted context omitted.

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)

Re: Httpx: A next-generation HTTP client for Python

#89
post #86

Earlier quoted context omitted.

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 wonde…

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

That's thing... Who knows..

Post reply on HN