Flask-NoFLoC is a Flask extension which disables FLoC by adding the header
Permissions-Policy: interest-cohort=()
to each HTTP response of your app. Documentation
To set it up, follow the usual Flask extension setup, either directly:
from flask import Flask
from flask_nofloc import NoFLoC
app = Flask(__name__)
NoFLoC(app)
or using the init_app-paradigm:
# extensions.py
from flask_noflock import NoFLoC
nofloc = NoFLoC()
# app.py
from flask import Flask
from extensions import nofloc
def create_app(settings):
app = Flask('myapp')
nofloc.init_app(app)
return app
If you only want to exclude specific route, you can use a decorator:
from flask_nofloc import add_nofloc_header
@app.route('/nofloc')
@add_nofloc_header
def no_floc():
return 'no FLoC'
Install via pip and your favorite installation method:
pip install Flask-NoFLoC
Metadata
Release files for Flask-NoFLoC 1.0.0
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-NoFLoC-1.0.0.tar.gz | 3.3 kB | Without provenance | Details for Flask-NoFLoC-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| Flask_NoFLoC-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for Flask_NoFLoC-1.0.0-py3-none-any.whl |
Total release size: 7.2 kB
Release files / Flask-NoFLoC-1.0.0.tar.gz
| Download URL | Flask-NoFLoC-1.0.0.tar.gz |
|---|---|
| Size | 3.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e7e7dfac1647c0036a5aa668791dab3c0e2c35cc8b93ea6c501ef9d3f758ff1e
|
|
BLAKE2b-256 checksum How to use checksums |
9c365adb4ca3f973aa953f1f4c3dab21edca6f9311cb05889170aa70ea3371de
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.0.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.2
|
Release files / Flask_NoFLoC-1.0.0-py3-none-any.whl
| Download URL | Flask_NoFLoC-1.0.0-py3-none-any.whl |
|---|---|
| Size | 3.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
edf5b7e7d7b0341198b92dcc29fba758d76b2af668284d7d4d06c5bfcc0e2abb
|
|
BLAKE2b-256 checksum How to use checksums |
a334890d33f6fd55c2b3e604a100c51d54c878110636b2bafeac1c8c0a49229a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.0.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.2
|
Security for Flask-NoFLoC 1.0.0
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.