Metadata-Version: 2.1
Name: Flask-NoFLoC
Version: 1.0.0
Summary:  Flask-NoFLoC sends the header      Permissions-Policy: interest-cohort=()  with each request to opt websites out of FLoC. See     https://plausible.io/blog/google-floc#how-to-opt-out-of-floc-as-a-web-developer-set-a-permissions-policy for more information. 
Home-page: https://github.com/shoeffner/Flask-NoFLoC
Author: Sebatian Höffner
Author-email: info@sebastian-hoeffner.de
License: MIT
Download-URL: https://github.com/shoeffner/Flask-NoFLoC/tarball/1.0.0
Description: ============
        Flask-NoFLoC
        ============
        
        Flask-NoFLoC_ is a `Flask extension`_ which disables FLoC_ by adding the header
        
        .. code::
        
            Permissions-Policy: interest-cohort=()
        
        to each HTTP response of your app. Documentation_
        
        .. _Flask-NoFLoC: https://Flask-NoFLoC.readthedocs.io/en/latest/
        .. _Documentation: https://Flask-NoFLoC.readthedocs.io/en/latest/
        .. _Flask extension: https://flask.palletsprojects.com/en/1.1.x/extensiondev/
        .. _Flask: https://flask.palletsprojects.com
        .. _FLoC: https://github.com/WICG/floc
        
        To set it up, follow the usual Flask extension setup, either directly:
        
        .. code:: python
        
            from flask import Flask
            from flask_nofloc import NoFLoC
        
            app = Flask(__name__)
            NoFLoC(app)
        
        or using the ``init_app``-paradigm:
        
        .. code:: python
        
            # 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:
        
        .. code:: python
        
            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:
        
        .. code:: bash
        
            pip install Flask-NoFLoC
        
Keywords: flask,floc,nofloc
Platform: any
Classifier: Environment :: Web Environment
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Topic :: Internet :: WWW/HTTP :: Dynamic Content
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Requires-Python: >= 3.6
Description-Content-Type: text/x-rst
Provides-Extra: test
Provides-Extra: docs
Provides-Extra: pub
