arpakitlib 1.7.23__py3-none-any.whl → 1.7.25__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.
@@ -259,8 +259,6 @@ def create_handle_exception_creating_story_log(
259
259
  exception: Exception,
260
260
  **kwargs
261
261
  ) -> (int, ErrorSO, dict[str, Any]):
262
- print(222, type(request))
263
-
264
262
  sqlalchemy_db.init()
265
263
  traceback_str = "".join(traceback.format_exception(type(exception), exception, exception.__traceback__))
266
264
  with sqlalchemy_db.new_session() as session:
@@ -538,6 +536,8 @@ def api_auth_check_api_key(
538
536
  ):
539
537
  if need_check_api_key:
540
538
  require_api_key_string = True
539
+ else:
540
+ require_api_key_string = False
541
541
 
542
542
  if correct_api_key is not None:
543
543
  check_api_key_func = lambda v: v == correct_api_key
@@ -545,7 +545,7 @@ def api_auth_check_api_key(
545
545
  async def func(
546
546
  *,
547
547
  base_need_api_auth_data: BaseAPIAuthData = Depends(base_api_auth(
548
- require_api_key_string=need_check_api_key,
548
+ require_api_key_string=require_api_key_string,
549
549
  require_token_string=False
550
550
  )),
551
551
  transmitted_api_data: BaseTransmittedAPIData = Depends(get_transmitted_api_data),
@@ -553,7 +553,7 @@ def api_auth_check_api_key(
553
553
  ):
554
554
  print(111, type(request))
555
555
 
556
- # TODO
556
+ return func
557
557
 
558
558
 
559
559
  def simple_api_router_for_testing():
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: arpakitlib
3
- Version: 1.7.23
3
+ Version: 1.7.25
4
4
  Summary: arpakitlib
5
5
  Home-page: https://github.com/ARPAKIT-Company/arpakitlib
6
6
  License: Apache-2.0
@@ -133,7 +133,7 @@ arpakitlib/ar_fastapi_static/swagger-ui/swagger-ui.css,sha256=jzPZlgJTFwSdSphk9C
133
133
  arpakitlib/ar_fastapi_static/swagger-ui/swagger-ui.css.map,sha256=5wq8eXMLU6Zxb45orZPL1zAsBFJReFw6GjYqGpUX3hg,262650
134
134
  arpakitlib/ar_fastapi_static/swagger-ui/swagger-ui.js,sha256=ffrLZHHEQ_g84A-ul3yWa10Kk09waOAxHcQXPuZuavg,339292
135
135
  arpakitlib/ar_fastapi_static/swagger-ui/swagger-ui.js.map,sha256=9UhIW7MqCOZPAz1Sl1IKfZUuhWU0p-LJqrnjjJD9Xhc,1159454
136
- arpakitlib/ar_fastapi_util.py,sha256=SSMRYJhfUN72q9BjZoNVFV67Uir0kM6YuR6dKaT1czs,23096
136
+ arpakitlib/ar_fastapi_util.py,sha256=z6nvyQNkZJ4iM14fg1qf0gwZK-hwUM25GsAKOT2yxTw,23115
137
137
  arpakitlib/ar_file_storage_in_dir_util.py,sha256=D3e3rGuHoI6xqAA5mVvEpVVpOWY1jyjNsjj2UhyHRbE,3674
138
138
  arpakitlib/ar_file_util.py,sha256=XiwmeycxoLqtYnGOu5q6IEaJJXilZvtLvsKDKtwqSLY,137
139
139
  arpakitlib/ar_hash_util.py,sha256=Iqy6KBAOLBQMFLWv676boI5sV7atT2B-fb7aCdHOmIQ,340
@@ -162,9 +162,9 @@ arpakitlib/ar_str_util.py,sha256=oCEtQ_TTn35OEz9jCNLjbhopq76JmaifD_iYR-nEJJ4,214
162
162
  arpakitlib/ar_type_util.py,sha256=GNc9PgFKonj5lRlAHSnVPBN5nLIslrG8GTiZHjkf05w,2138
163
163
  arpakitlib/ar_yookassa_api_client_util.py,sha256=sh4fcUkAkdOetFn9JYoTvjcSXP-M1wU04KEY-ECLfLg,5137
164
164
  arpakitlib/ar_zabbix_api_client_util.py,sha256=Q-VR4MvoZ9aHwZeYZr9G3LwN-ANx1T5KFmF6pvPM-9M,6402
165
- arpakitlib-1.7.23.dist-info/LICENSE,sha256=GPEDQMam2r7FSTYqM1mm7aKnxLaWcBotH7UvQtea-ec,11355
166
- arpakitlib-1.7.23.dist-info/METADATA,sha256=BgPvdBjpDPXGbagioURn4-x6OgejYU_5DfDEyVajSgk,2824
167
- arpakitlib-1.7.23.dist-info/NOTICE,sha256=95aUzaPJjVpDsGAsNzVnq7tHTxAl0s5UFznCTkVCau4,763
168
- arpakitlib-1.7.23.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
169
- arpakitlib-1.7.23.dist-info/entry_points.txt,sha256=36xqR3PJFT2kuwjkM_EqoIy0qFUDPKSm_mJaI7emewE,87
170
- arpakitlib-1.7.23.dist-info/RECORD,,
165
+ arpakitlib-1.7.25.dist-info/LICENSE,sha256=GPEDQMam2r7FSTYqM1mm7aKnxLaWcBotH7UvQtea-ec,11355
166
+ arpakitlib-1.7.25.dist-info/METADATA,sha256=ff9_1woVXlLWOkJXzWAQdRnjn2xyQaI578dCQD4gBhg,2824
167
+ arpakitlib-1.7.25.dist-info/NOTICE,sha256=95aUzaPJjVpDsGAsNzVnq7tHTxAl0s5UFznCTkVCau4,763
168
+ arpakitlib-1.7.25.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
169
+ arpakitlib-1.7.25.dist-info/entry_points.txt,sha256=36xqR3PJFT2kuwjkM_EqoIy0qFUDPKSm_mJaI7emewE,87
170
+ arpakitlib-1.7.25.dist-info/RECORD,,