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() c.connect() c.write(0, 'object1', 'Hello from Python!') value = c.read(0, 'object1')