arpakitlib 1.5.22__py3-none-any.whl → 1.5.24__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/AUTHOR.md +1 -1
- arpakitlib/ar_fastapi_util.py +5 -3
- {arpakitlib-1.5.22.dist-info → arpakitlib-1.5.24.dist-info}/METADATA +1 -1
- {arpakitlib-1.5.22.dist-info → arpakitlib-1.5.24.dist-info}/RECORD +7 -7
- {arpakitlib-1.5.22.dist-info → arpakitlib-1.5.24.dist-info}/LICENSE +0 -0
- {arpakitlib-1.5.22.dist-info → arpakitlib-1.5.24.dist-info}/NOTICE +0 -0
- {arpakitlib-1.5.22.dist-info → arpakitlib-1.5.24.dist-info}/WHEEL +0 -0
arpakitlib/AUTHOR.md
CHANGED
arpakitlib/ar_fastapi_util.py
CHANGED
|
@@ -109,6 +109,8 @@ def simple_api_handle_exception(request: starlette.requests.Request, exception:
|
|
|
109
109
|
def from_exception_to_api_json_response(
|
|
110
110
|
request: starlette.requests.Request, exception: Exception
|
|
111
111
|
) -> APIJSONResponse:
|
|
112
|
+
_logger.exception(exception)
|
|
113
|
+
|
|
112
114
|
easy_api_error_so = APIErrorSO(
|
|
113
115
|
has_error=True,
|
|
114
116
|
error_code=APIErrorCodes.unknown_error
|
|
@@ -243,8 +245,8 @@ class BaseAPIShutdownEvent:
|
|
|
243
245
|
def __init__(self, *args, **kwargs):
|
|
244
246
|
self._logger = logging.getLogger(self.__class__.__name__)
|
|
245
247
|
|
|
246
|
-
async def
|
|
247
|
-
self._logger.info("
|
|
248
|
+
async def on_shutdown(self, *args, **kwargs):
|
|
249
|
+
self._logger.info("on_shutdown")
|
|
248
250
|
|
|
249
251
|
|
|
250
252
|
def create_fastapi_app(
|
|
@@ -262,7 +264,7 @@ def create_fastapi_app(
|
|
|
262
264
|
redoc_url=None,
|
|
263
265
|
openapi_url="/openapi",
|
|
264
266
|
on_startup=[api_startup_event.on_startup] if api_startup_event else [],
|
|
265
|
-
on_shutdown=[api_shutdown_event.
|
|
267
|
+
on_shutdown=[api_shutdown_event.on_shutdown] if api_shutdown_event else []
|
|
266
268
|
)
|
|
267
269
|
|
|
268
270
|
add_middleware_cors_to_fastapi_app(fastapi_app=app)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
arpakitlib/AUTHOR.md,sha256=
|
|
1
|
+
arpakitlib/AUTHOR.md,sha256=q__f4pJ8ZVvZAgtdOx_lFRY3yCHJfutv3shmO3xpDxQ,70
|
|
2
2
|
arpakitlib/LICENSE,sha256=1jqWIkbnMxDfs_i0SXP5qbV6PHjBr1g8506oW7uPjfg,11347
|
|
3
3
|
arpakitlib/NOTICE,sha256=wHwmiq3wExfFfgMsE5U5TOBP9_l72ocIG82KurEels0,43
|
|
4
4
|
arpakitlib/README.md,sha256=CEisVO71kG0wa6cRGWsNhQl9MOvIO7uG8GeYzUBT1bA,70
|
|
@@ -36,7 +36,7 @@ arpakitlib/ar_fastapi_static/swagger-ui/swagger-ui.css,sha256=jzPZlgJTFwSdSphk9C
|
|
|
36
36
|
arpakitlib/ar_fastapi_static/swagger-ui/swagger-ui.css.map,sha256=5wq8eXMLU6Zxb45orZPL1zAsBFJReFw6GjYqGpUX3hg,262650
|
|
37
37
|
arpakitlib/ar_fastapi_static/swagger-ui/swagger-ui.js,sha256=ffrLZHHEQ_g84A-ul3yWa10Kk09waOAxHcQXPuZuavg,339292
|
|
38
38
|
arpakitlib/ar_fastapi_static/swagger-ui/swagger-ui.js.map,sha256=9UhIW7MqCOZPAz1Sl1IKfZUuhWU0p-LJqrnjjJD9Xhc,1159454
|
|
39
|
-
arpakitlib/ar_fastapi_util.py,sha256=
|
|
39
|
+
arpakitlib/ar_fastapi_util.py,sha256=ugnVVI0zFRoeCkoGQKMNEGxaM8ly5wBAyHajPZk04CE,9655
|
|
40
40
|
arpakitlib/ar_file_storage_in_dir.py,sha256=D3e3rGuHoI6xqAA5mVvEpVVpOWY1jyjNsjj2UhyHRbE,3674
|
|
41
41
|
arpakitlib/ar_generate_env_example.py,sha256=WseNlk_So6mTVQ2amMuigWYV4ZVmd940POvXtodoYj0,325
|
|
42
42
|
arpakitlib/ar_hash_util.py,sha256=Iqy6KBAOLBQMFLWv676boI5sV7atT2B-fb7aCdHOmIQ,340
|
|
@@ -62,8 +62,8 @@ arpakitlib/ar_str_util.py,sha256=xSEzmsDvRiZVaxyqFFjcgzpphktCbXg2FHcvsd1DYpA,188
|
|
|
62
62
|
arpakitlib/ar_type_util.py,sha256=-h-SCsVl11eVo1u4hy2Asn0IfD5TIxmX3Ndug4AvnPE,1761
|
|
63
63
|
arpakitlib/ar_yookassa_api_client.py,sha256=HOzhTggH_-BligDyqRg2fwhxYf8ULTnnFZkyn0PNdQM,6449
|
|
64
64
|
arpakitlib/ar_zabbix_util.py,sha256=MTQbmS0QpNCKNOGONNQHf6j7KTZsKGlIbd5rCH0R0WI,6313
|
|
65
|
-
arpakitlib-1.5.
|
|
66
|
-
arpakitlib-1.5.
|
|
67
|
-
arpakitlib-1.5.
|
|
68
|
-
arpakitlib-1.5.
|
|
69
|
-
arpakitlib-1.5.
|
|
65
|
+
arpakitlib-1.5.24.dist-info/LICENSE,sha256=1jqWIkbnMxDfs_i0SXP5qbV6PHjBr1g8506oW7uPjfg,11347
|
|
66
|
+
arpakitlib-1.5.24.dist-info/METADATA,sha256=AhNicpZjE0DrMg2-CvJHKVZCNKm8ysNMGjMbGDRzWDY,2323
|
|
67
|
+
arpakitlib-1.5.24.dist-info/NOTICE,sha256=wHwmiq3wExfFfgMsE5U5TOBP9_l72ocIG82KurEels0,43
|
|
68
|
+
arpakitlib-1.5.24.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
|
|
69
|
+
arpakitlib-1.5.24.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|