Giter Site home page Giter Site logo

edgecast's Introduction

edgecast -- convenient EdgeCast CDN management

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.)

edgecast's People

Contributors

nickbruun avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.