airbyte-cdk 6.7.1rc2__py3-none-any.whl → 6.7.1rc4__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.
- airbyte_cdk/sources/streams/http/http_client.py +2 -10
- {airbyte_cdk-6.7.1rc2.dist-info → airbyte_cdk-6.7.1rc4.dist-info}/METADATA +1 -1
- {airbyte_cdk-6.7.1rc2.dist-info → airbyte_cdk-6.7.1rc4.dist-info}/RECORD +6 -6
- {airbyte_cdk-6.7.1rc2.dist-info → airbyte_cdk-6.7.1rc4.dist-info}/LICENSE.txt +0 -0
- {airbyte_cdk-6.7.1rc2.dist-info → airbyte_cdk-6.7.1rc4.dist-info}/WHEEL +0 -0
- {airbyte_cdk-6.7.1rc2.dist-info → airbyte_cdk-6.7.1rc4.dist-info}/entry_points.txt +0 -0
@@ -6,7 +6,7 @@ import logging
|
|
6
6
|
import os
|
7
7
|
import urllib
|
8
8
|
from pathlib import Path
|
9
|
-
from typing import Any, Callable,
|
9
|
+
from typing import Any, Callable, List, Mapping, Optional, Tuple, Union
|
10
10
|
|
11
11
|
import orjson
|
12
12
|
import requests
|
@@ -116,7 +116,6 @@ class HttpClient:
|
|
116
116
|
else:
|
117
117
|
self._backoff_strategies = [DefaultBackoffStrategy()]
|
118
118
|
self._error_message_parser = error_message_parser or JsonErrorMessageParser()
|
119
|
-
self._request_attempt_count: Dict[requests.PreparedRequest, int] = {}
|
120
119
|
self._disable_retries = disable_retries
|
121
120
|
self._message_repository = message_repository
|
122
121
|
|
@@ -276,13 +275,6 @@ class HttpClient:
|
|
276
275
|
log_formatter: Optional[Callable[[requests.Response], Any]] = None,
|
277
276
|
exit_on_rate_limit: Optional[bool] = False,
|
278
277
|
) -> requests.Response:
|
279
|
-
if request not in self._request_attempt_count:
|
280
|
-
self._request_attempt_count[request] = 1
|
281
|
-
else:
|
282
|
-
self._request_attempt_count[request] += 1
|
283
|
-
if hasattr(self._session, "auth") and isinstance(self._session.auth, AuthBase):
|
284
|
-
self._session.auth(request)
|
285
|
-
|
286
278
|
self._logger.debug(
|
287
279
|
"Making outbound API request",
|
288
280
|
extra={"headers": request.headers, "url": request.url, "request_body": request.body},
|
@@ -398,7 +390,7 @@ class HttpClient:
|
|
398
390
|
for backoff_strategy in self._backoff_strategies:
|
399
391
|
backoff_time = backoff_strategy.backoff_time(
|
400
392
|
response_or_exception=response if response is not None else exc,
|
401
|
-
attempt_count=
|
393
|
+
attempt_count=0,
|
402
394
|
)
|
403
395
|
if backoff_time:
|
404
396
|
user_defined_backoff_time = backoff_time
|
@@ -274,7 +274,7 @@ airbyte_cdk/sources/streams/http/error_handlers/json_error_message_parser.py,sha
|
|
274
274
|
airbyte_cdk/sources/streams/http/error_handlers/response_models.py,sha256=7AX6sm8hMfVtcZuUrCmGmNFsO5rDK9Ecg2Kzl6rQwrk,2235
|
275
275
|
airbyte_cdk/sources/streams/http/exceptions.py,sha256=njC7MlMJoFYcSGz4mIp6-bqLFTr6vC8ej25X0oSeyjE,1824
|
276
276
|
airbyte_cdk/sources/streams/http/http.py,sha256=XoUvIClYO96datz_lBPBBY6uWmCja2mUk_yERdjskQo,28466
|
277
|
-
airbyte_cdk/sources/streams/http/http_client.py,sha256=
|
277
|
+
airbyte_cdk/sources/streams/http/http_client.py,sha256=Yi5uAhi8u4EXDk4QaiXGF__OF3M45cQ6UvouHHzEq_4,18949
|
278
278
|
airbyte_cdk/sources/streams/http/rate_limiting.py,sha256=IwdjrHKUnU97XO4qONgYRv4YYW51xQ8SJm4WLafXDB8,6351
|
279
279
|
airbyte_cdk/sources/streams/http/requests_native_auth/__init__.py,sha256=RN0D3nOX1xLgwEwKWu6pkGy3XqBFzKSNZ8Lf6umU2eY,413
|
280
280
|
airbyte_cdk/sources/streams/http/requests_native_auth/abstract_oauth.py,sha256=r6KvG6V-bzhnCGwLqnxngrjGM0UrvD1dRo8knatuAH0,10320
|
@@ -331,8 +331,8 @@ airbyte_cdk/utils/slice_hasher.py,sha256=EemcgcQlI8-LPYOPlYv4Qkdjyho79XVLWaUHF5X
|
|
331
331
|
airbyte_cdk/utils/spec_schema_transformations.py,sha256=LVc9KbtMeV_z99jWo0Ou8u4l6eBJ0BWNhxj4zrrGKRs,763
|
332
332
|
airbyte_cdk/utils/stream_status_utils.py,sha256=ZmBoiy5HVbUEHAMrUONxZvxnvfV9CesmQJLDTAIWnWw,1171
|
333
333
|
airbyte_cdk/utils/traced_exception.py,sha256=89TQdFuYZ1NJgmFpqLzY_T_T_64TpJYmVqs119Bp43g,6164
|
334
|
-
airbyte_cdk-6.7.
|
335
|
-
airbyte_cdk-6.7.
|
336
|
-
airbyte_cdk-6.7.
|
337
|
-
airbyte_cdk-6.7.
|
338
|
-
airbyte_cdk-6.7.
|
334
|
+
airbyte_cdk-6.7.1rc4.dist-info/LICENSE.txt,sha256=Wfe61S4BaGPj404v8lrAbvhjYR68SHlkzeYrg3_bbuM,1051
|
335
|
+
airbyte_cdk-6.7.1rc4.dist-info/METADATA,sha256=iS1Wng9dw5V52JIfeTLoumDUhZpZDXffvvM1CJSvCxw,13345
|
336
|
+
airbyte_cdk-6.7.1rc4.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
|
337
|
+
airbyte_cdk-6.7.1rc4.dist-info/entry_points.txt,sha256=fj-e3PAQvsxsQzyyq8UkG1k8spunWnD4BAH2AwlR6NM,95
|
338
|
+
airbyte_cdk-6.7.1rc4.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|