Giuseppe, My apologies for the misunderstanding. I do have some information on the librados API. There is a Python binding for the Ceph Filesystem in the repository. For information on cloning the Ceph repository, see http://ceph.com/docs/master/install/clone-source/ Once you clone the Ceph source, do: cd /ceph/src/pybind In that directory, you will find cephfs.py That's the python binding. It's not documented, but you can look through it and find the public methods. I have some draft work done on the librados python API, but it needs to pull in the docstring so the API signatures aren't so obvious. I'll attach an example script, since connecting is common to all uses of the Python bindings. On Tue, Jun 18, 2013 at 8:00 AM, Sage Weil <sage@xxxxxxxxxxx> wrote: > On Tue, 18 Jun 2013, Giuseppe 'Gippa' Paterno' wrote: >> 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 ... > > There is a libcephfs library to interact directly with cephfs without a > mount, but I don't think there are python bindings for it yet. librados > bypasses cephfs and talks directly to the object store (and doesn't > understand directories). For many applications, though the object API is > more than sufficient. > > sage -- John Wilkins Senior Technical Writer Intank john.wilkins@xxxxxxxxxxx (415) 425-9599 http://inktank.com
Attachment:
python.rst
Description: Binary data
Attachment:
client.py
Description: Binary data
_______________________________________________ ceph-users mailing list ceph-users@xxxxxxxxxxxxxx http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com