Lines Matching full:yaml
12 import yaml
16 from yaml import CLoader as Loader
17 from yaml import CSafeLoader as SafeLoader
18 from yaml import CDumper as Dumper
20 from yaml import Loader, SafeLoader, Dumper
33 Safely load a YAML document
39 :raises yaml.scanner: On YAML scan issues
41 :return: dictionary representing the YAML document
45 return yaml.load(f, Loader=SafeLoader)
46 except yaml.scanner.ScannerError as e: # For errors parsing schema.yaml
68 log.warning("can't import pykwalify; won't validate YAML (%s)", e)
74 Safely load a testcase/sample yaml document and validate it
75 against the YAML schema, returning in case of success the YAML data.
78 :param dict schema: loaded YAML schema (can load with :func:`yaml_load`)
80 # 'document.yaml' contains a single YAML document.
81 :raises yaml.scanner.ScannerError: on YAML parsing error
84 # 'document.yaml' contains a single YAML document.
87 raise EmptyYamlFileException('No data in YAML file: %s' % filename)