Lazyboy is a Python library for accessing Cassandra, which wraps the Thrift client library and provides a nicer interface. You should be familiar with Cassandra and it’s concepts before you attempt to use Lazyboy.
Record. A record is a set of columns. This can be the columns in a row in a ColumnFamily, or the columns in a SuperColumn. Records are represented as Python dictionaries. Records include all columns available in the Row or SuperColumn.
Key. Lazyboy’s keys are a superset of the ColumnPath object defined in the Thrift interface (they're children of ColumnParent). In addition to the inherited fields, they add
key, thus containing all information needed to fetch the columns of a Record.
RecordSet. As the name implies, a RecordSet is a collection of Records. RecordSets offer aggregate save and load functions to minimize round-trips to the Cassandra cluster.
View. A view is a variant of a RecordSet which stores itself persistently in a row in Cassandra, and references Records stored elsewhere. You can use Views to build secondary indexes into your data in Cassandra.
Pool. Pools are how Lazyboy maps Keyspaces to Cassandra clusters. Pools consist of one or more Cassandra nodes, which are expected to serve the same data. It’s implicit that the Keyspace of a record is the name of the pool it’s in.
See the examples and unit tests for now.
Lazyboy is provided under the three-clause BSD License. See
LICENSE for the specifics.