python.external_config.config.factory module

create_fallback_configuration(parent, bg_task_manager, config_loader)[source]

Creates a :class`ExternalConfiguration` subclass given a config URI with no particular pipeline configuration association.

Parameters:
  • parent (QObject) – QT parent object.
  • bg_task_manager (BackgroundTaskManager) – Background task manager to use for any asynchronous work.
  • config_loader (ExternalConfigurationLoader) – Associated configuration Loader
Returns:

ExternalConfiguration

create_from_pipeline_configuration_data(parent, bg_task_manager, config_loader, configuration_data)[source]

Creates a :class`ExternalConfiguration` subclass given a set of input data, as returned by ToolkitManager.get_pipeline_configurations()

Parameters:
  • parent (QObject) – QT parent object.
  • bg_task_manager (BackgroundTaskManager) – Background task manager to use for any asynchronous work.
  • config_loader (ExternalConfigurationLoader) – Associated configuration Loader
  • configuration_data – Dictionary entry on the form returned by ToolkitManager.get_pipeline_configurations()
Returns:

ExternalConfiguration

deserialize(parent, bg_task_manager, data)[source]

Creates a ExternalConfiguration given serialized data.

Parameters:
  • parent (QObject) – QT parent object.
  • bg_task_manager (BackgroundTaskManager) – Background task manager to use for any asynchronous work.
  • data – Data created with serialize().
Returns:

ExternalConfiguration

Raises:

ExternalConfigParseError on error

serialize(config_object)[source]

Create a chunk of data that can be included in json, yaml or pickle.

To be used in conjunction with deserialize().

Returns:Simple dictionary based data structure.