Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support asyncio-based cassandra driver #844

Open
garvenlee opened this issue Nov 7, 2023 · 2 comments
Open

support asyncio-based cassandra driver #844

garvenlee opened this issue Nov 7, 2023 · 2 comments

Comments

@garvenlee
Copy link

garvenlee commented Nov 7, 2023

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.

@garvenlee garvenlee changed the title cassandra driver asyncio support asyncio-based cassandra driver Nov 7, 2023
@phenobarbital
Copy link
Owner

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
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants