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

A dictionary with factory support

Attributes

store_created: bool

Flag for storing created objects

factories: list of foxes.utils.Factory

The factories

Public members

FDict(*args, store_created=True, **kwargs)[source]

Constructor.

add_factory(*args, factory=None, **kwargs)[source]

Adds a Factory object.

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

Adds a WakeKFactory.

__contains__(key)[source]

True if the dictionary has the specified key, else False.

get_item(key, prnt=True)[source]

Gets an item, prints readable error if not found

__getitem__(key)[source]

Return self[key].