Pycassa
≈ 1 min read
Names in other languages
No names in other languages are held for this entry yet.
Article bodies are English and are not machine-translated. A name in another language is not a translation of the article.
pycassa is a client library for Apache Cassandra. 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.
pycassa is a client library for Apache Cassandra. 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 : username = "jericevans" password = "**********" useruuid = str(uuid()) columns = {"id": useruuid, "username": username, "password": password} USER.insert(useruuid, columns) USERNAME.insert(username, {"id": useruuid})
References
Lawrence Berkeley National Lab
External links
pycassa 1.0.6 Documentation
Text derived from https://en.wikipedia.org/w/index.php?oldid=1289793075 under CC BY-SA 4.0; modifications have been made.