Re: python examples for librados

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Jan 23, 2013 at 3:09 PM, Nick Bartos <nick@xxxxxxxxxxxxxxx> 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 majordomo@xxxxxxxxxxxxxxx
> 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 majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [CEPH Users]     [Ceph Large]     [Information on CEPH]     [Linux BTRFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux