swh.web.config module#

swh.web.config.get_config(config_file: str = 'web/web') Dict[str, Any][source]#

Read the configuration file config_file.

If an environment variable SWH_CONFIG_FILENAME is defined, this takes precedence over the config_file parameter.

In any case, update the app with parameters (secret_key, conf) and return the parsed configuration as a dict.

If no configuration file is provided, return a default configuration.

swh.web.config.search() SearchInterface[source]#

Return the current application’s search.

swh.web.config.storage() StorageInterface[source]#

Return the current application’s storage.

swh.web.config.vault() VaultInterface[source]#

Return the current application’s vault.

swh.web.config.indexer_storage() IndexerStorageInterface[source]#

Return the current application’s indexer storage.

swh.web.config.scheduler() SchedulerInterface[source]#

Return the current application’s scheduler.

swh.web.config.counters() CountersInterface[source]#

Return the current application’s counters.