magpie.config

Module Contents

Functions

extend_with_default(→ jsonschema.protocols.Validator)

Validator that applies inplace defaults in the instance when provided by the schema.

validate_services_config(→ magpie.typedefs.ServicesConfig)

Validate configuration within the providers section.

Attributes

LOGGER

SERVICE_HOOK_ITEM_SCHEMA

SERVICE_CONFIG_ITEM_SCHEMA

SERVICES_CONFIGURATION_SCHEMA

JsonSchemaDefaultValidator

magpie.config.LOGGER[source]
magpie.config.SERVICE_HOOK_ITEM_SCHEMA[source]
magpie.config.SERVICE_CONFIG_ITEM_SCHEMA[source]
magpie.config.SERVICES_CONFIGURATION_SCHEMA[source]
magpie.config.extend_with_default(validator_class: jsonschema.protocols.Validator) jsonschema.protocols.Validator[source]

Validator that applies inplace defaults in the instance when provided by the schema.

magpie.config.JsonSchemaDefaultValidator[source]
magpie.config.validate_services_config(services_configuration: magpie.typedefs.JSON) magpie.typedefs.ServicesConfig[source]

Validate configuration within the providers section.

Parameters:

services_configuration – Service definitions loaded from one or more combined configuration files.

Returns:

Services configuration with validated schema and applied defaults.