Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

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.


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:


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:


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

from django_edgecast import client



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:

CDN domain to use for tests.
Account number (visible in the upper right corner of your control panel.)
Token (available under your account settings in your control panel.)

Release History

This version
History Node


History Node


History Node


Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Hash SHA256 Hash Help Version File Type Upload Date
(3.6 kB) Copy SHA256 Hash SHA256
Source Jun 3, 2013

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting