Pycassa
{{inline|date=May 2025}}
{{distinguish|Picasa}}
{{Orphan|date=March 2024}}
{{lowercase title}}
pycassa is a client library for Apache Cassandra.{{cite web
| accessdate = 2011-03-18
| publisher = github
| title = pycassa
| url = https://github.com/pycassa/pycassa#readme}}
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.
Code example
The following code adds the user name with the corresponding password to the column families (pycassa.ColumnFamily
) USER
and USERNAME
:{{cite web
| accessdate = 2011-03-18
| publisher = Rackspace
| title = Cassandra By Example: Tying it all together
| url = http://www.rackspace.com/cloud/blog/2010/05/12/cassandra-by-example/
| archive-url = https://web.archive.org/web/20110221171842/http://www.rackspace.com/cloud/blog/2010/05/12/cassandra-by-example/
| archive-date = 2011-02-21
| url-status = dead
}}
username = "jericevans"
password = "**********"
useruuid = str(uuid())
columns = {"id": useruuid, "username": username, "password": password}
USER.insert(useruuid, columns)
USERNAME.insert(username, {"id": useruuid})
References
{{reflist}}
{{refbegin}}
- {{cite book |last1=Tiwari |first1=Shashank |title=Professional NoSQL |date=31 August 2011 |publisher=John Wiley & Sons |isbn=978-1-118-16780-9 |page=172 |url=https://www.google.com/books/edition/Professional_NoSQL/tv5iO9MnObUC?hl=en&gbpv=0 |access-date=10 May 2025 |language=en}}
- {{cite journal |last1=Ramakrishnan |first1=Lavanya |last2=Mantha |first2=Pradeep K. |last3=Yao |first3=Yushu |last4=Canon |first4=Richard S. |title=Evaluation of NoSQL and Array Databases for Scientific Applications |journal=The International Conference for High Performance Computing, Networking, Storage, and Analysis |url=https://sc13.supercomputing.org/sites/default/files/WorkshopsArchive/pdfs/wp162s1.pdf}} Lawrence Berkeley National Lab
{{refend}}
External links
- [https://pycassa.github.com/pycassa/index.html pycassa 1.0.6 Documentation]
Category:Distributed computing
Category:Articles with example Python (programming language) code
{{compu-library-stub}}