server.web.app_factory ====================== .. py:module:: server.web.app_factory Classes ------- .. autoapisummary:: server.web.app_factory.AppFactory Module Contents --------------- .. py:class:: AppFactory(sqlalchemy_database_uri: str = '', use_otlp: bool = False) Factory for creating Flask apps. .. py:attribute:: otlp_api :value: None .. py:attribute:: _structlog_configured :value: False .. py:attribute:: engine .. py:method:: from_defaults() -> AppFactory :classmethod: Create an AppFactory from the default configuration. .. py:method:: _init_otlp() -> None :classmethod: .. py:method:: _init_logging() -> None :classmethod: .. py:method:: get_app(blueprints: Optional[List[str]] = None, url_prefix: str = '/api') -> flask.Flask Create and configure the Flask app. :param blueprints: The blueprints to register with the app. :param url_prefix: The URL prefix for the app.