Skip to main content

Convenient EdgeCast CDN management for Python

Project description

The EdgeCast CDN exposes a RESTful API for forcefully loading and purging content from your CDN hosts. The edgecast module provides a simple interface for performing those actions.

Furthermore, the django_edgecast module provides a convient way to configure and access an application wide API client entity through your Django settings.

Installation

To install edgecast and django_edgecast, do yourself a favor and don’t use anything other than pip:

$ pip install edgecast

Installation in Django

After the module has been installed, you need to add django_edgecast to your list of INSTALLED_APPS in your application configuration:

INSTALLED_APPS = (
    ...
    'django_edgecast',
)

You also need to add your account number, which can be found in the upper right corner of your control panel, and your token, which can be found under your account settings, to your application configuration:

EDGECAST_ACCOUNT_NUMBER = '..'
EDGECAST_TOKEN = '..'

The Edgecast client can now be easily accessed from the entire application:

from django_edgecast import client

...

Testing

Testing requires a set of valid credentials. All tests are performed against URLs in the /_testing path for the CDN node your select. Credentials are loaded from the environment during testing for security:

EDGECAST_CDN_DOMAIN

CDN domain to use for tests.

EDGECAST_ACCOUNT_NUMBER

Account number (visible in the upper right corner of your control panel.)

EDGECAST_TOKEN

Token (available under your account settings in your control panel.)

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

edgecast-1.0.1.tar.gz (3.5 kB view details)

Uploaded Source

File details

Details for the file edgecast-1.0.1.tar.gz.

File metadata

  • Download URL: edgecast-1.0.1.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for edgecast-1.0.1.tar.gz
Algorithm Hash digest
SHA256 6ffaf94b6f9556ac5075ecf8a2e5837bc14ee27c2c41a3284607584908f1a18e
MD5 162f617b68fb619f5abb9eb4bc66b79b
BLAKE2b-256 7ff2c509ba28398c323ad583f97764f25b34f2de90ffa197ae820623de65a26c

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page