Question

I am new to Cassandra and just started to use Cassandra with python.

What is the difference among the following 3 python packages

1. cql
2. pycassa
3. cassandra-driver

Are these 3 serve the same purpose?

Thanks in advance

Was it helpful?

Solution

Pycassa is an older python driver that is thrift based while python-driver is a newer CQL3 driver based on cassandra's binary protocol. Thrift isn't going away but it has become a legacy API in cassandra so my advice going forward is to use the newer python driver.

I wrote a blog that you might find helpful, which uses the Twissandra example application with the DataStax python-driver to provide an overview of CRUD and using prepared statements etc.

As for cql I haven't had any experience with this one, but the homepage of the project says it all:

This driver has been deprecated. Please use python-driver https://github.com/datastax/python-driver instead

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top