Python Bindings

RAMCloud contains a set of bindings for Python that provide synchronous access to all of the RAMCloud operations. Here's some basic information about using the Python bindings:

  • Build RAMCloud, if you haven't already.

  • Run python with a command like the following (assuming your current directory is the top-level RAMCloud directory):
    LD_LIBRARY_PATH=$LD_LIBRARY_PATH:obj.master PYTHONPATH=bindings/python python

  • You can then access RAMCloud with Python code like this:


import ramcloud
c = ramcloud.RAMCloud()
tableId = c.get_table_id("table1")
c.write(tableId, 'object1', 'Hello from Python!')
value =, 'object1')