A modern, feature-rich and highly-tunable Python client library for Apache Cassandra (1.2+) and DataStax Enterprise (3.1+) using exclusively Cassandra's binary protocol and Cassandra Query Language v3.
The driver supports Python 2.7, 3.3, and 3.4.
Help us focus our efforts! Provide your input on the Platform and Runtime Survey (we kept it short).
- Synchronous and Asynchronous APIs
- Simple, Prepared, and Batch statements
- Asynchronous IO, parallel execution, request pipelining
- Connection pooling
- Automatic node discovery
- Automatic reconnection
- Configurable load balancing and retry policies
- Concurrent execution utilities
- Object mapper
Installation through pip is recommended:
$ pip install cassandra-driver
For more complete installation instructions, see the installation guide.
The documentation can be found online here.
A couple of links for getting up to speed:
cqlengine (originally developed by Blake Eggleston and Jon Haddad, with contributions from the community) is now maintained as an integral part of this package. Refer to documentation here.
See CONTRIBUTING.md.
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.
Your two best options for getting help with the driver are the mailing list and the IRC channel.
For IRC, use the #datastax-drivers channel on irc.freenode.net. If you don't have an IRC client, you can use freenode's web-based client.
Copyright 2013-2016 DataStax
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.