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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for ceph_command_api-1.0.2-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fc68a0fa109cd19e2db0a2f9a9e100121df180138156a060b3c0df5ec32939e9 |
|
MD5 | 3ce532763aefc156ac0c875568adc08e |
|
BLAKE2b-256 | 4613c8b909a037d3c6d3199ed17b3a772103cae504ddad36dc769a50ff1ec177 |