rawnodes
Module implementing convenience methods for dealing with ruamel.yaml
Node
s
get_entries(node)
get_entry(node, key, *, default=Ellipsis)
Get a (key, value) entry from a map
node.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
default |
return this value instead of |
Ellipsis
|
Raise
KeyError
if key not found and default
not provided
Source code in gamma/config/rawnodes.py
get_id(a)
get_item(node, key, *, default=Ellipsis)
Get a single child node item from map
node
Source code in gamma/config/rawnodes.py
get_keys(node)
get_values(node)
is_in(node, container)
union_nodes(first, second)
Union two sets of nodes.
By default we keep the ones in first
if equals.