arpakitlib 1.7.2__py3-none-any.whl → 1.7.3__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_http_request_util.py +5 -0
- {arpakitlib-1.7.2.dist-info → arpakitlib-1.7.3.dist-info}/METADATA +1 -1
- {arpakitlib-1.7.2.dist-info → arpakitlib-1.7.3.dist-info}/RECORD +7 -7
- {arpakitlib-1.7.2.dist-info → arpakitlib-1.7.3.dist-info}/LICENSE +0 -0
- {arpakitlib-1.7.2.dist-info → arpakitlib-1.7.3.dist-info}/NOTICE +0 -0
- {arpakitlib-1.7.2.dist-info → arpakitlib-1.7.3.dist-info}/WHEEL +0 -0
- {arpakitlib-1.7.2.dist-info → arpakitlib-1.7.3.dist-info}/entry_points.txt +0 -0
@@ -1,6 +1,7 @@
|
|
1
1
|
# arpakit
|
2
2
|
|
3
3
|
import asyncio
|
4
|
+
import logging
|
4
5
|
from datetime import timedelta
|
5
6
|
from typing import Any
|
6
7
|
|
@@ -13,6 +14,8 @@ from arpakitlib.ar_type_util import raise_for_type
|
|
13
14
|
|
14
15
|
_ARPAKIT_LIB_MODULE_VERSION = "3.0"
|
15
16
|
|
17
|
+
_logger = logging.getLogger(__name__)
|
18
|
+
|
16
19
|
|
17
20
|
def sync_make_http_request(
|
18
21
|
*,
|
@@ -56,6 +59,7 @@ def sync_make_http_request(
|
|
56
59
|
response.raise_for_status()
|
57
60
|
return response
|
58
61
|
except BaseException as exception:
|
62
|
+
_logger.warning(f"{tries_counter}/{max_tries_} {method} {url} {params}")
|
59
63
|
if tries_counter >= max_tries_:
|
60
64
|
raise exception
|
61
65
|
sync_safe_sleep(timedelta(seconds=0.1).total_seconds())
|
@@ -101,6 +105,7 @@ async def async_make_http_request(
|
|
101
105
|
await response.read()
|
102
106
|
return response
|
103
107
|
except BaseException as exception:
|
108
|
+
_logger.warning(f"{tries_counter}/{max_tries_} {method} {url} {params}")
|
104
109
|
if tries_counter >= max_tries_:
|
105
110
|
raise exception
|
106
111
|
await async_safe_sleep(timedelta(seconds=0.1).total_seconds())
|
@@ -102,7 +102,7 @@ arpakitlib/ar_file_storage_in_dir_util.py,sha256=D3e3rGuHoI6xqAA5mVvEpVVpOWY1jyj
|
|
102
102
|
arpakitlib/ar_file_util.py,sha256=XiwmeycxoLqtYnGOu5q6IEaJJXilZvtLvsKDKtwqSLY,137
|
103
103
|
arpakitlib/ar_hash_util.py,sha256=Iqy6KBAOLBQMFLWv676boI5sV7atT2B-fb7aCdHOmIQ,340
|
104
104
|
arpakitlib/ar_hello_world.py,sha256=5B3GTgxGIFh_s6ttyB4UKn78ncyA_8blRnDT04l-ELg,158
|
105
|
-
arpakitlib/ar_http_request_util.py,sha256=
|
105
|
+
arpakitlib/ar_http_request_util.py,sha256=DfzITtgbWJLkyaAIa0cBZZZqLE0EXx-TsHZkiaRy3Tg,3649
|
106
106
|
arpakitlib/ar_ip_util.py,sha256=aEAa1Hvobh9DWX7cmBAPLqnXSTiKe2hRk-WJaiKMaI8,1009
|
107
107
|
arpakitlib/ar_json_db_util.py,sha256=CEyhIU4WuNmX5mqwBVYxUKSdpFelXvWmf_tJ1fuxMSE,7187
|
108
108
|
arpakitlib/ar_json_util.py,sha256=GwHDdrBWiJBHSc07Qe0aN1Gp_uM0pYpTwzU9JAgsKAo,972
|
@@ -128,9 +128,9 @@ arpakitlib/ar_str_util.py,sha256=AhcdrEm-pXRilCaDWCdTfVkQSy0SnbE52ur43Ltr6cI,212
|
|
128
128
|
arpakitlib/ar_type_util.py,sha256=5nDnXL5Oyozlg8XvxMrogsoYiG8_atItg46A0mtv-pk,2025
|
129
129
|
arpakitlib/ar_yookassa_api_client_util.py,sha256=sh4fcUkAkdOetFn9JYoTvjcSXP-M1wU04KEY-ECLfLg,5137
|
130
130
|
arpakitlib/ar_zabbix_api_client_util.py,sha256=Q-VR4MvoZ9aHwZeYZr9G3LwN-ANx1T5KFmF6pvPM-9M,6402
|
131
|
-
arpakitlib-1.7.
|
132
|
-
arpakitlib-1.7.
|
133
|
-
arpakitlib-1.7.
|
134
|
-
arpakitlib-1.7.
|
135
|
-
arpakitlib-1.7.
|
136
|
-
arpakitlib-1.7.
|
131
|
+
arpakitlib-1.7.3.dist-info/LICENSE,sha256=GPEDQMam2r7FSTYqM1mm7aKnxLaWcBotH7UvQtea-ec,11355
|
132
|
+
arpakitlib-1.7.3.dist-info/METADATA,sha256=y7cI53IZXwJ2P28YYCn09ETTdULnxIKbvWLt3zCgCyE,2738
|
133
|
+
arpakitlib-1.7.3.dist-info/NOTICE,sha256=95aUzaPJjVpDsGAsNzVnq7tHTxAl0s5UFznCTkVCau4,763
|
134
|
+
arpakitlib-1.7.3.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
|
135
|
+
arpakitlib-1.7.3.dist-info/entry_points.txt,sha256=VHkTDXDOMrgcNzGfKhEhoOIIz6T8Kkt46hy95Zc1iL0,74
|
136
|
+
arpakitlib-1.7.3.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|