-
Notifications
You must be signed in to change notification settings - Fork 27
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
Replace requests with aiohttp #983
Comments
Any update on this? Async support in general would be extremely welcome :) |
@thomafred I've begun the work to move to |
Awesome :) |
What's the status on this? Also if we just make everything async, we could auto generate a sync client that just wraps it? |
@andersfylling It was not able to get this task prioritized, so I’m working on it on my own time. I’m not entirely sure when it’ll be ready, but I’m hoping after Christmas 🎄 |
@haakonvt let me know if you want any assistance! |
Yes! 🚀 Making a temporary channel! |
Just out of curiosity what is the decisions behind using httpx over aiohttp? |
|
We can get performance improvements (both wrt. memory and time) by moving to asyncio and aiohttp. We can let our internal APIs be async, and then use something like this to still support the sync interface we have today. Longer term we can expose a public async API aswell.
This will require significant changes to both HTTPClient/APIClient as well as the unit tests as these are tightly coupled with the
requests
library by using theresponses
mocking library.The text was updated successfully, but these errors were encountered: