Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consider replacing requests #188

Open
mahmoudhossam opened this issue Nov 27, 2020 · 3 comments
Open

Consider replacing requests #188

mahmoudhossam opened this issue Nov 27, 2020 · 3 comments

Comments

@mahmoudhossam
Copy link

Requests has been the default suggestion for a python http client library, however it is starting to show its age.

I suggest replacing it in this guide with one of the alternatives, httpx

It is a drop-in replacement for requests, and it also adds async support among other things.

@cjolowicz
Copy link
Owner

Agreed :) I'm working on the next version of the blog, and it does feature httpx instead of requests.

@wanderrful
Copy link

Out of curiosity, what do we get by using httpx over requests?

@mahmoudhossam
Copy link
Author

The ability to make async requests.

Requests is synchronous by default, to make async requests you can either wrap it or use a requests plugin.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants