Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/quantum5/cfwatch
Automagically purges CloudFlare's cache when local files are updated.
https://github.com/quantum5/cfwatch
cache cache-purge cdn cloudflare purge python
Last synced: 15 days ago
JSON representation
Automagically purges CloudFlare's cache when local files are updated.
- Host: GitHub
- URL: https://github.com/quantum5/cfwatch
- Owner: quantum5
- License: mit
- Created: 2015-04-14T23:28:34.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2021-09-09T06:47:47.000Z (about 3 years ago)
- Last Synced: 2024-10-04T21:42:34.060Z (about 1 month ago)
- Topics: cache, cache-purge, cdn, cloudflare, purge, python
- Language: Python
- Homepage: https://qt.ax/cfw
- Size: 7.81 KB
- Stars: 0
- Watchers: 5
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
README
``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] zone prefix [dir]
Purges CloudFlare on local file change.
positional arguments:
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 fileWhen running ``cfwatch``, you must set the following environment variables:
* ``CFWATCH_TOKEN`` to your CloudFlare API token (not the legacy API key)
.. |pypi| image:: https://img.shields.io/pypi/v/cfwatch.svg
:target: https://pypi.python.org/pypi/cfwatch