flask-cfpurge
Automate Purging Your File Cache On Cloudflare To Easily Update Your Webpages
Usage
Example in flask app's init.py:
from flask_cfpurge import Purger
from flask import Flask
app = Flask(__name__)
app.cf_auth_key = os.environ.get('CF_AUTH_KEY')
app.cf_email_key = os.environ.get('CF_AUTH_EMAIL')
app.cf_zone = os.environ.get('CF_ZONE')
purger = Purger(app)
purger.purge_all(app.cf_zone)
This will run everytime you restart your flask server.
Metadata
Release files for flask-cfpurge 0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| flask-cfpurge-0.2.tar.gz | 1.6 kB | Without provenance | Details for flask-cfpurge-0.2.tar.gz |
Release files / flask-cfpurge-0.2.tar.gz
| Download URL | flask-cfpurge-0.2.tar.gz |
|---|---|
| Size | 1.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cb68aaa4c76371fe5e2155f25dcd04481762119245b3b004e5eaa22f54b83c97
|
|
BLAKE2b-256 checksum How to use checksums |
6020e74a841e510e3ee5ce814418ce90952ce96df04f46d68bae6c1510c23d2f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3
|
Security for flask-cfpurge 0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.