class documentation

A class that wraps a dict and allows accessing the keys of the dict as if they were attributes. Taken from here: http://stackoverflow.com/a/14620633/8879 >>> foo = {'a':1, 'b':2, 'c':3} >>> bar = AttrDict(foo) >>> pprint(dict(bar)) {'a': 1, 'b': 2, 'c': 3} >>> bar.b 2 >>> bar.d = 4 >>> pprint(dict(bar)) {'a': 1, 'b': 2, 'c': 3, 'd': 4}

Method __getattr__ Undocumented
Method __getitem__ Undocumented
Method __init__ Undocumented
Method __repr__ Undocumented
Method __setattr__ Undocumented
Method __str__ Undocumented
Method _short_repr Undocumented
Method _str Undocumented
def __getattr__(self, name): (source)

Undocumented

def __getitem__(self, name): (source)

Undocumented

def __init__(self, *args, **kwargs): (source)

Undocumented

def __repr__(self): (source)

Undocumented

def __setattr__(self, name, value): (source)

Undocumented

def __str__(self): (source)

Undocumented

def _short_repr(self): (source)

Undocumented

def _str(self): (source)

Undocumented