PySimultan 0.6.0.2__py3-none-any.whl → 0.6.0.3__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.
PySimultan2/__about__.py CHANGED
@@ -1 +1 @@
1
- version = '0.6.0.2'
1
+ version = '0.6.0.3'
PySimultan2/files.py CHANGED
@@ -219,6 +219,15 @@ def add_directory(data_model: DataModel,
219
219
 
220
220
 
221
221
  class MetaMock(type):
222
+
223
+ @property
224
+ def cls_instances(cls) -> list['SimultanObject']:
225
+ try:
226
+ return list(cls._cls_instances)
227
+ except Exception as e:
228
+ logger.error(f'Error getting cls_instances: {e}')
229
+ return []
230
+
222
231
  def __call__(cls, *args, **kwargs):
223
232
  resource_entry = kwargs.get('resource_entry', None)
224
233
  if resource_entry is not None and hasattr(resource_entry, 'Key'):
@@ -235,6 +244,14 @@ class MetaMock(type):
235
244
 
236
245
  class DirectoryInfoMetaMock(type):
237
246
 
247
+ @property
248
+ def cls_instances(cls) -> list['SimultanObject']:
249
+ try:
250
+ return list(cls._cls_instances)
251
+ except Exception as e:
252
+ logger.error(f'Error getting cls_instances: {e}')
253
+ return []
254
+
238
255
  def __call__(cls, *args, **kwargs):
239
256
  resource_entry: Optional[ResourceDirectoryEntry] = kwargs.get('resource_entry', None)
240
257
  if resource_entry is not None and hasattr(resource_entry, 'Key'):
@@ -252,6 +269,7 @@ class DirectoryInfoMetaMock(type):
252
269
  class FileInfo(object, metaclass=MetaMock):
253
270
 
254
271
  _cls_instances = {}
272
+ _taxonomy = 'FileInfo'
255
273
 
256
274
  @classmethod
257
275
  def from_string(cls,
@@ -542,6 +560,7 @@ class FileInfo(object, metaclass=MetaMock):
542
560
  class DirectoryInfo(object, metaclass=DirectoryInfoMetaMock):
543
561
 
544
562
  _cls_instances = {}
563
+ _taxonomy = 'DirectoryInfo'
545
564
 
546
565
  @classmethod
547
566
  def get_by_key(cls, key: int) -> Optional[DirectoryInfo]:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: PySimultan
3
- Version: 0.6.0.2
3
+ Version: 0.6.0.3
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,9 +1,9 @@
1
1
  PySimultan2/CHANGELOG.md,sha256=LEcptxMV0qCU5AyEhqo-k6pM1OfssnIV_aOdCbAS1ws,992
2
- PySimultan2/__about__.py,sha256=QXM1oo0_xs6vzYbSga3UHP9joSvuNytEwvVmIDoAR6w,21
2
+ PySimultan2/__about__.py,sha256=ZpBvKMWxVDdgGdP14-was76qMm2mO7lxmiXLFLBweKE,21
3
3
  PySimultan2/__init__.py,sha256=PGVR1uhY01dF5tHyad-znURUZ_LVB95vsjId2BT0aJM,3245
4
4
  PySimultan2/data_model.py,sha256=4TNhL_YnP7gYVEqIHAVjjmOYoEkKnU0daip0DvANdeE,37959
5
5
  PySimultan2/default_types.py,sha256=twkiexHeMgh20o406OYvsV9eiYy4jZxVeuyl48aLvpI,29231
6
- PySimultan2/files.py,sha256=bDBaPjO4dpkuMepDYvcKSiJzo8w-sj3_hUHIF0QlEJ8,28810
6
+ PySimultan2/files.py,sha256=nlfZpcdbQ1FxF7yK-ioS1mC5KejSQ-3wsnb-z3vrTWs,29371
7
7
  PySimultan2/multi_values.py,sha256=ZFXlTLuZo32x7_7diYAp2XEjp5uwgHLgNOzN7v74-5I,13650
8
8
  PySimultan2/object_mapper.py,sha256=Oz5KWvCzrYVb0ILj_WHuRarYIvVxOUGDGNeIVm5bGNQ,19839
9
9
  PySimultan2/simultan_object.py,sha256=7g-1VK6P3xotwP-IMz0QFiSiRlk3AXMtcoWpf0KcYQg,19278
@@ -70,7 +70,7 @@ PySimultan2/resources/assimp.dll,sha256=HwfDwXqoPDTFRyoQpA3qmgZoUdFtziJkV5fNtktE
70
70
  PySimultan2/resources/componentmanager.user,sha256=hrzr1US4pqkFnLHXcvPkvrgGd7QvlxaV8mhS6fuikEs,760
71
71
  PySimultan2/resources/defaultsettings.xml,sha256=QCkKmhNMxwSvC-aYUUMhkCkXqRSrkuFt5s4FEI5x1wo,396
72
72
  PySimultan2/resources/setup.bat,sha256=fjvvYfVM6TalS-QTSiKAbAId5nTsk8kGGo06ba-wWaY,32
73
- pysimultan-0.6.0.2.dist-info/METADATA,sha256=u3OsmNWdcPANG3OEVBNHp88k_u6lBQBMTwgHGojY_4Q,6550
74
- pysimultan-0.6.0.2.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
75
- pysimultan-0.6.0.2.dist-info/licenses/LICENSE.txt,sha256=pmSr98k6N005KMojnZxzLGRuRlDjDx3PUrK1lFj53HA,1126
76
- pysimultan-0.6.0.2.dist-info/RECORD,,
73
+ pysimultan-0.6.0.3.dist-info/METADATA,sha256=2hk9QTaFh2eV6yYWCmUtPHhJ5PwIcNJUT5piAT51_S4,6550
74
+ pysimultan-0.6.0.3.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
75
+ pysimultan-0.6.0.3.dist-info/licenses/LICENSE.txt,sha256=pmSr98k6N005KMojnZxzLGRuRlDjDx3PUrK1lFj53HA,1126
76
+ pysimultan-0.6.0.3.dist-info/RECORD,,