braintree_python icon indicating copy to clipboard operation
braintree_python copied to clipboard

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

Open balakp opened this issue 6 years ago • 5 comments

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?

balakp avatar Dec 27 '18 10:12 balakp

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?

crookedneighbor avatar Jan 07 '19 22:01 crookedneighbor

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.

jkottapa avatar Feb 12 '19 23:02 jkottapa

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!

jackellenberger avatar Feb 13 '19 16:02 jackellenberger

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

ghost avatar Aug 16 '19 18:08 ghost

for internal tracking, ticket 323

hollabaq86 avatar Sep 07 '22 15:09 hollabaq86