tilupy 2.0.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
tilupy/__init__.py ADDED
@@ -0,0 +1,23 @@
1
+ _default_config = dict(language='english')
2
+
3
+ class Config(dict):
4
+
5
+ def __init__(self, **kwargs):
6
+ for key in kwargs:
7
+ self[key] = kwargs[key]
8
+
9
+ def update(self, **kwargs):
10
+ for key in kwargs:
11
+ self[key] = kwargs[key]
12
+
13
+ config = Config(**_default_config)
14
+
15
+ def set_config(**kwargs):
16
+ config.update(**kwargs)
17
+
18
+ if 'language' in kwargs:
19
+ import tilupy.notations
20
+ tilupy.notations.set_labels()
21
+
22
+ #import tilupy.notations
23
+