cloudhealth-client-0.5.0
توضیحات
A REST Client for Cloudhealth
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | cloudhealth-client-0.5.0 |
| نام | cloudhealth-client |
| نسخه کتابخانه | 0.5.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Alberto Narro |
| ایمیل نویسنده | alberto.narro@hotmail.com |
| آدرس صفحه اصلی | https://github.com/albertonarro/cloudhealth-client |
| آدرس اینترنتی | https://pypi.org/project/cloudhealth-client/ |
| مجوز | Apache-2.0 |
Cloudhealth REST Client
=======================
This is a Python REST Client for the Cloudhealth service.
## Installation
```shell
pip install cloudhealth-client
# Clone repo
git clone https://github.com/albertonarro/cloudhealth-client.git
```
## Python Usage
```python
>>> from cloudhealth import client
>>> ch = client.CloudHealth(api_key='Ali23melAS$E#@$Im3lsim1!')
# List all queryable assets
>>> ch.assets.list()
['AwsInstanceType', 'AwsAvailabilityZone', 'AwsAccount', ... ]
# List Reports of Specific Type
>>> ch.reports.list_by_type('cost')
{
'links': {
'cost/billing_rules': {'href': 'https://chapi.cloudhealthtech.com/olap_reports/cost/billing_rules'},
'cost/current': {'href': 'https://chapi.cloudhealthtech.com/olap_reports/cost/current'},
...
...
}
}
```
## Testing
[!WIP]
## Contributions..
[!WIP]
نیازمندی
| مقدار | نام |
|---|---|
| ==2.28.2 | requests |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.7 | Python |
نحوه نصب
نصب پکیج whl cloudhealth-client-0.5.0:
pip install cloudhealth-client-0.5.0.whl
نصب پکیج tar.gz cloudhealth-client-0.5.0:
pip install cloudhealth-client-0.5.0.tar.gz