fastly-client-0.1.7
توضیحات
Fastly API client that supports billing and stats.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | fastly-client-0.1.7 |
| نام | fastly-client |
| نسخه کتابخانه | 0.1.7 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Alexander Ryzhov |
| ایمیل نویسنده | aryzhov07@gmail.com |
| آدرس صفحه اصلی | https://github.com/aryzhov/fastly-client |
| آدرس اینترنتی | https://pypi.org/project/fastly-client/ |
| مجوز | MIT |
======================================
Fastly Python Billing and Stats Client
======================================
The Fastly API client (api.fastly.com) that supports billing and stats.
Developed using marshmallow (for serialization) and requests (for REST API calls).
Example
=======
::
import fastly_client
client = fastly_client.Client('your-api-token')
period = fastly_client.period(2017, 12, months=1)
try:
bill = client.bill(period)
regions = client.regions(period)
services = client.services()
stats = client.service_stats(period, services[0].id, regions[0])
except fastly_client.FastlyException:
print("An error occurred")
raise
نیازمندی
| مقدار | نام |
|---|---|
| >=3.0.0b11 | marshmallow |
| >=2.18.4 | requests |
نحوه نصب
نصب پکیج whl fastly-client-0.1.7:
pip install fastly-client-0.1.7.whl
نصب پکیج tar.gz fastly-client-0.1.7:
pip install fastly-client-0.1.7.tar.gz