flask.cli FlaskGroup Example Code

FlaskGroup is a class within the flask.cli module of the Flask project. FlaskGroup is a subclass of AppGroup that provides for loading more commands from a configured Flask app. Generally, only advanced use cases will need to use this class.

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

Example 1 from FlaskBB

FlaskBB (project website) is a Flask-based forum web application. The web app allows users to chat in an open message board or send private messages in plain text or Markdown.

FlaskBB is provided as open source under this license.

FlaskBB / flaskbb / cli / main.py

Example 2 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