yaml.encode
yaml.encode(object)
Converts the given object into a YAML-encoded string.
yaml.encode supports objects such as lists and dictionaries, and basic types such as int, string, and so on, including nested lists and dictionaries.
To encode attributes from a node, create a dictionary of the required attributes and encode the dictionary. If you attempt to encode a node, the function returns none.
Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*