Skip to main content
Python Software Foundation 20th Year Anniversary Fundraiser  Donate today!

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.


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

Purges CloudFlare on local file change.

positional arguments:
  zone               CloudFlare zone (e.g.
  prefix             CloudFlare path prefix (e.g.
  dir                directory to watch, i.e. file.txt this directory is

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

When running cfwatch, you must set the following environment variables:

  • CFWATCH_EMAIL to your CloudFlare login email (e.g.
  • CFWATCH_TOKEN to your CloudFlare API key

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.2.0
Filename, size File type Python version Upload date Hashes
Filename, size cfwatch-0.2.0-py2.py3-none-any.whl (4.9 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size cfwatch-0.2.0.tar.gz (3.7 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page