On Wed, Jan 23, 2013 at 3:09 PM, Nick Bartos <n...@pistoncloud.com> wrote:
> I just recently found out that ceph has some python bindings (yay!).
> I see there are a couple of examples for using the rbd bindings here:
> http://ceph.com/docs/master/rbd/librbdpy/
>
> But that doesn't really include much about the librados bindings.  Are
> there any examples for that?  For example I'm interested in converting
> the following commands into python:
>
> rados -p foo put test.tmp test --object-locator test
> rados -p foo clonedata test.tmp test --object-locator test
> rados -p foo rm test.tmp --object-locator test
> rados -p foo get test test.downloaded

Josh has informed me that there are some tests for the python bindings
in src/test/pybind/test_rados.py.  Those could serve as simple
examples of library use.

https://github.com/ceph/ceph/blob/master/src/test/pybind/test_rados.py
-sam


> --
> To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
> the body of a message to majord...@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to