yaml2instance/main.py
def yaml2instances(
    loading_data: Union[dict, List[dict]], search_modules: List[ModuleType], **kwargs
) -> list:
    """From the list of modules, find the class written in yaml and instantiate it."""
    warnings.warn("yaml2instances is deprecated. Use call_multiple_process.")
    instance_list = []
    if isinstance(loading_data, list):
        for conf in loading_data:
            for instance in _call_instance_or_function(conf, search_modules, **kwargs):
                instance_list.append(instance)
    elif isinstance(loading_data, dict):
        for instance in _call_instance_or_function(
            loading_data, search_modules, **kwargs
        ):
            instance_list.append(instance)
    else:
        TypeError

    return instance_list
From the list of modules, find the class written in yaml and instantiate it.
From the list of modules, find the class written in yaml and instantiate it.
From the list of modules find the class written in yaml and instantiate it .
def yaml2instances(
    loading_data: Union[dict, List[dict]], search_modules: List[ModuleType], **kwargs
) -> list:
    warnings.warn("yaml2instances is deprecated. Use call_multiple_process.")
    instance_list = []
    if isinstance(loading_data, list):
        for conf in loading_data:
            for instance in _call_instance_or_function(conf, search_modules, **kwargs):
                instance_list.append(instance)
    elif isinstance(loading_data, dict):
        for instance in _call_instance_or_function(
            loading_data, search_modules, **kwargs
        ):
            instance_list.append(instance)
    else:
        TypeError
    return instance_list
def yaml2instances ( loading_data : Union [ dict , List [ dict ] ] , search_modules : List [ ModuleType ] , ** kwargs ) -> list : warnings . warn ( "yaml2instances is deprecated. Use call_multiple_process." ) instance_list = [ ] if isinstance ( loading_data , list ) : for conf in loading_data : for instance in _call_instance_or_function ( conf , search_modules , ** kwargs ) : instance_list . append ( instance ) elif isinstance ( loading_data , dict ) : for instance in _call_instance_or_function ( loading_data , search_modules , ** kwargs ) : instance_list . append ( instance ) else : TypeError return instance_list
From the list of modules, find the class written in yaml and instantiate it.
From the list of modules find the class written in yaml and instantiate it .
"""From the list of modules, find the class written in yaml and instantiate it."""
loading_data
Union[dict, List[dict]]
search_modules
List[ModuleType]