Go to file
Tyler Hobbs bcfbe54d76 Fix bad interpretation of prepared stmt ID spec
There is actually only one query ID associated with each
prepared statement, and it is written as a short_string.  That is,
it's a short length followed by a string.  This was misinterpreted
as a short ID and a 16 byte md5 id.
2013-08-05 15:04:34 -05:00
2013-06-28 15:40:04 -05:00
2013-06-03 12:34:24 -05:00
2013-07-03 18:12:57 -05:00

DataStax Python Driver for Apache Cassandra (Beta)

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

Warning

This driver is currently under heavy development, so the API and layout of packages, modules, classes, and functions are subject to change. There may also be serious bugs, so usage in a production environment is not recommended at this time.

Features to be Added

  • C extension for encoding/decoding messages
  • Connection pool metrics
  • Authentication/security feature support
  • Twisted, gevent support
  • Python 3 support
  • IPv6 Support

Installation

A package hasn't been put on pypi yet, so for now, run:

$ sudo pip install futures  # install dependency
$ sudo python setup.py install

libev support

The driver currently uses Python's asyncore module for its default event loop. For better performance, libev is also supported through the pyev python wrapper.

If you're on Linux, you should be able to install libev through a package manager. For example, on Debian/Ubuntu:

$ sudo apt-get install libev

and then install pyev as follows:

$ sudo pip install pyev

If successful, you should be able to use the libev event loop by doing the following

>>> from cassandra.io.libevreactor import LibevConnection
>>> from cassandra.cluster import Cluster

>>> cluster = Cluster()
>>> cluster.connection_class = LibevConnection
>>> session = cluster.connect()

License

Copyright 2013, 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.

Description
RETIRED, further work has moved to Debian project infrastructure
Readme 7.8 MiB
Languages
Python 96.1%
Cython 2.2%
C 1.2%
reStructuredText 0.3%
PowerShell 0.2%