pyconfs/readers/yaml.py
def from_yaml(string: str, Loader: Any = None, **yaml_args: Any) -> Dict[str, Any]:
    """Use PyYAML library to read YAML file"""
    Loader = yaml.FullLoader if Loader is None else Loader

    try:
        return yaml.load(string, Loader=Loader, **yaml_args)
    except yaml.composer.ComposerError:
        return next(yaml.load_all(string, Loader=Loader, **yaml_args))
Use PyYAML library to read YAML file
Use PyYAML library to read YAML file
Use PyYAML library to read YAML file
def from_yaml(string: str, Loader: Any = None, **yaml_args: Any) -> Dict[str, Any]:
    Loader = yaml.FullLoader if Loader is None else Loader
    try:
        return yaml.load(string, Loader=Loader, **yaml_args)
    except yaml.composer.ComposerError:
        return next(yaml.load_all(string, Loader=Loader, **yaml_args))
def from_yaml ( string : str , Loader : Any = None , ** yaml_args : Any ) -> Dict [ str , Any ] : Loader = yaml . FullLoader if Loader is None else Loader try : return yaml . load ( string , Loader = Loader , ** yaml_args ) except yaml . composer . ComposerError : return next ( yaml . load_all ( string , Loader = Loader , ** yaml_args ) )
Use PyYAML library to read YAML file
Use PyYAML library to read YAML file
"""Use PyYAML library to read YAML file"""
string
str
Loader
Any
yaml_args
Any