FastAPI creator here... if you use FastAPI, HTTPX would probably be the best match for sending requests, just saying... :D
Httpx: A next-generation HTTP client for Python
81–90 of 119 posts
Re: Httpx: A next-generation HTTP client for Python
#82Well that's going to work wonders for async now isn't it?
Re: Httpx: A next-generation HTTP client for Python
#83Earlier 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…
Re: Httpx: A next-generation HTTP client for Python
#84looks nice, but appears to have a quite a few third party deps that requests doesnt?
Re: Httpx: A next-generation HTTP client for Python
#85FastAPI creator here... if you use FastAPI, HTTPX would probably be the best match for sending requests, just saying... :D
Re: Httpx: A next-generation HTTP client for Python
#86Earlier 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
Re: Httpx: A next-generation HTTP client for Python
#87Earlier 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?
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
#88I know this is unrelated, but probably a lot of Pythonistas here and I've been wondering: what is the async web framework of choice for you guys today? As for DBs, still SQLAlchemy? What about a prettier (js) alternative?
Re: Httpx: A next-generation HTTP client for Python
#89Earlier 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…
That's thing... Who knows..