GitHub user vmarkovtsev opened a pull request: https://github.com/apache/thrift/pull/972
THRIFT-3770 Implement Python 3.4+ asyncio support I decided to take an approach which is different from Tornado implementation and do not nail supported protocols to the Framed one. My effort enables BinaryProtocol. You can merge this pull request into a Git repository by running: $ git pull https://github.com/vmarkovtsev/thrift THRIFT-3770 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/thrift/pull/972.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #972 ---- commit 16f108442feafe1933d07ac047da69a092f13114 Author: Markovtsev Vadim <v.markovt...@corp.mail.ru> Date: 2016-03-31T14:22:55Z Add binary protocol support for asyncio Example: import asyncio from hbase.Hbase import Client from thrift.TAsyncio import TAsyncioTransport, TAsyncioBinaryProtocol def work(loop): transport = yield from TAsyncioTransport.connect( 'hbase', 9090, loop) client = Client(TAsyncioBinaryProtocol(transport)) tables = yield from client.getTableNames() print(tables) loop = asyncio.get_event_loop() try: loop.run_until_complete(work(loop)) finally: loop.close() ---- --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---