This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

A powerful, model based Cassandra wrapper for Python.

Project Description

A model based database library for Apache Cassandra built on top of DataStax Python Driver. This library has tested support for Python 2.7.

Installation

Installing through pip is recommended:

$ pip install maelstrom-py

You must have setuptools installed prior to installation. To install the package manually please refer to our installation guide.

Get Started

Example usage of Maelstrom:

from uuid import uuid4
import maelstrom
from maelstrom.base import Base
      from maelstrom.lookup import import LookUp

#ip1 and ip2 are IP address of some, but not necessarily all, nodes of your Cassandra cluster.
maelstrom.start([ip1, ip2])

class User(Base):

  __tablename__ = "users"

  defaults = {
    'id' = uuid4(),
    'name' = '',
    'email' = '',
  }

  lookups = ["email"]

  def __init__(self, *args, **kwargs):
    self.update_data(**self.defaults)
    Base.__init__(self, *arks, **kwargs)

#constructs table in the specified keyspace
User.build()
LookUp.build()

new_user = User(name = "Joe", email="example@email.com")
new_user.commit()

get_user = Account.get_by_lookup("example@email.com")

maelstrom.stop()

Documentation

TODO

License

Copyright 2014 Matt Morse, Joe Peacock and contributors

Maelstrom is licensed under the MIT License.

Release History

Release History

This version
History Node

0.1.32

History Node

0.1.31

History Node

0.1.22a

History Node

0.1.21a

History Node

0.1.5

History Node

0.1.4

History Node

0.1.3

History Node

0.1.2a

History Node

0.1.1

History Node

0.1.1a

History Node

0.1.0

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
maelstrom-py-0.1.32.tar.gz (9.1 kB) Copy SHA256 Checksum SHA256 Source Jul 1, 2014

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting