Skip to main content
Join the official 2020 Python Developers SurveyStart the survey!

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

Project description

Latest Version Downloads

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

This a standalone library identical to this Ceph PR https://github.com/ceph/ceph/pull/7621

But this can be used with older version of Ceph from 0.80.X (firefly) to 10.0.X (perhaps more not tested)

This is designed for application that only want to use the Rados API, this can’t be used with the ceph rbd.py or librbdpy

The API of this python lib is identical to the Ceph rados.py API. More detail can be found on https://github.com/ceph/ceph/pull/7621.

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

A running ceph cluster is needed, the authentification must be disabled or done automatically with the configuration in /etc/ceph/ceph.conf.

For python 2.X:

$ ./test_rados.sh

For python 3.X:

$ ./test_rados.sh -3

For python2-dbg + gdb:

$ ./test_rados.sh -b

For python2-dbg + cygdb:

$ ./test_rados.sh -d

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for cradox, version 1.0.3
Filename, size File type Python version Upload date Hashes
Filename, size cradox-1.0.3.tar.gz (37.2 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page