ceph-command-api-1.0.2
توضیحات
Automatically generated command API.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | ceph-command-api-1.0.2 |
| نام | ceph-command-api |
| نسخه کتابخانه | 1.0.2 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Sebastian Wagner |
| ایمیل نویسنده | sebastian.wagner@suse.com |
| آدرس صفحه اصلی | https://github.com/sebastian-philipp/ceph-command-api |
| آدرس اینترنتی | https://pypi.org/project/ceph-command-api/ |
| مجوز | - |
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](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.
نحوه نصب
نصب پکیج whl ceph-command-api-1.0.2:
pip install ceph-command-api-1.0.2.whl
نصب پکیج tar.gz ceph-command-api-1.0.2:
pip install ceph-command-api-1.0.2.tar.gz