This repository has been archived on 2024-05-17. You can view files and clone it, but cannot push or open issues or pull requests.
|
class AttrDict(dict):
|
|
"""This dict-based class allows accessing keys like attributes
|
|
https://stackoverflow.com/questions/4984647/accessing-dict-keys-like-an-attribute
|
|
"""
|
|
|
|
def __init__(self, *args, **kwargs):
|
|
super().__init__(*args, **kwargs)
|
|
self.__dict__ = self
|