arpakitlib 1.8.154__py3-none-any.whl → 1.8.155__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.
@@ -70,30 +70,30 @@ def sync_execute_with_story_log(
70
70
 
71
71
 
72
72
  async def async_execute_with_story_log(
73
- func,
73
+ async_func,
74
74
  *,
75
- func_args: tuple[Any] | None = None,
76
- func_kwargs: dict[Any, Any] | None = None,
75
+ async_func_args: tuple[Any] | None = None,
76
+ async_func_kwargs: dict[Any, Any] | None = None,
77
77
  async_session_: AsyncSession | None = None,
78
78
  story_log_level: str = StoryLogDBM.Levels.error,
79
79
  story_log_type: str = StoryLogDBM.Types.error_in_execute_with_story_log,
80
80
  story_log_title: str | None = None,
81
81
  story_log_extra_data: dict[Any, Any] | None = None,
82
82
  ) -> Any:
83
- if func_args is None:
84
- func_args = ()
85
- if func_kwargs is None:
86
- func_kwargs = {}
83
+ if async_func_args is None:
84
+ async_func_args = ()
85
+ if async_func_kwargs is None:
86
+ async_func_kwargs = {}
87
87
  if story_log_extra_data is None:
88
88
  story_log_extra_data = {}
89
89
 
90
90
  try:
91
- return await func(*func_args, **func_kwargs)
91
+ return await async_func(*async_func_args, **async_func_kwargs)
92
92
  except Exception as exception:
93
- _logger.error(f"Async error in {func.__name__}", exc_info=True)
93
+ _logger.error(f"Async error in {async_func.__name__}", exc_info=True)
94
94
 
95
95
  if story_log_title is None:
96
- story_log_title = f"Async error in func {func.__name__}: {type(exception).__name__}: {exception}"
96
+ story_log_title = f"Async error in func {async_func.__name__}: {type(exception).__name__}: {exception}"
97
97
 
98
98
  story_log_extra_data.update({
99
99
  "exception": str(exception),
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: arpakitlib
3
- Version: 1.8.154
3
+ Version: 1.8.155
4
4
  Summary: arpakitlib
5
5
  License: Apache-2.0
6
6
  Keywords: arpakitlib,arpakit,arpakit-company,arpakitcompany,arpakit_company
@@ -263,7 +263,7 @@ arpakitlib/_arpakit_project_template_v_5/project/sqlalchemy_db_/sqlalchemy_model
263
263
  arpakitlib/_arpakit_project_template_v_5/project/sqlalchemy_db_/sqlalchemy_model/user_token.py,sha256=hX6nHvVvhg5YB3vCjsku4TDoY5Jk1FsuDu5elbcF7VE,1886
264
264
  arpakitlib/_arpakit_project_template_v_5/project/sqlalchemy_db_/sqlalchemy_model/verification_code.py,sha256=xrrNPXn5PeCnZ2VWVBdXDUft83EEYtc6b4pvs0oh1uw,3078
265
265
  arpakitlib/_arpakit_project_template_v_5/project/sqlalchemy_db_/util/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
266
- arpakitlib/_arpakit_project_template_v_5/project/sqlalchemy_db_/util/execute_func_with_story_log.py,sha256=nAbcbBVUkToZioyVKaiOM0d1mHP0yy4THnLOjf2zjTg,4985
266
+ arpakitlib/_arpakit_project_template_v_5/project/sqlalchemy_db_/util/execute_func_with_story_log.py,sha256=TVdhSL7g_L6tW5-DSZTFUJbCQtXlv2Fs_A6PaLZawdQ,5057
267
267
  arpakitlib/_arpakit_project_template_v_5/project/test_data/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
268
268
  arpakitlib/_arpakit_project_template_v_5/project/test_data/make_test_api_keys.py,sha256=9F2bMfymaqx_Czh_tF945BKpKqNrVNjSIfCQl13Dkxw,911
269
269
  arpakitlib/_arpakit_project_template_v_5/project/test_data/make_test_data_1.py,sha256=F7vCmfWjItw5QzYR7_OAPSHdJt9louuvqXvcfOkU0AU,2246
@@ -407,8 +407,8 @@ arpakitlib/ar_ssh_runner_util.py,sha256=yvAwza480MkHKvLkDEsR7JNh2bYNs6P9rCVo4NA8
407
407
  arpakitlib/ar_str_util.py,sha256=2lGpnXDf2h1cBZpVf5i1tX_HCv5iBd6IGnrCw4QWWlY,4350
408
408
  arpakitlib/ar_type_util.py,sha256=Cs_tef-Fc5xeyAF54KgISCsP11NHyzIsglm4S3Xx7iM,4049
409
409
  arpakitlib/ar_yookassa_api_client_util.py,sha256=VozuZeCJjmLd1zj2BdC9WfiAQ3XYOrIMsdpNK-AUlm0,5347
410
- arpakitlib-1.8.154.dist-info/LICENSE,sha256=GPEDQMam2r7FSTYqM1mm7aKnxLaWcBotH7UvQtea-ec,11355
411
- arpakitlib-1.8.154.dist-info/METADATA,sha256=j35xSpxIIkT96WiRVw0u3aeerw04TZfQdoEL2rbyQ2w,3706
412
- arpakitlib-1.8.154.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
413
- arpakitlib-1.8.154.dist-info/entry_points.txt,sha256=36xqR3PJFT2kuwjkM_EqoIy0qFUDPKSm_mJaI7emewE,87
414
- arpakitlib-1.8.154.dist-info/RECORD,,
410
+ arpakitlib-1.8.155.dist-info/LICENSE,sha256=GPEDQMam2r7FSTYqM1mm7aKnxLaWcBotH7UvQtea-ec,11355
411
+ arpakitlib-1.8.155.dist-info/METADATA,sha256=QKV0wMCBp4PPJHanz2EEe30ZmJyGGfrt_Tt3wdP7Gq4,3706
412
+ arpakitlib-1.8.155.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
413
+ arpakitlib-1.8.155.dist-info/entry_points.txt,sha256=36xqR3PJFT2kuwjkM_EqoIy0qFUDPKSm_mJaI7emewE,87
414
+ arpakitlib-1.8.155.dist-info/RECORD,,