asyncio support

348 views
Skip to first unread message

Carroll Wainwright

unread,
Mar 30, 2015, 2:15:46 PM3/30/15
to python-dr...@lists.datastax.com
Hello,

I've been playing around with Python's new asyncio module lately, and it seems like it has a lot of nice features and a really slick way of doing async programming. I've created a light-weight wrapper around Cassandra's ResponseFuture object to return an asyncio.Future. This seems to work, but it's a little kludgy and requires there to be two separate event loops along with the overhead that that entails. Is there any plan to support asyncio directly and to make a ResponseFuture variant that's a subclass of asyncio.Future?

Thanks,
Carroll

Adam Holmberg

unread,
Mar 30, 2015, 3:20:08 PM3/30/15
to python-dr...@lists.datastax.com
There are presently no plans to support it in the core driver, mostly because we are intent on supporting Python versions before that module was introduced.

Adam Holmberg

To unsubscribe from this group and stop receiving emails from it, send an email to python-driver-u...@lists.datastax.com.

Chen Shen

unread,
Mar 3, 2016, 12:40:24 AM3/3/16
to DataStax Python Driver for Apache Cassandra User Mailing List
Hi Adam:

Given that python 3.5 has nice syntax sugar like `async def` and `await` around asyncio, is there any change on the plan?

Thanks,
Chen
To unsubscribe from this group and stop receiving emails from it, send an email to python-driver-user+unsub...@lists.datastax.com.

Adam Holmberg

unread,
Mar 3, 2016, 9:41:42 AM3/3/16
to python-dr...@lists.datastax.com
No plans presently. I created PYTHON-504 to look into it.

To unsubscribe from this group and stop receiving emails from it, send an email to python-driver-u...@lists.datastax.com.

--
You received this message because you are subscribed to the Google Groups "DataStax Python Driver for Apache Cassandra User Mailing List" group.

To unsubscribe from this group and stop receiving emails from it, send an email to python-driver-u...@lists.datastax.com.

Victor K.

unread,
Jan 29, 2017, 3:31:22 PM1/29/17
to DataStax Python Driver for Apache Cassandra User Mailing List, clwa...@gmail.com
Hey we just pushed tiny threaded wrapper

https://github.com/wikibusiness/aiocassandra

Any feedback is greatly appreciated!
Reply all
Reply to author
Forward
0 new messages