This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

Convenient CacheFly CDN management for Python

Project Description

The CacheFly CDN exposes an HTTP based API for forcefully purging content from their reverse proxying CDN solution. The cachefly module provides a simple interface for performing those actions.

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

Installation

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

$ pip install cachefly

Installation in Django

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

INSTALLED_APPS = (
    ...
    'django_cachefly',
)

You also need to configure your CacheFly API key in your application’s settings file:

CACHEFLY_API_KEY = '..'

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

from django_cachefly 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:

CACHEFLY_API_KEY
API key to use for testing.
Release History

Release History

This version
History Node

1.0.0

Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
cachefly-1.0.0.tar.gz (3.3 kB) Copy SHA256 Checksum SHA256 Source Sep 19, 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