Skip to main content

Automagically purges CloudFlare's cache when local files are updated.

Project description

Automagically purges CloudFlare’s cache when local files are updated.

This is useful for exporting a directory of files via CloudFlare. If your files are updated, cfwatch will automatically purge the corresponding URL on CloudFlare.

With cfwatch, you will no longer need to add cache busting query strings, and the direct link will always work.

Usage

$ pip install cfwatch
$ cfwatch --help
usage: cfwatch.py [-h] [-l LOG] email token zone prefix [dir]

Purges CloudFlare on local file change.

positional arguments:
  email              CloudFlare login email (e.g. user@example.com)
  token              CloudFlare API key (e.g.
                     c2547eb745079dac9320b638f5e225cf483cc5cfdda41)
  zone               CloudFlare zone (e.g. example.com)
  prefix             CloudFlare path prefix (e.g. http://example.com/)
  dir                directory to watch, i.e. file.txt this directory is
                     http://example.com/file.txt

optional arguments:
  -h, --help         show this help message and exit
  -l LOG, --log LOG  log file

Project details


Download files

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

Files for cfwatch, version 0.1.0
Filename, size File type Python version Upload date Hashes
Filename, size cfwatch-0.1.0-py2.py3-none-any.whl (5.5 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size cfwatch-0.1.0.tar.gz (3.5 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page