PySimultan 0.4.3__py3-none-any.whl → 0.4.4__py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- PySimultan2/__about__.py +1 -1
- PySimultan2/__init__.py +12 -6
- {pysimultan-0.4.3.dist-info → pysimultan-0.4.4.dist-info}/METADATA +1 -1
- {pysimultan-0.4.3.dist-info → pysimultan-0.4.4.dist-info}/RECORD +6 -6
- {pysimultan-0.4.3.dist-info → pysimultan-0.4.4.dist-info}/WHEEL +0 -0
- {pysimultan-0.4.3.dist-info → pysimultan-0.4.4.dist-info}/licenses/LICENSE.txt +0 -0
PySimultan2/__about__.py
CHANGED
@@ -1 +1 @@
|
|
1
|
-
version = '0.4.
|
1
|
+
version = '0.4.4'
|
PySimultan2/__init__.py
CHANGED
@@ -1,8 +1,12 @@
|
|
1
1
|
import os
|
2
2
|
import sys
|
3
3
|
import colorlog
|
4
|
-
|
5
|
-
|
4
|
+
from ruamel.yaml import YAML, add_representer
|
5
|
+
|
6
|
+
from typing import TYPE_CHECKING
|
7
|
+
if TYPE_CHECKING:
|
8
|
+
from .data_model import DataModel
|
9
|
+
from .object_mapper import PythonMapper
|
6
10
|
|
7
11
|
def setup_logging():
|
8
12
|
handler = colorlog.StreamHandler()
|
@@ -85,16 +89,18 @@ class Config:
|
|
85
89
|
self._default_mapper = None
|
86
90
|
self.logger = logger
|
87
91
|
|
88
|
-
def get_default_data_model(self, *args, **kwargs):
|
92
|
+
def get_default_data_model(self, *args, **kwargs) -> 'DataModel':
|
89
93
|
return self._default_data_model
|
90
94
|
|
91
|
-
def get_default_mapper(self, *args, **kwargs):
|
95
|
+
def get_default_mapper(self, *args, **kwargs) -> 'PythonMapper':
|
92
96
|
return self._default_mapper
|
93
97
|
|
94
|
-
def set_default_data_model(self, data_model):
|
98
|
+
def set_default_data_model(self, data_model: 'DataModel'):
|
99
|
+
self.logger.debug(f'set_default_data_model: {id(data_model)}')
|
95
100
|
self._default_data_model = data_model
|
96
101
|
|
97
|
-
def set_default_mapper(self, mapper):
|
102
|
+
def set_default_mapper(self, mapper: 'PythonMapper'):
|
103
|
+
self.logger.debug(f'set_default_model: {id(mapper)}')
|
98
104
|
self._default_mapper = mapper
|
99
105
|
|
100
106
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.3
|
2
2
|
Name: PySimultan
|
3
|
-
Version: 0.4.
|
3
|
+
Version: 0.4.4
|
4
4
|
Project-URL: Documentation, https://github.com/Bühler Maximilian/PySimultan2#readme
|
5
5
|
Project-URL: Issues, https://github.com/Bühler Maximilian/PySimultan2/issues
|
6
6
|
Project-URL: Source, https://github.com/Bühler Maximilian/PySimultan2
|
@@ -1,5 +1,5 @@
|
|
1
|
-
PySimultan2/__about__.py,sha256=
|
2
|
-
PySimultan2/__init__.py,sha256=
|
1
|
+
PySimultan2/__about__.py,sha256=RwaUDZkdRtoi8pyQVrSiEtzw9q_PCdOE9ss7GpWaKIw,19
|
2
|
+
PySimultan2/__init__.py,sha256=HwoNLP41zezJFN1gJrCiN2lFtYIj47xm4P43J5bl_Ug,3174
|
3
3
|
PySimultan2/data_model.py,sha256=m9q3P5SfxYXdmwdQuPoTazHZAJ1xwazixFtdetJ2Dgk,26968
|
4
4
|
PySimultan2/default_types.py,sha256=v_4awsUURLbu4Sfw7J_7BoQKirXbKdU9s7-wqgA4nNE,23112
|
5
5
|
PySimultan2/files.py,sha256=gx3BA6WYjNVplqqes7jkPopp6O50pgLvantXgmitx54,12657
|
@@ -75,7 +75,7 @@ PySimultan2/resources/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3h
|
|
75
75
|
PySimultan2/resources/assimp.dll,sha256=HwfDwXqoPDTFRyoQpA3qmgZoUdFtziJkV5fNtktEZEU,6081536
|
76
76
|
PySimultan2/resources/defaultsettings.xml,sha256=s6Tk1tubLz5UYqXZWpD42EDHzedemRY1nEneoIVcUfg,392
|
77
77
|
PySimultan2/resources/setup.bat,sha256=fjvvYfVM6TalS-QTSiKAbAId5nTsk8kGGo06ba-wWaY,32
|
78
|
-
pysimultan-0.4.
|
79
|
-
pysimultan-0.4.
|
80
|
-
pysimultan-0.4.
|
81
|
-
pysimultan-0.4.
|
78
|
+
pysimultan-0.4.4.dist-info/METADATA,sha256=Ircg-qlFiM1A3IxrcFpM7zEeRinZdufhYRWuMzCKrFI,1657
|
79
|
+
pysimultan-0.4.4.dist-info/WHEEL,sha256=zEMcRr9Kr03x1ozGwg5v9NQBKn3kndp6LSoSlVg-jhU,87
|
80
|
+
pysimultan-0.4.4.dist-info/licenses/LICENSE.txt,sha256=pmSr98k6N005KMojnZxzLGRuRlDjDx3PUrK1lFj53HA,1126
|
81
|
+
pysimultan-0.4.4.dist-info/RECORD,,
|
File without changes
|
File without changes
|