braintree / braintree_python

Braintree Python library
https://developer.paypal.com/braintree/docs/start/overview
MIT License
241 stars 155 forks source link

As a tornado based application I want my calls to Braintree to be non-blocking #110

Open balakp opened 5 years ago

balakp commented 5 years ago

General information

Issue description

As an application using tornado web server and python 2.7, the Braintree apis block the main execution Thread. Is there any plan to support coroutines?

crookedneighbor commented 5 years ago

We should probably add support for asyncio since it's part of Python 3, but I'm not sure it makes sense to add methods that are specific to Tornado. Is there not an easy way to wrap the methods in the Tornado framework?

jkottapa commented 5 years ago

Is there a plan to add support for asyncio? We'd be really interested in it, we also use Tornado for our server side and have to resort to using Tornado.concurrent.run_on_executor.

jackellenberger commented 5 years ago

Hey @jayanth1991 we've got no new news at this point about adding async support to our Python SDK, but it is on our roadmap to investigate. As always, PRs are welcome!

ghost commented 4 years ago

Upvote for asyncio. I'm using aiohttp at the moment and need to put the braintree calls out on threads.

hollabaq86 commented 1 year ago

for internal tracking, ticket 323