arpakitlib 1.7.54__py3-none-any.whl → 1.7.56__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.
@@ -54,12 +54,13 @@ def sync_make_http_request(
54
54
  while True:
55
55
  tries_counter += 1
56
56
  try:
57
+ _logger.info(f"{tries_counter}/{max_tries_}. {method} {url} {params}")
57
58
  response = requests.request(**kwargs)
58
59
  if raise_for_status_:
59
60
  response.raise_for_status()
60
61
  return response
61
62
  except BaseException as exception:
62
- _logger.warning(f"{tries_counter}/{max_tries_} {method} {url} {params}")
63
+ _logger.warning(f"{tries_counter}/{max_tries_}. {method} {url} {params}, exception={exception}")
63
64
  if tries_counter >= max_tries_:
64
65
  raise exception
65
66
  sync_safe_sleep(timedelta(seconds=0.1).total_seconds())
@@ -98,6 +99,7 @@ async def async_make_http_request(
98
99
  while True:
99
100
  tries_counter += 1
100
101
  try:
102
+ _logger.info(f"{tries_counter}/{max_tries_}. {method} {url} {params}")
101
103
  async with aiohttp.ClientSession(connector=proxy_connector) as session:
102
104
  async with session.request(**kwargs) as response:
103
105
  if raise_for_status_:
@@ -105,7 +107,7 @@ async def async_make_http_request(
105
107
  await response.read()
106
108
  return response
107
109
  except BaseException as exception:
108
- _logger.warning(f"{tries_counter}/{max_tries_} {method} {url} {params}")
110
+ _logger.warning(f"{tries_counter}/{max_tries_}. {method} {url} {params}, exception={exception}")
109
111
  if tries_counter >= max_tries_:
110
112
  raise exception
111
113
  await async_safe_sleep(timedelta(seconds=0.1).total_seconds())
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: arpakitlib
3
- Version: 1.7.54
3
+ Version: 1.7.56
4
4
  Summary: arpakitlib
5
5
  Home-page: https://github.com/ARPAKIT-Company/arpakitlib
6
6
  License: Apache-2.0
@@ -149,7 +149,7 @@ arpakitlib/ar_fastapi_util.py,sha256=e4Tgz7sPJk-wqMc2sNsBZ7ZVXo2lMnaOq5WY7CbgvMk
149
149
  arpakitlib/ar_file_storage_in_dir_util.py,sha256=D3e3rGuHoI6xqAA5mVvEpVVpOWY1jyjNsjj2UhyHRbE,3674
150
150
  arpakitlib/ar_file_util.py,sha256=07xCF7paAUP2JUyfpeX0l3N1oCSma7qAcBmrCIZVi3g,452
151
151
  arpakitlib/ar_hash_util.py,sha256=Iqy6KBAOLBQMFLWv676boI5sV7atT2B-fb7aCdHOmIQ,340
152
- arpakitlib/ar_http_request_util.py,sha256=DfzITtgbWJLkyaAIa0cBZZZqLE0EXx-TsHZkiaRy3Tg,3649
152
+ arpakitlib/ar_http_request_util.py,sha256=tQ7vxmeNNeIru1OXt9DiRp03_4SvG4v0ew9ibD8EA1A,3863
153
153
  arpakitlib/ar_ip_util.py,sha256=aEAa1Hvobh9DWX7cmBAPLqnXSTiKe2hRk-WJaiKMaI8,1009
154
154
  arpakitlib/ar_json_db_util.py,sha256=CEyhIU4WuNmX5mqwBVYxUKSdpFelXvWmf_tJ1fuxMSE,7187
155
155
  arpakitlib/ar_json_util.py,sha256=GwHDdrBWiJBHSc07Qe0aN1Gp_uM0pYpTwzU9JAgsKAo,972
@@ -174,9 +174,9 @@ arpakitlib/ar_str_util.py,sha256=oCEtQ_TTn35OEz9jCNLjbhopq76JmaifD_iYR-nEJJ4,214
174
174
  arpakitlib/ar_type_util.py,sha256=e6Ch8I_B3FMJMj-fiZvTwtGde4hxSa48fGt5g8RlV6I,2301
175
175
  arpakitlib/ar_yookassa_api_client_util.py,sha256=sh4fcUkAkdOetFn9JYoTvjcSXP-M1wU04KEY-ECLfLg,5137
176
176
  arpakitlib/ar_zabbix_api_client_util.py,sha256=Q-VR4MvoZ9aHwZeYZr9G3LwN-ANx1T5KFmF6pvPM-9M,6402
177
- arpakitlib-1.7.54.dist-info/LICENSE,sha256=GPEDQMam2r7FSTYqM1mm7aKnxLaWcBotH7UvQtea-ec,11355
178
- arpakitlib-1.7.54.dist-info/METADATA,sha256=BFELpFNE5b0L340gZI0ohoxH4tx5-Go-XV0_sCxHx_U,2824
179
- arpakitlib-1.7.54.dist-info/NOTICE,sha256=95aUzaPJjVpDsGAsNzVnq7tHTxAl0s5UFznCTkVCau4,763
180
- arpakitlib-1.7.54.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
181
- arpakitlib-1.7.54.dist-info/entry_points.txt,sha256=36xqR3PJFT2kuwjkM_EqoIy0qFUDPKSm_mJaI7emewE,87
182
- arpakitlib-1.7.54.dist-info/RECORD,,
177
+ arpakitlib-1.7.56.dist-info/LICENSE,sha256=GPEDQMam2r7FSTYqM1mm7aKnxLaWcBotH7UvQtea-ec,11355
178
+ arpakitlib-1.7.56.dist-info/METADATA,sha256=cofj4tL5_IJTjtTHTUZYFN1qi_xgUDn4twbANtCsXO8,2824
179
+ arpakitlib-1.7.56.dist-info/NOTICE,sha256=95aUzaPJjVpDsGAsNzVnq7tHTxAl0s5UFznCTkVCau4,763
180
+ arpakitlib-1.7.56.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
181
+ arpakitlib-1.7.56.dist-info/entry_points.txt,sha256=36xqR3PJFT2kuwjkM_EqoIy0qFUDPKSm_mJaI7emewE,87
182
+ arpakitlib-1.7.56.dist-info/RECORD,,