Skip to main content

Fastly API client that supports billing and stats.

Project description

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

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

fastly-client-0.1.6.tar.gz (3.9 kB view hashes)

Uploaded source

Built Distribution

fastly_client-0.1.6-py3-none-any.whl (5.5 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page