pigeon.utils.common

List of classes that represent rather abstract data types

Module Contents

class pigeon.utils.common.ParameterDict(data: dict = None)

Bases: collections.UserDict

Similar to a dictionary, but items can also be accessed using <dict>.<key>. If accessed as described above, the dict will return the value or None if no matching item is found.

keys()

D.keys() -> a set-like object providing a view on D’s keys

items()

D.items() -> a set-like object providing a view on D’s items

values()

D.values() -> an object providing a view on D’s values

class pigeon.utils.common.LowerParameterDict(data: dict = None)

Bases: ParameterDict

Similar to ParameterDict, but all keys will be changed to lowercase and any dashes ‘-’ in keys will be changed to underscores ‘_’.