settei.presets.flask — Preset for Flask apps

New in version 0.2.0.

class settei.presets.flask.WebConfiguration(config: Mapping[str, object] = {}, **kwargs)
on_web_loaded(app: Callable)

Be invoked when a WSGI app is ready.

Parameters:app (flask.Flask, typing.Callable) – a ready wsgi/flask app
web_config

(typing.Mapping) The configuration maping for web that will go to flask.Flask.config.

web_debug

Whether to enable debug mode. On debug mode the server will reload itself on code changes, and provide a helpful debugger when things go wrong.