Questions tagged [datastax-python-driver]

DataStax Python Driver for Apache Cassandra

A modern, feature-rich and highly-tunable Python client library for Apache Cassandra (2.1+) using exclusively Cassandra's binary protocol and Cassandra Query Language v3.

The driver supports Python 2.7, 3.3, 3.4, 3.5, and 3.6.

If you require compatibility with DataStax Enterprise, use the DataStax Enterprise Python Driver.

53 questions
0
votes
1 answer

Copy row from Cassandra database and then insert it using Python

I'm using plugin DataStax Python Driver for Apache Cassandra. I want to read 100 rows from database and then insert them again into database after changing one value. I do not want to miss previous records. I know how to get my rows: rows =…
Jo.Hen
  • 55
  • 6
0
votes
1 answer

Cassandra Python driver ReadTimeout

I'm trying to run a cqlsh query using the official python driver: >>> session.execute('select count(*) from cassandra_table') and i'm getting the following error: ReadTimeout: Error from server: code=1200 [Coordinator node timed out waiting for…
0
votes
1 answer

Using cassandra python driver with twisted

My python application uses twisted, and uses cassandra python driver under the hood. Cassandra python driver can use cassandra.io.twistedreactor.TwistedConnection as a connection class to use twisted as a way to query. TwistedConnection class uses…
0
votes
1 answer

Cassandra ring status using CQL python driver

I am trying to get the health of the cassandra cluster, is there way to get that using the python CQL driver? I was using pycassa earlier for the thrift based data model : https://github.com/datastax/python-driver Is there a way to get cluster…
0
votes
1 answer

Write data to cassandra using python parser

I have a user defined python library which parses the data from a file and returns key value pairs. Now how do I use this library to insert data into Cassandra column family? I’m using python Cassandra driver.
0
votes
1 answer

Use cassandra inbuild `now()` function to generate TimeUUID with Model in Python driver

I have code as import time from uuid import uuid4 import cassandra from cassandra.cqlengine.models import Model from cassandra.cqlengine.query import BatchQuery from cassandra.cqlengine import columns, connection from…
Nilesh
  • 20,521
  • 16
  • 92
  • 148
0
votes
1 answer

Unit Tests for Python: Mock Patch

I am trying to write Unit Tests for Cassandra but am not able to get it work. Here is the code: CassandraLoggingModel.py: import uuid from cassandra.cqlengine import columns from datetime import datetime from cassandra.cqlengine.models import…
-1
votes
1 answer

How to fetch list datatype column value from cassandra in python

Can anyone help with query : how to fetch list datatype column value from cassandra in python
1 2 3
4