edifice.PropsDict

class edifice.PropsDict(dictionary)[source]

Bases: object

An immutable dictionary for storing props.

Props may be accessed either by indexing (props[“myprop”]) or by attribute (props.myprop).

By convention, all PropsDict methods will start with _ to not conflict with keys.

property _keys

Returns the keys of the props dict as a list.

Return type

Iterator

property _items

Returns the (key, value) of the props dict as a list.

Return type

Iterator

Parameters

dictionary (Mapping[str, Any]) –