flask.cli AppGroup Example Code

AppGroup is a class within the flask.cli module of the Flask project. It works like the Click Group class and automatically wraps the functions using with_appcontext.

DispatchingApp, 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 / util.py