flask.cli DispatchingApp Example Code

DispatchingApp is a class within the flask.cli module of the Flask project. DispatchingApp is a special application that dispatches to a Flask app if it is imported by name in a background thread.

AppGroup, FlaskGroup, ScriptInfo, pass_script_info, and with_appcontext are several other callables with code examples from the same flask.cli package.

Example 1 from indico

indico (project website, documentation and sandbox demo) is a Flask-based web app for event management. The code is open sourced under the MIT license.

indico / indico / cli / devserver.py