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.
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())
See ./rebuild.sh
See cholcombe973/ceph_command_parser for a similar project.