Metadata-Version: 1.1
Name: flask-fool
Version: 1.0.4
Summary:  A Flask extension that prevents browser access to API. 
Home-page: https://github.com/Faylixe/flask-fool
Author: Felix Voituret
Author-email: felix@voituret.fr
License: Apache Licence 2.0
Download-URL: https://github.com/Faylixe/flask-fool/archive/1.0.4.tar.gz
Description: 
        flask-fool
        ==========
        
        
        .. image:: https://img.shields.io/pypi/v/flask-fool.svg
           :target: https://pypi.python.org/pypi/Flask-Fool
           :alt: pypi
         
        .. image:: https://circleci.com/gh/Faylixe/flask-fool.svg?style=shield
           :target: https://circleci.com/gh/Faylixe/flask-fool
           :alt: CircleCI
        
        
        A Flask extension that prevents browser access to API by faking browser error pages.
        
        Usage
        -----
        
        .. code-block:: python
        
           from flask import flask
           from flask_fool import FlaskFool
        
           app = Flask('myapp')
           fooler = FlaskFool(app)
        
        From now if any error is caught by the application and the query has been emitted by a browser,
        an error page corresponding to the used browser will be returned, suggesting that the queried
        domain does not exist.
        
        Disallow browser access
        -----------------------
        
        You can also totally prevent for browser access by using ``disallow_browser`` flag :
        
        .. code-block:: python
        
           fooler = FlaskFool(app, disallow_browser=True)
        
        User agent filtering
        --------------------
        
        You can also just want your API only be reachable by a specific user agent. In that case you can
        specify a custom user agent for which only request will be received :
        
        .. code-block:: python
        
           fooler = FlaskFool(app, user_agent='MyCustomUserAgent')
        
Keywords: flask fool
Platform: UNKNOWN
Classifier: Environment :: Web Environment
Classifier: Intended Audience :: Developers
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Topic :: Internet :: WWW/HTTP :: Dynamic Content
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.5
Classifier: Development Status :: 5 - Production/Stable
