Skip to content

lang_tools.webapp.core.dependencies

Webapp dependency injection helpers.

Functions:

get_settings cached

get_settings() -> WebappConfig

Get webapp configuration settings.

Returns:

  • WebappConfig

    WebappConfig instance.

Source code in src/lang_tools/webapp/core/dependencies.py
@lru_cache
def get_settings() -> WebappConfig:
    """Get webapp configuration settings.

    Returns:
        WebappConfig instance.
    """
    return get_webapp_params().to_config()