pyquoks 2.3.2__py3-none-any.whl → 2.3.2.1__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.
- pyquoks/data.py +8 -1
- {pyquoks-2.3.2.dist-info → pyquoks-2.3.2.1.dist-info}/METADATA +1 -1
- pyquoks-2.3.2.1.dist-info/RECORD +9 -0
- pyquoks-2.3.2.dist-info/RECORD +0 -9
- {pyquoks-2.3.2.dist-info → pyquoks-2.3.2.1.dist-info}/WHEEL +0 -0
- {pyquoks-2.3.2.dist-info → pyquoks-2.3.2.1.dist-info}/licenses/LICENSE +0 -0
pyquoks/data.py
CHANGED
|
@@ -331,7 +331,14 @@ class ConfigManager(utils._HasRequiredAttributes):
|
|
|
331
331
|
|
|
332
332
|
setattr(self, attribute, value)
|
|
333
333
|
|
|
334
|
-
|
|
334
|
+
match object_type():
|
|
335
|
+
case bool() | int() | float() | str():
|
|
336
|
+
self._config.set(self._SECTION, attribute, str(value))
|
|
337
|
+
case dict() | list():
|
|
338
|
+
self._config.set(self._SECTION, attribute, json.dumps(value))
|
|
339
|
+
case _:
|
|
340
|
+
raise ValueError(f"{object_type.__name__} type is not supported!")
|
|
341
|
+
|
|
335
342
|
with open(self._parent._PATH, "w", encoding="utf-8") as file:
|
|
336
343
|
self._config.write(file)
|
|
337
344
|
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
pyquoks/__init__.py,sha256=hTEfFbalsc5BrQwTCb85Fq-eHRn3Oq3OnsVaQ8ZOuNY,162
|
|
2
|
+
pyquoks/data.py,sha256=bYS_iXOcH5bVqBdKi9xOdlKaUjerTolgrP2N2idhv-Y,19459
|
|
3
|
+
pyquoks/localhost.py,sha256=8exOFW_4uycDvlZTaVgtirWWD4mjuzrqPZvyFYsRD5g,1053
|
|
4
|
+
pyquoks/test.py,sha256=risnmQyfg4TYoXx5b6RNvH0bTZpYBAWbmRRzqqKDeSQ,3418
|
|
5
|
+
pyquoks/utils.py,sha256=shCyMYgpg8pGSJLuHqO4nEWDeTOAc7b5BjlgDVhvZV4,1861
|
|
6
|
+
pyquoks-2.3.2.1.dist-info/licenses/LICENSE,sha256=WYK66zwaBlCe_GnOwRCLlJCQibJ8oyqvpZ1CCsrcg2k,1095
|
|
7
|
+
pyquoks-2.3.2.1.dist-info/METADATA,sha256=terCfIrcr2GTmutoALMjf9Y9CtHvdxjk4dHwa3C85jg,1866
|
|
8
|
+
pyquoks-2.3.2.1.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
|
|
9
|
+
pyquoks-2.3.2.1.dist-info/RECORD,,
|
pyquoks-2.3.2.dist-info/RECORD
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
pyquoks/__init__.py,sha256=hTEfFbalsc5BrQwTCb85Fq-eHRn3Oq3OnsVaQ8ZOuNY,162
|
|
2
|
-
pyquoks/data.py,sha256=pYsDd4YZZgcFebLhGwvKTfNzLtRHVBT6oSWwyznOSjo,19095
|
|
3
|
-
pyquoks/localhost.py,sha256=8exOFW_4uycDvlZTaVgtirWWD4mjuzrqPZvyFYsRD5g,1053
|
|
4
|
-
pyquoks/test.py,sha256=risnmQyfg4TYoXx5b6RNvH0bTZpYBAWbmRRzqqKDeSQ,3418
|
|
5
|
-
pyquoks/utils.py,sha256=shCyMYgpg8pGSJLuHqO4nEWDeTOAc7b5BjlgDVhvZV4,1861
|
|
6
|
-
pyquoks-2.3.2.dist-info/licenses/LICENSE,sha256=WYK66zwaBlCe_GnOwRCLlJCQibJ8oyqvpZ1CCsrcg2k,1095
|
|
7
|
-
pyquoks-2.3.2.dist-info/METADATA,sha256=bZqJ1iQj0msdWLvi-TD76QIqzcQ31hVoFLkpGsDNAdA,1864
|
|
8
|
-
pyquoks-2.3.2.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
|
|
9
|
-
pyquoks-2.3.2.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|