yaml
Wrapper for YamlDotNet.
Attributes
Functions
load(yaml_file)
Load Yaml file into YamlDotNet object.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
yaml_file |
str
|
file path to yaml file |
required |
Returns:
Type | Description |
---|---|
YamlMappingNode
|
yaml node |
Source code in pyrevitlib/pyrevit/coreutils/yaml.py
load_as_dict(yaml_file)
Load Yaml file into python dict object.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
yaml_file |
str
|
file path to yaml file |
required |
Returns:
Type | Description |
---|---|
dict[str, Any]
|
dictionary representing yaml data |
Source code in pyrevitlib/pyrevit/coreutils/yaml.py
dump_dict(dict_object, yaml_file)
Save YamlDotNet object to Yaml file.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
dict_object |
dict
|
dict object to be serialized into yaml |
required |
yaml_file |
str
|
file path to yaml file |
required |