-
Notifications
You must be signed in to change notification settings - Fork 16
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
Add support for asynchronous usage #113
Comments
Thanks for opening this request @karolzlot! We've discussed this a couple of times internally and I think I even looked specifically at |
async
an httpx
One more idea: as this is package intended to be used by other projects, it may be good idea to implement this funcionality with AnyIO: https://www.python-httpx.org/async/#anyio |
I'm not too familiar with AnyIO—I would need to better understand it before weighing in. I'm also thinking about how we might expose the (optional) async capability in this package—namely, I'd like to avoid or abstract the challenge of code color as much as possible. |
I was also thinking about it. As far as I can see, there is no ideal solution: https://stackoverflow.com/questions/55152952/duplication-of-code-for-synchronous-and-asynchronous-implementations |
Is your feature request related to a problem? Please describe.
I think as this project will grow it is good idea to allow to have async calls to API.
Describe the solution you'd like
I think that the best approach is to replace
requests
withhttpx
.Describe alternatives you've considered
n/d
Additional context
n/d
The text was updated successfully, but these errors were encountered: