phenobarbital / asyncdb

Collection of Asynchronous (Asyncio-based) generic Database connectors
Other
38 stars 6 forks source link

support asyncio-based cassandra driver #844

Open garvenlee opened 1 year ago

garvenlee commented 1 year ago

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.

phenobarbital commented 11 months ago

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.

phenobarbital commented 11 months ago

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.