Skip to main content

Automatically generated command API.

Project description

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

It provides proper auto completion in your IDE, an automatically [generated documentation](https://ceph-command-api.readthedocs.io/en/latest/mon_command_api.html) , and static type checking.

Usage

Install [ceph-command-api](https://pypi.org/project/ceph-command-api/) from PyPi:

` pip install ceph-command-api `

And then:

`python 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](https://github.com/cholcombe973/ceph_command_parser) for a similar project.

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

ceph-command-api-1.0.2.tar.gz (29.9 kB view hashes)

Uploaded Source

Built Distribution

ceph_command_api-1.0.2-py2-none-any.whl (31.8 kB view hashes)

Uploaded Python 2

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