Skip to main content

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 initially comes from this Ceph PR https://github.com/ceph/ceph/pull/7621

But can be built against with older version of Ceph from 0.80.X (firefly) to 10.1.X (perhaps more not tested)

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

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.

Source Distribution

cradox-1.1.0.tar.gz (37.8 kB view details)

Uploaded Source

File details

Details for the file cradox-1.1.0.tar.gz.

File metadata

  • Download URL: cradox-1.1.0.tar.gz
  • Upload date:
  • Size: 37.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for cradox-1.1.0.tar.gz
Algorithm Hash digest
SHA256 00e528e86a43e397677f57800ccfc8266250b02e56a0bb2a5137e82ffd6665d6
MD5 454dadabd764ac38a1c0d64881f8df23
BLAKE2b-256 6481eed6eae33136c5609cc314153fae7a6b7efcb66174d3106ccc5dc9528262

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page