:mod:`weaver.config` ==================== .. py:module:: weaver.config Module Contents --------------- .. data:: LOGGER .. data:: WEAVER_CONFIGURATION_DEFAULT :annotation: = DEFAULT .. data:: WEAVER_CONFIGURATION_ADES :annotation: = ADES .. data:: WEAVER_CONFIGURATION_EMS :annotation: = EMS .. data:: WEAVER_CONFIGURATIONS .. data:: WEAVER_DEFAULT_INI_CONFIG :annotation: = weaver.ini .. data:: WEAVER_DEFAULT_DATA_SOURCES_CONFIG :annotation: = data_sources.json .. data:: WEAVER_DEFAULT_WPS_PROCESSES_CONFIG :annotation: = wps_processes.yml .. data:: WEAVER_DEFAULT_CONFIGS .. function:: get_weaver_configuration(container) -> AnyStr Obtains the defined operation configuration mode. :returns: one value amongst :py:data:`weaver.config.WEAVER_CONFIGURATIONS`. .. function:: get_weaver_config_file(file_path, default_config_file) -> AnyStr Validates that the specified configuration file can be found, or falls back to the default one. Handles 'relative' paths for settings in ``WEAVER_DEFAULT_INI_CONFIG`` referring to other configuration files. Default file must be one of ``WEAVER_DEFAULT_CONFIGS``. If the default file cannot be found, it is auto-generated from the corresponding example file. :param file_path: path to a configuration file (can be relative if resolvable or matching a default file name) :param default_config_file: one of :py:data:`WEAVER_DEFAULT_CONFIGS`. .. function:: includeme(config)