Skip to content

Latest commit

 

History

History
70 lines (42 loc) · 1.61 KB

README.rst

File metadata and controls

70 lines (42 loc) · 1.61 KB

cradox

https://travis-ci.org/sileht/pycradox.png?branch=master Latest Version Downloads

/!DON'T USE IT, but use upstream python-rados, except you really can't /!

Python libraries for the Ceph librados library with use cython instead of ctypes

This a standalone library initially comes from this Ceph PR ceph/ceph#7621

But can be built against older version of Ceph from 10.2.X (jewel) to latest.

(For older version use cradox< 2.0)

This is designed for application that want to use a recent python-rados API without upgrading the whole ceph cluster.

Rados C handles provided by this library can't be used with the ceph rbd.py or librbdpy.

The API of this python lib will be keep in sync with the upstream Ceph rados.py API.

Installation

Pre-requires:

$ sudo apt-get install cython librados2 librados-dev

Then, at the command line:

$ pip install cradox

Or, if you have virtualenvwrapper installed:

$ mkvirtualenv cradox
$ pip install cradox

Usage

import cradox as rados

Functionnal Tests

Ceph packages must be installed, the suite create a temporary Ceph cluster run the tests and destroy it.

tox