ceph-command-api

Automatically generated command API.


Keywords
ceph, python
Licenses
LGPL-3.0/GPL-3.0+
Install
pip install ceph-command-api==1.0.2

Documentation

ceph-command-api

ceph-command-api. An automatically generated API for accessing the Ceph CLI.

It provides proper auto completion in your IDE, an automatically generated documentation , and static type checking.

Usage

Install ceph-command-api from PyPi:

pip install ceph-command-api

And then:

import rados
from ceph_command_api import MonCommandApi
cluster = rados.Rados(conffile='/etc/ceph/ceph.conf')
cluster.connect()
print(MonCommandApi(cluster).version())

Rebuild the API

See ./rebuild.sh

Reference

See cholcombe973/ceph_command_parser for a similar project.