From d7d000eda051f9d1cc52f74a76a1ea4a58602b28 Mon Sep 17 00:00:00 2001 From: Quantum Date: Mon, 28 Aug 2017 19:43:12 -0400 Subject: [PATCH] Update and rename README.md to README.rst --- README.md | 2 -- README.rst | 37 +++++++++++++++++++++++++++++++++++++ 2 files changed, 37 insertions(+), 2 deletions(-) delete mode 100644 README.md create mode 100644 README.rst diff --git a/README.md b/README.md deleted file mode 100644 index 8ec29c5..0000000 --- a/README.md +++ /dev/null @@ -1,2 +0,0 @@ -# cloudflare-watchdog -Automagically purges CloudFlare's cache when files are updated diff --git a/README.rst b/README.rst new file mode 100644 index 0000000..28bd568 --- /dev/null +++ b/README.rst @@ -0,0 +1,37 @@ +``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