airbyte-cdk 6.48.10.post2.dev14974028993__py3-none-any.whl → 6.48.11__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/declarative/incremental/concurrent_partition_cursor.py +2 -2
- airbyte_cdk/sources/declarative/requesters/http_job_repository.py +5 -5
- airbyte_cdk/sources/declarative/requesters/request_options/interpolated_nested_request_input_provider.py +5 -4
- airbyte_cdk/sources/declarative/requesters/request_options/interpolated_request_input_provider.py +5 -4
- {airbyte_cdk-6.48.10.post2.dev14974028993.dist-info → airbyte_cdk-6.48.11.dist-info}/METADATA +1 -1
- {airbyte_cdk-6.48.10.post2.dev14974028993.dist-info → airbyte_cdk-6.48.11.dist-info}/RECORD +10 -10
- {airbyte_cdk-6.48.10.post2.dev14974028993.dist-info → airbyte_cdk-6.48.11.dist-info}/LICENSE.txt +0 -0
- {airbyte_cdk-6.48.10.post2.dev14974028993.dist-info → airbyte_cdk-6.48.11.dist-info}/LICENSE_SHORT +0 -0
- {airbyte_cdk-6.48.10.post2.dev14974028993.dist-info → airbyte_cdk-6.48.11.dist-info}/WHEEL +0 -0
- {airbyte_cdk-6.48.10.post2.dev14974028993.dist-info → airbyte_cdk-6.48.11.dist-info}/entry_points.txt +0 -0
@@ -229,10 +229,10 @@ class ConcurrentPerPartitionCursor(Cursor):
|
|
229
229
|
|
230
230
|
def _throttle_state_message(self) -> Optional[float]:
|
231
231
|
"""
|
232
|
-
Throttles the state message emission to once every
|
232
|
+
Throttles the state message emission to once every 60 seconds.
|
233
233
|
"""
|
234
234
|
current_time = time.time()
|
235
|
-
if current_time - self._last_emission_time <=
|
235
|
+
if current_time - self._last_emission_time <= 60:
|
236
236
|
return None
|
237
237
|
return current_time
|
238
238
|
|
@@ -320,14 +320,14 @@ class AsyncHttpJobRepository(AsyncJobRepository):
|
|
320
320
|
return polling_response_context
|
321
321
|
|
322
322
|
def _get_create_job_stream_slice(self, job: AsyncJob) -> StreamSlice:
|
323
|
-
|
324
|
-
partition=
|
325
|
-
cursor_slice=
|
326
|
-
extra_fields=
|
323
|
+
return StreamSlice(
|
324
|
+
partition=job.job_parameters().partition,
|
325
|
+
cursor_slice=job.job_parameters().cursor_slice,
|
326
|
+
extra_fields=dict(job.job_parameters().extra_fields)
|
327
|
+
| {
|
327
328
|
"creation_response": self._get_creation_response_interpolation_context(job),
|
328
329
|
},
|
329
330
|
)
|
330
|
-
return stream_slice
|
331
331
|
|
332
332
|
def _get_download_targets(self, job: AsyncJob) -> Iterable[str]:
|
333
333
|
if not self.download_target_requester:
|
@@ -11,6 +11,7 @@ from airbyte_cdk.sources.declarative.interpolation.interpolated_nested_mapping i
|
|
11
11
|
)
|
12
12
|
from airbyte_cdk.sources.declarative.interpolation.interpolated_string import InterpolatedString
|
13
13
|
from airbyte_cdk.sources.types import Config, StreamSlice
|
14
|
+
from airbyte_cdk.utils.mapping_helpers import get_interpolation_context
|
14
15
|
|
15
16
|
|
16
17
|
@dataclass
|
@@ -52,8 +53,8 @@ class InterpolatedNestedRequestInputProvider:
|
|
52
53
|
:param next_page_token: The pagination token
|
53
54
|
:return: The request inputs to set on an outgoing HTTP request
|
54
55
|
"""
|
55
|
-
kwargs =
|
56
|
-
|
57
|
-
|
58
|
-
|
56
|
+
kwargs = get_interpolation_context(
|
57
|
+
stream_slice=stream_slice,
|
58
|
+
next_page_token=next_page_token,
|
59
|
+
)
|
59
60
|
return self._interpolator.eval(self.config, **kwargs) # type: ignore # self._interpolator is always initialized with a value and will not be None
|
airbyte_cdk/sources/declarative/requesters/request_options/interpolated_request_input_provider.py
CHANGED
@@ -8,6 +8,7 @@ from typing import Any, Mapping, Optional, Tuple, Type, Union
|
|
8
8
|
from airbyte_cdk.sources.declarative.interpolation.interpolated_mapping import InterpolatedMapping
|
9
9
|
from airbyte_cdk.sources.declarative.interpolation.interpolated_string import InterpolatedString
|
10
10
|
from airbyte_cdk.sources.types import Config, StreamSlice, StreamState
|
11
|
+
from airbyte_cdk.utils.mapping_helpers import get_interpolation_context
|
11
12
|
|
12
13
|
|
13
14
|
@dataclass
|
@@ -51,10 +52,10 @@ class InterpolatedRequestInputProvider:
|
|
51
52
|
:param valid_value_types: A tuple of types that the interpolator should allow
|
52
53
|
:return: The request inputs to set on an outgoing HTTP request
|
53
54
|
"""
|
54
|
-
kwargs =
|
55
|
-
|
56
|
-
|
57
|
-
|
55
|
+
kwargs = get_interpolation_context(
|
56
|
+
stream_slice=stream_slice,
|
57
|
+
next_page_token=next_page_token,
|
58
|
+
)
|
58
59
|
interpolated_value = self._interpolator.eval( # type: ignore # self._interpolator is always initialized with a value and will not be None
|
59
60
|
self.config,
|
60
61
|
valid_key_types=valid_key_types,
|
@@ -111,7 +111,7 @@ airbyte_cdk/sources/declarative/extractors/record_selector.py,sha256=vCpwX1PVRFP
|
|
111
111
|
airbyte_cdk/sources/declarative/extractors/response_to_file_extractor.py,sha256=WJyA2OYIEgFpVP5Y3o0tIj69AV6IKkn9B16MeXaEItI,6513
|
112
112
|
airbyte_cdk/sources/declarative/extractors/type_transformer.py,sha256=d6Y2Rfg8pMVEEnHllfVksWZdNVOU55yk34O03dP9muY,1626
|
113
113
|
airbyte_cdk/sources/declarative/incremental/__init__.py,sha256=U1oZKtBaEC6IACmvziY9Wzg7Z8EgF4ZuR7NwvjlB_Sk,1255
|
114
|
-
airbyte_cdk/sources/declarative/incremental/concurrent_partition_cursor.py,sha256=
|
114
|
+
airbyte_cdk/sources/declarative/incremental/concurrent_partition_cursor.py,sha256=NLxDA4WOkvRhF3RwpmJ31Y0IX0b1sqGm8m7KU6qSJeo,22766
|
115
115
|
airbyte_cdk/sources/declarative/incremental/datetime_based_cursor.py,sha256=Rbe6lJLTtZ5en33MwZiB9-H9-AwDMNHgwBZs8EqhYqk,22172
|
116
116
|
airbyte_cdk/sources/declarative/incremental/declarative_cursor.py,sha256=5Bhw9VRPyIuCaD0wmmq_L3DZsa-rJgtKSEUzSd8YYD0,536
|
117
117
|
airbyte_cdk/sources/declarative/incremental/global_substream_cursor.py,sha256=2tsE6FgXzemf4fZZ4uGtd8QpRBl9GJ2CRqSNJE5p0EI,16077
|
@@ -164,7 +164,7 @@ airbyte_cdk/sources/declarative/requesters/error_handlers/default_error_handler.
|
|
164
164
|
airbyte_cdk/sources/declarative/requesters/error_handlers/default_http_response_filter.py,sha256=q0YkeYUUWO6iErUy0vjqiOkhg8_9d5YcCmtlpXAJJ9E,1314
|
165
165
|
airbyte_cdk/sources/declarative/requesters/error_handlers/error_handler.py,sha256=Tan66odx8VHzfdyyXMQkXz2pJYksllGqvxmpoajgcK4,669
|
166
166
|
airbyte_cdk/sources/declarative/requesters/error_handlers/http_response_filter.py,sha256=E-fQbt4ShfxZVoqfnmOx69C6FUPWZz8BIqI3DN9Kcjs,7935
|
167
|
-
airbyte_cdk/sources/declarative/requesters/http_job_repository.py,sha256=
|
167
|
+
airbyte_cdk/sources/declarative/requesters/http_job_repository.py,sha256=pVzIDdfGs1eAZo9F6zeFYKlEmEqanhNvZLKFCHkdmNo,14348
|
168
168
|
airbyte_cdk/sources/declarative/requesters/http_requester.py,sha256=1qUqNxJ6I_4uSkW4KYXEtygVioURIEmiaDU8GMl_Jcs,18833
|
169
169
|
airbyte_cdk/sources/declarative/requesters/paginators/__init__.py,sha256=uArbKs9JKNCt7t9tZoeWwjDpyI1HoPp29FNW0JzvaEM,644
|
170
170
|
airbyte_cdk/sources/declarative/requesters/paginators/default_paginator.py,sha256=SB-Af3CRb4mJwhm4EKNxzl_PK2w5QS4tqrSNNMO2IV4,12760
|
@@ -187,8 +187,8 @@ airbyte_cdk/sources/declarative/requesters/request_option.py,sha256=Bl0gxGWudmwT
|
|
187
187
|
airbyte_cdk/sources/declarative/requesters/request_options/__init__.py,sha256=WCwpKqM4wKqy-DHJaCHbKAlFqRVOqMi9K5qonxIfi_Y,809
|
188
188
|
airbyte_cdk/sources/declarative/requesters/request_options/datetime_based_request_options_provider.py,sha256=31nG6_0igidJFQon37-WeQkTpG3g2A5ZmlluI3ilZdE,3632
|
189
189
|
airbyte_cdk/sources/declarative/requesters/request_options/default_request_options_provider.py,sha256=SRROdPJZ5kuqHLOlkh115pWP9nDGfDxRYPgH9oD3hPo,1798
|
190
|
-
airbyte_cdk/sources/declarative/requesters/request_options/interpolated_nested_request_input_provider.py,sha256=
|
191
|
-
airbyte_cdk/sources/declarative/requesters/request_options/interpolated_request_input_provider.py,sha256
|
190
|
+
airbyte_cdk/sources/declarative/requesters/request_options/interpolated_nested_request_input_provider.py,sha256=STVopTmEZaxmE-w_2zL6CYXFxq-2K2wDKGtWj9OYZyU,2360
|
191
|
+
airbyte_cdk/sources/declarative/requesters/request_options/interpolated_request_input_provider.py,sha256=-X_sncjnw3N5ZyhlLMOI6vnWy2CM8drqPFOKgzDXTQg,2975
|
192
192
|
airbyte_cdk/sources/declarative/requesters/request_options/interpolated_request_options_provider.py,sha256=ks4rCSdEKTX2bm8obDf-PzWggel1rQEwtu35-rQvqVk,8274
|
193
193
|
airbyte_cdk/sources/declarative/requesters/request_options/request_options_provider.py,sha256=8YRiDzjYvqJ-aMmKFcjqzv_-e8OZ5QG_TbpZ-nuCu6s,2590
|
194
194
|
airbyte_cdk/sources/declarative/requesters/request_path.py,sha256=S3MeFvcaQrMbOkSY2W2VbXLNomqt_3eXqVd9ZhgNwUs,299
|
@@ -408,9 +408,9 @@ airbyte_cdk/utils/slice_hasher.py,sha256=EDxgROHDbfG-QKQb59m7h_7crN1tRiawdf5uU7G
|
|
408
408
|
airbyte_cdk/utils/spec_schema_transformations.py,sha256=-5HTuNsnDBAhj-oLeQXwpTGA0HdcjFOf2zTEMUTTg_Y,816
|
409
409
|
airbyte_cdk/utils/stream_status_utils.py,sha256=ZmBoiy5HVbUEHAMrUONxZvxnvfV9CesmQJLDTAIWnWw,1171
|
410
410
|
airbyte_cdk/utils/traced_exception.py,sha256=C8uIBuCL_E4WnBAOPSxBicD06JAldoN9fGsQDp463OY,6292
|
411
|
-
airbyte_cdk-6.48.
|
412
|
-
airbyte_cdk-6.48.
|
413
|
-
airbyte_cdk-6.48.
|
414
|
-
airbyte_cdk-6.48.
|
415
|
-
airbyte_cdk-6.48.
|
416
|
-
airbyte_cdk-6.48.
|
411
|
+
airbyte_cdk-6.48.11.dist-info/LICENSE.txt,sha256=Wfe61S4BaGPj404v8lrAbvhjYR68SHlkzeYrg3_bbuM,1051
|
412
|
+
airbyte_cdk-6.48.11.dist-info/LICENSE_SHORT,sha256=aqF6D1NcESmpn-cqsxBtszTEnHKnlsp8L4x9wAh3Nxg,55
|
413
|
+
airbyte_cdk-6.48.11.dist-info/METADATA,sha256=ZnfADeJfLiJ70Fuof0EhnxZ6qXMhJldpCBw6K0Jl5BM,6344
|
414
|
+
airbyte_cdk-6.48.11.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
|
415
|
+
airbyte_cdk-6.48.11.dist-info/entry_points.txt,sha256=AKWbEkHfpzzk9nF9tqBUaw1MbvTM4mGtEzmZQm0ZWvM,139
|
416
|
+
airbyte_cdk-6.48.11.dist-info/RECORD,,
|
{airbyte_cdk-6.48.10.post2.dev14974028993.dist-info → airbyte_cdk-6.48.11.dist-info}/LICENSE.txt
RENAMED
File without changes
|
{airbyte_cdk-6.48.10.post2.dev14974028993.dist-info → airbyte_cdk-6.48.11.dist-info}/LICENSE_SHORT
RENAMED
File without changes
|
File without changes
|
File without changes
|