Re: Python APIs

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

 



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ò"
<gpaterno@xxxxxxxxxxxx> 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.wilkins@xxxxxxxxxxx
(415) 425-9599
http://inktank.com
_______________________________________________
ceph-users mailing list
ceph-users@xxxxxxxxxxxxxx
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com





[Index of Archives]     [Information on CEPH]     [Linux Filesystem Development]     [Ceph Development]     [Ceph Large]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [xfs]


  Powered by Linux