pylupnt.Config

class pylupnt.Config

YAML-backed config node with dict- and attribute-style access.

copy(self: pylupnt._pylupnt.Config) pylupnt._pylupnt.Config

Create a deep copy of the config

get(self: pylupnt._pylupnt.Config, key: str, default: object = None) object

Get a value by key, returning default if missing.

items(self: pylupnt._pylupnt.Config) list

List of (key, value) pairs.

keys(self: pylupnt._pylupnt.Config) list

List of top-level keys.

to_dict(self: pylupnt._pylupnt.Config) dict

Convert the config to a Python dict.

to_string(self: pylupnt._pylupnt.Config) str

Serialize the config to a YAML string.

update(self: pylupnt._pylupnt.Config, arg0: dict) None

Replace the config contents from a dict.

values(self: pylupnt._pylupnt.Config) list

List of top-level values.