verloop / twirpy

Twirp's python implementation
The Unlicense
99 stars 20 forks source link

Async Client support #43

Open essnine opened 2 years ago

essnine commented 2 years ago

Hi! I've been using this package for a bit, and for performance reasons I've had to create a modified TwirpClient that makes http requests using aiohttp instead of requests, so that ASGI apps can use the clients to make calls in a non-blocking way. Would you be open to adding such a class if a PR was raised?

chadawagner commented 1 year ago

Hi @essnine - I forgot to look at open issues first, but opened this PR earlier this week. Since it seems you've also been thinking about this, please let me know if you have any feedback or suggestions for improvement. Thanks!