arpakitlib 1.7.229__py3-none-any.whl → 1.7.231__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/ar_fastapi_util.py +6 -2
- arpakitlib/ar_logging_util.py +2 -2
- arpakitlib/ar_retry_func_util.py +5 -0
- {arpakitlib-1.7.229.dist-info → arpakitlib-1.7.231.dist-info}/METADATA +1 -1
- {arpakitlib-1.7.229.dist-info → arpakitlib-1.7.231.dist-info}/RECORD +8 -8
- {arpakitlib-1.7.229.dist-info → arpakitlib-1.7.231.dist-info}/LICENSE +0 -0
- {arpakitlib-1.7.229.dist-info → arpakitlib-1.7.231.dist-info}/WHEEL +0 -0
- {arpakitlib-1.7.229.dist-info → arpakitlib-1.7.231.dist-info}/entry_points.txt +0 -0
arpakitlib/ar_fastapi_util.py
CHANGED
@@ -388,6 +388,10 @@ class HealthcheckSO(BaseSO):
|
|
388
388
|
is_ok: bool = True
|
389
389
|
|
390
390
|
|
391
|
+
class ARPAKITLibSO(BaseSO):
|
392
|
+
arpakitlib: bool = True
|
393
|
+
|
394
|
+
|
391
395
|
def add_needed_api_router_to_app(*, app: FastAPI):
|
392
396
|
api_router = APIRouter()
|
393
397
|
|
@@ -405,14 +409,14 @@ def add_needed_api_router_to_app(*, app: FastAPI):
|
|
405
409
|
|
406
410
|
@api_router.get(
|
407
411
|
"/arpakitlib",
|
408
|
-
response_model=
|
412
|
+
response_model=ARPAKITLibSO | ErrorSO,
|
409
413
|
status_code=starlette.status.HTTP_200_OK,
|
410
414
|
tags=["arpakitlib"]
|
411
415
|
)
|
412
416
|
async def _():
|
413
417
|
return APIJSONResponse(
|
414
418
|
status_code=starlette.status.HTTP_200_OK,
|
415
|
-
content=
|
419
|
+
content=ARPAKITLibSO(arpakitlib=True)
|
416
420
|
)
|
417
421
|
|
418
422
|
app.include_router(router=api_router, prefix="")
|
arpakitlib/ar_logging_util.py
CHANGED
@@ -11,8 +11,8 @@ def init_log_file(*, log_filepath: str):
|
|
11
11
|
directory = os.path.dirname(log_filepath)
|
12
12
|
if directory and not os.path.exists(directory):
|
13
13
|
os.makedirs(directory, exist_ok=True)
|
14
|
-
if not os.path.exists(
|
15
|
-
with open(
|
14
|
+
if not os.path.exists(log_filepath):
|
15
|
+
with open(log_filepath, mode="w") as file:
|
16
16
|
file.write("")
|
17
17
|
|
18
18
|
|
arpakitlib/ar_retry_func_util.py
CHANGED
@@ -167,7 +167,7 @@ arpakitlib/ar_fastapi_static/swagger-ui/swagger-ui.css,sha256=jzPZlgJTFwSdSphk9C
|
|
167
167
|
arpakitlib/ar_fastapi_static/swagger-ui/swagger-ui.css.map,sha256=5wq8eXMLU6Zxb45orZPL1zAsBFJReFw6GjYqGpUX3hg,262650
|
168
168
|
arpakitlib/ar_fastapi_static/swagger-ui/swagger-ui.js,sha256=ffrLZHHEQ_g84A-ul3yWa10Kk09waOAxHcQXPuZuavg,339292
|
169
169
|
arpakitlib/ar_fastapi_static/swagger-ui/swagger-ui.js.map,sha256=9UhIW7MqCOZPAz1Sl1IKfZUuhWU0p-LJqrnjjJD9Xhc,1159454
|
170
|
-
arpakitlib/ar_fastapi_util.py,sha256=
|
170
|
+
arpakitlib/ar_fastapi_util.py,sha256=dRDvlmU1tHYlEvNGV8OV9ziB_HdlkgQtbc3clYKAZ6Y,26551
|
171
171
|
arpakitlib/ar_file_storage_in_dir_util.py,sha256=D3e3rGuHoI6xqAA5mVvEpVVpOWY1jyjNsjj2UhyHRbE,3674
|
172
172
|
arpakitlib/ar_file_util.py,sha256=GUdJYm1tUZnYpY-SIPRHAZBHGra8NKy1eYEI0D5AfhY,489
|
173
173
|
arpakitlib/ar_func_util.py,sha256=bCuWbSMoFXBaMNhb89sevj2oaXRk4Jk6Qjot8OXMDT4,1319
|
@@ -179,7 +179,7 @@ arpakitlib/ar_json_util.py,sha256=wJOsN8N7Rs7r8cTgMDXrmFa1GOkcD-LghqFEYXc8zGA,10
|
|
179
179
|
arpakitlib/ar_jwt_util.py,sha256=Rhm4ywoTAn6yOV8NLjDASfAtAtheROxxDP40G3XjnuQ,761
|
180
180
|
arpakitlib/ar_list_of_dicts_to_xlsx.py,sha256=MyjEl4Jl4beLVZqLVQMMv0-XDtBD3Xh4Z_ZPDJeFu04,745
|
181
181
|
arpakitlib/ar_list_util.py,sha256=2woOAHAU8oTIiVjZ8GLnx15odEaoQUq3Q0JPxlufFF0,457
|
182
|
-
arpakitlib/ar_logging_util.py,sha256=
|
182
|
+
arpakitlib/ar_logging_util.py,sha256=V4jypypFG1cj4nXae7JiBnRRfm02OTnZSEermx-wlDY,1668
|
183
183
|
arpakitlib/ar_mongodb_util.py,sha256=2ECkTnGAZ92qxioL-fmN6R4yZOSr3bXdXLWTzT1C3vk,4038
|
184
184
|
arpakitlib/ar_need_type_util.py,sha256=GETiREPMEYhch-yU6T--Bdawlbb04Jp1Qy7cOsUlIeA,2228
|
185
185
|
arpakitlib/ar_openai_api_client_util.py,sha256=_XmlApvHFMSyjvZydPa_kASIt9LsFrZmSC7YEzIG8Bg,1806
|
@@ -187,7 +187,7 @@ arpakitlib/ar_operation_execution_util.py,sha256=YkftxZthr6knqW40mgq28y-zRXSTJPf
|
|
187
187
|
arpakitlib/ar_parse_command.py,sha256=-s61xcATIsfw1eV_iD3xi-grsitbGzSDoAFc5V0OFy4,3447
|
188
188
|
arpakitlib/ar_postgresql_util.py,sha256=1AuLjEaa1Lg4pzn-ukCVnDi35Eg1k91APRTqZhIJAdo,945
|
189
189
|
arpakitlib/ar_rat_func_util.py,sha256=xDO3gcmZZ0VsTF5zwqyfrkct8FWcKmyl1KUwfdA1s4k,2009
|
190
|
-
arpakitlib/ar_retry_func_util.py,sha256=
|
190
|
+
arpakitlib/ar_retry_func_util.py,sha256=EQtXhn0RvMiyaes9HMDBgMh_WjMIaGwds01UrKKDaBM,2204
|
191
191
|
arpakitlib/ar_run_cmd_util.py,sha256=D_rPavKMmWkQtwvZFz-Io5Ak8eSODHkcFeLPzNVC68g,1072
|
192
192
|
arpakitlib/ar_schedule_uust_api_client_util.py,sha256=93d-bc3S0PddqV65lSvmApcSoDV0gqxPVgIaB7zKXfY,6899
|
193
193
|
arpakitlib/ar_settings_util.py,sha256=rnoTqbRuhiq7294D4crD5kbnU8-gNWJbwGU_Ls2gJoU,2199
|
@@ -200,8 +200,8 @@ arpakitlib/ar_str_util.py,sha256=yU5gOwNXUQaH5b_tM5t6fXUn9oUcv5EQbVnq2wXXIpQ,337
|
|
200
200
|
arpakitlib/ar_type_util.py,sha256=9C3ErtUVs0tAUqtK-foFzjJOykfBOntfCz2IogDOgfA,4134
|
201
201
|
arpakitlib/ar_yookassa_api_client_util.py,sha256=sh4fcUkAkdOetFn9JYoTvjcSXP-M1wU04KEY-ECLfLg,5137
|
202
202
|
arpakitlib/ar_zabbix_api_client_util.py,sha256=Q-VR4MvoZ9aHwZeYZr9G3LwN-ANx1T5KFmF6pvPM-9M,6402
|
203
|
-
arpakitlib-1.7.
|
204
|
-
arpakitlib-1.7.
|
205
|
-
arpakitlib-1.7.
|
206
|
-
arpakitlib-1.7.
|
207
|
-
arpakitlib-1.7.
|
203
|
+
arpakitlib-1.7.231.dist-info/LICENSE,sha256=GPEDQMam2r7FSTYqM1mm7aKnxLaWcBotH7UvQtea-ec,11355
|
204
|
+
arpakitlib-1.7.231.dist-info/METADATA,sha256=5c4sAIRMU8w9DsmGVvioXm5jyKriZcIJRIojMV3oeYY,3310
|
205
|
+
arpakitlib-1.7.231.dist-info/WHEEL,sha256=IYZQI976HJqqOpQU6PHkJ8fb3tMNBFjg-Cn-pwAbaFM,88
|
206
|
+
arpakitlib-1.7.231.dist-info/entry_points.txt,sha256=36xqR3PJFT2kuwjkM_EqoIy0qFUDPKSm_mJaI7emewE,87
|
207
|
+
arpakitlib-1.7.231.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|