kabbes_config package

Subpackages

Submodules

kabbes_config.Config module

class kabbes_config.Config.Config(**kwargs)[source]

Bases: Node

kabbes_config.Node module

class kabbes_config.Node.Node(key, parent=None, value=None, dict={})[source]

Bases: ParentClass

adopt(node)[source]

adopt a new child node onto self

get_args()[source]
get_dict(**kwargs)[source]
get_eval_dict()[source]
get_key(key: str, ref=True)[source]
get_kwargs()[source]
get_node(key: str, **kwargs)[source]

level1.level2.level3

get_parents()[source]

returns list of parent node instances, including self

get_raw_dict()[source]
get_raw_value()[source]
get_ref_dict()[source]
get_ref_value()[source]
get_root()[source]
get_value(**kwargs)[source]
has_key(key: str) bool[source]
load_dict(dict)[source]
make_Node(*args, **kwargs)[source]

makes a child node and adds it to nodes, do not pass ‘.’ separated keys

merge(node)[source]
print_imp_atts(tab=0, ref=False, eval=False, **override_kwargs)[source]

Prints off (or returns a string) with the ‘important’ information about a class Most child classes will redefine this method with custom attributes to print off

set_key(key: str, value)[source]
set_value(value)[source]
walk(leaves: bool = True, branches: bool = True)[source]

returns a list of nodes underneath self, including self

kabbes_config.Nodes module

class kabbes_config.Nodes.Nodes(Node)[source]

Bases: ParentPluralDict

Module contents