arpakitlib 1.7.137__py3-none-any.whl → 1.7.138__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.
- arpakitlib/_arpakit_project_template/src/core/util.py +3 -0
- arpakitlib/ar_enumeration_util.py +19 -1
- {arpakitlib-1.7.137.dist-info → arpakitlib-1.7.138.dist-info}/METADATA +1 -1
- {arpakitlib-1.7.137.dist-info → arpakitlib-1.7.138.dist-info}/RECORD +7 -7
- {arpakitlib-1.7.137.dist-info → arpakitlib-1.7.138.dist-info}/LICENSE +0 -0
- {arpakitlib-1.7.137.dist-info → arpakitlib-1.7.138.dist-info}/WHEEL +0 -0
- {arpakitlib-1.7.137.dist-info → arpakitlib-1.7.138.dist-info}/entry_points.txt +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
# arpakit
|
2
2
|
|
3
|
-
from typing import Union, Iterator, Iterable
|
3
|
+
from typing import Union, Iterator, Iterable, Any
|
4
4
|
|
5
5
|
_ARPAKIT_LIB_MODULE_VERSION = "3.0"
|
6
6
|
|
@@ -80,6 +80,24 @@ class Enumeration:
|
|
80
80
|
def print(cls):
|
81
81
|
print(cls.str_for_print())
|
82
82
|
|
83
|
+
@classmethod
|
84
|
+
def key_to_value(cls) -> dict[str, Any]:
|
85
|
+
big_dict = {}
|
86
|
+
for class_ in reversed(cls.mro()):
|
87
|
+
big_dict.update(class_.__dict__)
|
88
|
+
big_dict.update(cls.__dict__)
|
89
|
+
|
90
|
+
result = {}
|
91
|
+
for key, value in big_dict.items():
|
92
|
+
if (
|
93
|
+
isinstance(key, str)
|
94
|
+
and not (key.startswith("__") or key.endswith("__"))
|
95
|
+
and isinstance(value, (str, int))
|
96
|
+
):
|
97
|
+
result[key] = value
|
98
|
+
|
99
|
+
return result
|
100
|
+
|
83
101
|
|
84
102
|
def __example():
|
85
103
|
pass
|
@@ -90,7 +90,7 @@ arpakitlib/_arpakit_project_template/src/core/check_settings.py,sha256=hiRDvMLdE
|
|
90
90
|
arpakitlib/_arpakit_project_template/src/core/const.py,sha256=86zjRG3umtjQWYUMPKGaNwHnXM-WSOF-2l0A-Le51kI,1504
|
91
91
|
arpakitlib/_arpakit_project_template/src/core/generate_settings_env_example.py,sha256=VFxb3tV2eNfE93cn2rCIiLsRLx5eGgugnpak9OBKoro,485
|
92
92
|
arpakitlib/_arpakit_project_template/src/core/settings.py,sha256=Sie05LqTfxBOqnYz8trM3sAQdfYAJSQ2Xv4Xwt0aJbI,2348
|
93
|
-
arpakitlib/_arpakit_project_template/src/core/util.py,sha256=
|
93
|
+
arpakitlib/_arpakit_project_template/src/core/util.py,sha256=mcikqcjljZa2qhYeoR1tR9JUSprrVSod8XcIK_PqS6o,1547
|
94
94
|
arpakitlib/_arpakit_project_template/src/db/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
95
95
|
arpakitlib/_arpakit_project_template/src/db/check_conn_sqlalchemy_db.py,sha256=urdfQQxAdHNka6nwkxv1YG8cMsRKr8U6ddDxU92eWh4,251
|
96
96
|
arpakitlib/_arpakit_project_template/src/db/const.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
@@ -129,7 +129,7 @@ arpakitlib/ar_datetime_util.py,sha256=Xe1NiT9oPQzNSG7RVRkhukhbg4i-hhS5ImmV7sPUc8
|
|
129
129
|
arpakitlib/ar_dict_util.py,sha256=cF5LQJ6tLqyGoEXfDljMDZrikeZoWPw7CgINHIFGvXM,419
|
130
130
|
arpakitlib/ar_dream_ai_api_client_util.py,sha256=QF9XK7xK5ny1fvkcG4e0pfCySNNFRNPy0x0cmxfsAak,2818
|
131
131
|
arpakitlib/ar_encrypt_decrypt_util.py,sha256=GhWnp7HHkbhwFVVCzO1H07m-5gryr4yjWsXjOaNQm1Y,520
|
132
|
-
arpakitlib/ar_enumeration_util.py,sha256=
|
132
|
+
arpakitlib/ar_enumeration_util.py,sha256=ZOkH1-duDcjQelJrdJ-nJ8h7wePFAgmpg_8e63Cyp0E,3072
|
133
133
|
arpakitlib/ar_exception_util.py,sha256=3hZKsj34TZVdmd4JAQz7w515smWqB8o3gTwAEjuMdnI,408
|
134
134
|
arpakitlib/ar_fastapi_static/healthcheck,sha256=IIO7Wvjwlr2-LPSQ7Y8O35hcI6t0_s8zqITDxkYCO8I,11
|
135
135
|
arpakitlib/ar_fastapi_static/redoc/redoc.standalone.js,sha256=WCuodUNv1qVh0oW5fjnJDwb5AwOue73jKHdI9z8iGKU,909365
|
@@ -181,8 +181,8 @@ arpakitlib/ar_str_util.py,sha256=yU5gOwNXUQaH5b_tM5t6fXUn9oUcv5EQbVnq2wXXIpQ,337
|
|
181
181
|
arpakitlib/ar_type_util.py,sha256=9C3ErtUVs0tAUqtK-foFzjJOykfBOntfCz2IogDOgfA,4134
|
182
182
|
arpakitlib/ar_yookassa_api_client_util.py,sha256=sh4fcUkAkdOetFn9JYoTvjcSXP-M1wU04KEY-ECLfLg,5137
|
183
183
|
arpakitlib/ar_zabbix_api_client_util.py,sha256=Q-VR4MvoZ9aHwZeYZr9G3LwN-ANx1T5KFmF6pvPM-9M,6402
|
184
|
-
arpakitlib-1.7.
|
185
|
-
arpakitlib-1.7.
|
186
|
-
arpakitlib-1.7.
|
187
|
-
arpakitlib-1.7.
|
188
|
-
arpakitlib-1.7.
|
184
|
+
arpakitlib-1.7.138.dist-info/LICENSE,sha256=GPEDQMam2r7FSTYqM1mm7aKnxLaWcBotH7UvQtea-ec,11355
|
185
|
+
arpakitlib-1.7.138.dist-info/METADATA,sha256=gELWwrKozBTenYlRYWIqaVI13g4suux74WX_FYISLM0,3176
|
186
|
+
arpakitlib-1.7.138.dist-info/WHEEL,sha256=IYZQI976HJqqOpQU6PHkJ8fb3tMNBFjg-Cn-pwAbaFM,88
|
187
|
+
arpakitlib-1.7.138.dist-info/entry_points.txt,sha256=36xqR3PJFT2kuwjkM_EqoIy0qFUDPKSm_mJaI7emewE,87
|
188
|
+
arpakitlib-1.7.138.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|