API

The public API for Flask-Copilot.

Copilot

class flask_copilot.Copilot(app=None)[source]

The Flask-Copilot extension.

Parameters:app (Optional[flask.Flask]) – The application instance that this copilot should be registered to.
init_app(app)[source]

Register the extension with the application.

Parameters:app (flask.Flask) – The application to register with.
inject_context()[source]

Return a dict used for a template context.

register_entry(navbar_kwargs)[source]

Register a navbar entry with the copilot.

Parameters:navbar_kwargs (dict) – Arguments passed to the NavbarEntry instance.