Jump to content

pycassa

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by SchreiberBike (talk | contribs) at 02:47, 17 May 2012 (Repairing links to disambiguation pages - You can help! - Batch). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

pycassa is a client library for Apache Cassandra.[1]

It is a Python client library having following features:

Like Apache Cassandra, pycassa is open-source.[1]

Code example

The following code adds the user name with the corresponding password to the column families (pycassa.ColumnFamily) USER and USERNAME:[2]

username = 'jericevans'
password = '**********'
useruuid = str(uuid())
columns = {'id': useruuid, 'username': username, 'password': password}
USER.insert(useruuid, columns)
USERNAME.insert(username, {'id': useruuid})

References

  1. ^ a b "pycassa". https://github.com/: github. Retrieved 2011-03-18. {{cite web}}: External link in |location= (help)
  2. ^ "Cassandra By Example: Tying it all together". http://www.rackspace.com/: Rackspace. Retrieved 2011-03-18. {{cite web}}: External link in |location= (help)