Spaces:
Runtime error
Runtime error
Create utils.py
Browse files- model/utils.py +7 -0
model/utils.py
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
|
| 3 |
+
class AttributeDict(dict):
|
| 4 |
+
"""dot.notation access to dictionary attributes"""
|
| 5 |
+
__getattr__ = dict.get
|
| 6 |
+
__setattr__ = dict.__setitem__
|
| 7 |
+
__delattr__ = dict.__delitem__
|