braintree_python
braintree_python copied to clipboard
As a tornado based application I want my calls to Braintree to be non-blocking
General information
- SDK/Library version: latest
- Language, language version: Python 2.7.11
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?
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?
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.
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!
Upvote for asyncio. I'm using aiohttp at the moment and need to put the braintree calls out on threads.
for internal tracking, ticket 323