Metadata-Version: 2.0
Name: cfwatch
Version: 0.1.0
Summary: Automagically purges CloudFlare's cache when local files are updated.
Home-page: https://github.com/quantum5/cfwatch
Author: Quantum
Author-email: quantum@dmoj.ca
License: MIT
Keywords: cloudflare cdn cache purge
Platform: UNKNOWN
Classifier: Development Status :: 3 - Alpha
Classifier: Environment :: Web Environment
Classifier: Intended Audience :: System Administrators
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Topic :: Internet :: WWW/HTTP
Classifier: Topic :: Internet :: WWW/HTTP :: Site Management
Requires-Dist: requests
Requires-Dist: watchdog

``cfwatch`` |pypi|
==================

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

.. |pypi| image:: https://img.shields.io/pypi/v/cfwatch.svg


