Python Cassandra Driver

A Python client driver for Apache Cassandra. This driver works exclusively with the Cassandra Query Language v3 (CQL3) and Cassandra’s native protocol. Cassandra 1.2+ is supported.

The driver supports Python 2.6, 2.7, 3.3, and 3.4.

This driver is open source under the Apache v2 License. The source code for this driver can be found on GitHub.

Contents

Installation
How to install the driver.
Getting Started
A guide through the first steps of connecting to Cassandra and executing queries.
Object Mapper
Introduction to the integrated object mapper, cqlengine
API Documentation
The API documentation.
Upgrading
A guide to upgrading versions of the driver.
Performance Notes
Tips for getting good performance.
Paging Large Queries
Notes on paging large query results.
Lightweight Transactions (Compare-and-set)
Working with results of conditional requests
User Defined Types
Working with Cassandra 2.1’s user-defined types.
Security
An overview of the security features of the driver.
Frequently Asked Questions
A collection of Frequently Asked Questions

Getting Help

Visit the FAQ section in this documentation.

Please send questions to the mailing list.

Alternatively, you can use IRC. Connect to the #datastax-drivers channel on irc.freenode.net. If you don’t have an IRC client, you can use freenode’s web-based client.

Reporting Issues

Please report any bugs and make any feature requests on the JIRA issue tracker.

If you would like to contribute, please feel free to open a pull request.

Indices and Tables