aboutsummaryrefslogtreecommitdiff
path: root/wqflask/utility/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'wqflask/utility/__init__.py')
-rwxr-xr-xwqflask/utility/__init__.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/wqflask/utility/__init__.py b/wqflask/utility/__init__.py
new file mode 100755
index 00000000..d0e4a3fa
--- /dev/null
+++ b/wqflask/utility/__init__.py
@@ -0,0 +1,12 @@
+from pprint import pformat as pf
+
+
+class Bunch(object):
+ """Like a dictionary but using object notation"""
+ def __init__(self, **kw):
+ self.__dict__ = kw
+
+ def __repr__(self):
+ return pf(self.__dict__)
+
+