class foxes.utils.Dict(dict)[source]

A slightly enhanced dictionary.

Public members

Dict(*args, _name=None, **kwargs)[source]

Constructor.

property name

The dictionary name

get_item(key, *deflt, prnt=True)[source]

Gets an item, prints readable error if not found

pop_item(key, *deflt, prnt=True)[source]

Pops an item, prints readable error if not found

__setitem__(key, value)[source]

Set self[key] to value.

__getitem__(key)[source]

x.__getitem__(y) <==> x[y]

update(*args, **kwargs)[source]

Update the dictionary with the key/value pairs from other, overwriting existing keys.

eval(globals=None, locals=None)[source]

Tries to evaluate all string values, recursively.

classmethod from_yaml(yml_file, verbosity=1)[source]

Reads a yaml file