config_framework.utils package
Submodules
- class LoaderSpecificDeserializer(deserializers: Dict[Union[str, Type[AbstractLoader]], Callable[[Variable, Any], Var]])[source]
Bases:
object
Class that helps to create deserializer that acts differently depending on where variable is loaded from.
- Parameters
deserializers – dictionary of loaders (or * as any not fitting) mapped to their deserializers.
- Returns
nothing.
- static fetch_original_source(variable: Variable, composite_loader: Composite) AbstractLoader [source]
Function that helps us fetch a loader from which variable originates. :param variable: Variable instance. :param composite_loader: some composite loader. :return: loader instance.
- class LoaderSpecificSerializer(serializers: Dict[Union[str, Type[AbstractLoader]], Callable[[Variable, Var], Any]])[source]
Bases:
object
Class that helps to create serializers that act differently depending on where form variable were loaded.
- Parameters
serializers – dictionary of loaders (or * as any not fitting) mapped to their deserializers.
- Returns
nothing.
- static fetch_original_source(variable: Variable, composite_loader: Composite) AbstractLoader [source]
Function that helps us fetch a loader from which variable originates. :param variable: Variable instance. :param composite_loader: some composite loader. :return: loader instance.