Skip to content
This repository has been archived by the owner on May 11, 2021. It is now read-only.

sebastian-philipp/ceph-command-api

Repository files navigation

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.

About

Automatically generated Python API of the ceph cli

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published