Pycassa Explained
Pycassa should not be confused with Picasa.
pycassa is a client library for Apache Cassandra.[1]
It is a Python client library having following features:
- Auto-failover for normal or thread-local connections
- Batch interface
- Connection pooling
- Method to map an existing class to a Cassandra column family
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 = USER.insert(useruuid, columns)USERNAME.insert(username,)
External links
Notes and References
- Web site: 2011-03-18. github. pycassa.
- Web site: 2011-03-18. Rackspace. Cassandra By Example: Tying it all together. https://web.archive.org/web/20110221171842/http://www.rackspace.com/cloud/blog/2010/05/12/cassandra-by-example/. 2011-02-21. dead.