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