PropertyDict

phasic.PropertyDict()

Dict subclass that provides attribute access to keys.

Used to wrap property dictionaries for convenient attribute-style access.

Examples

>>> props = PropertyDict({'descendants': 5, 'population': 1})
>>> props.descendants  # Instead of props['descendants']
5
>>> props.population = 2
>>> props['population']
2