Re: [ceph-users] Python APIs
Hi John, apologies for the late reply. The librados seems quite interesting ... Actually no. I'll write up an API doc for you soon. sudo apt-get install python-ceph import rados I wonder if I can ake python calls to interact with the object store (say: cephfs.open() mkdir() ) directly without involving radosgw. I guess the C libs are there if you can mount it using fuse ... Thanks. Cheers, Giuseppe ___ ceph-users mailing list ceph-users@lists.ceph.com http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com
Re: [ceph-users] Python APIs
Is using s3/swift emulation the only way to access object store with python? On 06/11/2013 08:32 PM, John Wilkins wrote: Here are the libraries for the Ceph Object Store. http://ceph.com/docs/master/radosgw/s3/python/ http://ceph.com/docs/master/radosgw/swift/python/ ___ ceph-users mailing list ceph-users@lists.ceph.com http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com
Re: [ceph-users] Python APIs
Actually no. I'll write up an API doc for you soon. sudo apt-get install python-ceph import rados You can view the code by cloning the git repository. http://ceph.com/docs/master/install/clone-source/ The source is in src/pybind/rados.py. See http://ceph.com/docs/master/rbd/librbdpy/ The first lines are what you need to connect. cluster = rados.Rados(conffile='my_ceph.conf') cluster.connect() ioctx = cluster.open_ioctx('mypool') Also, you will need to modify your ceph.conf file to include a keyring. Put it under global. [global] ... keyring=path/to/keyring/ceph.client.admin.keyring The rest of the process is similar to the C API. http://ceph.com/docs/master/rados/api/librados/ Hope this helps. I'll get something up for you soon. Regards, John On Wed, Jun 12, 2013 at 12:34 AM, Giuseppe \Gippa\ Paternò gpate...@gpaterno.com wrote: Is using s3/swift emulation the only way to access object store with python? On 06/11/2013 08:32 PM, John Wilkins wrote: Here are the libraries for the Ceph Object Store. http://ceph.com/docs/master/radosgw/s3/python/ http://ceph.com/docs/master/radosgw/swift/python/ -- John Wilkins Senior Technical Writer Intank john.wilk...@inktank.com (415) 425-9599 http://inktank.com ___ ceph-users mailing list ceph-users@lists.ceph.com http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com
[ceph-users] Python APIs
Hi! Sorry for the dumb question, could you point me out to the Python APIs reference docs for the object store? Do you have example to share for reading files/dirs? Thanks, Giuseppe ___ ceph-users mailing list ceph-users@lists.ceph.com http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com
Re: [ceph-users] Python APIs
Here are the libraries for the Ceph Object Store. http://ceph.com/docs/master/radosgw/s3/python/ http://ceph.com/docs/master/radosgw/swift/python/ On Tue, Jun 11, 2013 at 2:17 AM, Giuseppe \Gippa\ Paternò gpate...@gpaterno.com wrote: Hi! Sorry for the dumb question, could you point me out to the Python APIs reference docs for the object store? Do you have example to share for reading files/dirs? Thanks, Giuseppe ___ ceph-users mailing list ceph-users@lists.ceph.com http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com -- John Wilkins Senior Technical Writer Intank john.wilk...@inktank.com (415) 425-9599 http://inktank.com ___ ceph-users mailing list ceph-users@lists.ceph.com http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com