Pycassa

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 = {"id": useruuid, "username": username, "password": password}
USER.insert(useruuid, columns)
USERNAME.insert(username, {"id": useruuid})

## References

1. ↑ 1.0 1.1 "pycassa". github. https://github.com/pycassa/pycassa#readme. Retrieved 2011-03-18.
2. ↑ "Cassandra By Example: Tying it all together". Rackspace. http://www.rackspace.com/cloud/blog/2010/05/12/cassandra-by-example/. Retrieved 2011-03-18.

* Tiwari, Shashank (31 August 2011) (in en). Professional NoSQL. John Wiley & Sons. p. 172. ISBN 978-1-118-16780-9. https://www.google.com/books/edition/Professional_NoSQL/tv5iO9MnObUC?hl=en&gbpv=0. Retrieved 10 May 2025.

* Ramakrishnan, Lavanya; Mantha, Pradeep K.; Yao, Yushu; Canon, Richard S.. "Evaluation of NoSQL and Array Databases for Scientific Applications". The International Conference for High Performance Computing, Networking, Storage, and Analysis. https://sc13.supercomputing.org/sites/default/files/WorkshopsArchive/pdfs/wp162s1.pdf. Lawrence Berkeley National Lab

## External links

* pycassa 1.0.6 Documentation

0.00

(0 votes)

Original source: https://en.wikipedia.org/wiki/Pycassa. Read more

|

Retrieved from "https://handwiki.org/wiki/index.php?title=Pycassa&oldid=3980458"