pycassa

From Wikipedia, the free encyclopedia
Jump to navigation Jump to search


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

[edit | edit source]

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

[edit | edit source]
  1. ^ a b Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
  2. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
  • Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).


[edit | edit source]