support asyncio-based cassandra driver
garvenlee opened this issue · 2 comments
Now, cassandra driver uses asyncore, its implementation is too old. And I want to use cassandra in pure asynchronous (asyncio-based) code in Python3.11. I want to know whether it will be soon in the next release.
Hi @garvenlee, thanks for checking my package, unfortunately, the current version of Cassandra Driver is not compatible with Python> 3.10, several methods failed with:
'As of 3.10, the *loop* parameter was removed from Queue() since it is no longer necessary'
I'll check for an experimental branch for asyncio but not yet merged into the master branch.
I tested an experimental version of python-driver with a patch for Python> 3.10 support and works:
<cassandra.cluster.Cluster object at 0x7f3f7475a1a0>
CONNECTION > <cassandra.cluster.Session object at 0x7f3f7364c040>
[{'release_version': '4.1.3'}]
we need to wait until Datastax releases a new version of python-driver.