airbyte-cdk 6.62.0.dev1__py3-none-any.whl → 6.62.0.dev3__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.
@@ -2062,6 +2062,7 @@ class ModelToComponentFactory:
2062
2062
  primary_key=primary_key,
2063
2063
  request_options_provider=request_options_provider,
2064
2064
  stream_slicer=stream_slicer,
2065
+ partition_router=partition_router,
2065
2066
  stop_condition_cursor=concurrent_cursor
2066
2067
  if self._is_stop_condition_on_cursor(model)
2067
2068
  else None,
@@ -2524,7 +2525,7 @@ class ModelToComponentFactory:
2524
2525
  config=config,
2525
2526
  name=name,
2526
2527
  primary_key=None,
2527
- stream_slicer=self._build_stream_slicer_from_partition_router(model.retriever, config),
2528
+ partition_router=self._build_stream_slicer_from_partition_router(model.retriever, config),
2528
2529
  transformations=[],
2529
2530
  use_cache=True,
2530
2531
  log_formatter=(
@@ -3139,6 +3140,7 @@ class ModelToComponentFactory:
3139
3140
  ] = None,
3140
3141
  use_cache: Optional[bool] = None,
3141
3142
  log_formatter: Optional[Callable[[Response], Any]] = None,
3143
+ partition_router: Optional[PartitionRouter] = None,
3142
3144
  **kwargs: Any,
3143
3145
  ) -> SimpleRetriever:
3144
3146
  def _get_url(req: Requester) -> str:
@@ -3155,7 +3157,7 @@ class ModelToComponentFactory:
3155
3157
  _url_base: str = (
3156
3158
  model.requester.url_base
3157
3159
  if hasattr(model.requester, "url_base") and model.requester.url_base is not None
3158
- else req.get_url(stream_state=None, stream_slice=None, next_page_token=None)
3160
+ else req.get_url_base(stream_state=None, stream_slice=None, next_page_token=None)
3159
3161
  )
3160
3162
 
3161
3163
  return _url or _url_base
@@ -3236,6 +3238,8 @@ class ModelToComponentFactory:
3236
3238
 
3237
3239
  if not request_options_provider:
3238
3240
  request_options_provider = DefaultRequestOptionsProvider(parameters={})
3241
+ if isinstance(request_options_provider, DefaultRequestOptionsProvider) and isinstance(partition_router, PartitionRouter):
3242
+ request_options_provider = partition_router
3239
3243
 
3240
3244
  paginator = (
3241
3245
  self._create_component_from_model(
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: airbyte-cdk
3
- Version: 6.62.0.dev1
3
+ Version: 6.62.0.dev3
4
4
  Summary: A framework for writing Airbyte Connectors.
5
5
  Home-page: https://airbyte.com
6
6
  License: MIT
@@ -170,7 +170,7 @@ airbyte_cdk/sources/declarative/parsers/custom_exceptions.py,sha256=wnRUP0Xeru9R
170
170
  airbyte_cdk/sources/declarative/parsers/manifest_component_transformer.py,sha256=2UdpCz3yi7ISZTyqkQXSSy3dMxeyOWqV7OlAS5b9GVg,11568
171
171
  airbyte_cdk/sources/declarative/parsers/manifest_normalizer.py,sha256=EtKjS9c94yNp3AwQC8KUCQaAYW5T3zvFYxoWYjc_buI,19729
172
172
  airbyte_cdk/sources/declarative/parsers/manifest_reference_resolver.py,sha256=pJmg78vqE5VfUrF_KJnWjucQ4k9IWFULeAxHCowrHXE,6806
173
- airbyte_cdk/sources/declarative/parsers/model_to_component_factory.py,sha256=B87vl-AjuBLMhZf8LWm82i382PWilDsm1W_KKtVe9eg,182647
173
+ airbyte_cdk/sources/declarative/parsers/model_to_component_factory.py,sha256=-PnVpIzMgYuAaQf08pem0nIRRNCUtJMcJiGawXB1iQs,182948
174
174
  airbyte_cdk/sources/declarative/partition_routers/__init__.py,sha256=TBC9AkGaUqHm2IKHMPN6punBIcY5tWGULowcLoAVkfw,1109
175
175
  airbyte_cdk/sources/declarative/partition_routers/async_job_partition_router.py,sha256=VelO7zKqKtzMJ35jyFeg0ypJLQC0plqqIBNXoBW1G2E,3001
176
176
  airbyte_cdk/sources/declarative/partition_routers/cartesian_product_stream_slicer.py,sha256=ocm4hZ4k-tEGs5HLrtI8ecWSK0hGqNH0Rvz2byx_HZk,6927
@@ -455,9 +455,9 @@ airbyte_cdk/utils/slice_hasher.py,sha256=EDxgROHDbfG-QKQb59m7h_7crN1tRiawdf5uU7G
455
455
  airbyte_cdk/utils/spec_schema_transformations.py,sha256=-5HTuNsnDBAhj-oLeQXwpTGA0HdcjFOf2zTEMUTTg_Y,816
456
456
  airbyte_cdk/utils/stream_status_utils.py,sha256=ZmBoiy5HVbUEHAMrUONxZvxnvfV9CesmQJLDTAIWnWw,1171
457
457
  airbyte_cdk/utils/traced_exception.py,sha256=C8uIBuCL_E4WnBAOPSxBicD06JAldoN9fGsQDp463OY,6292
458
- airbyte_cdk-6.62.0.dev1.dist-info/LICENSE.txt,sha256=Wfe61S4BaGPj404v8lrAbvhjYR68SHlkzeYrg3_bbuM,1051
459
- airbyte_cdk-6.62.0.dev1.dist-info/LICENSE_SHORT,sha256=aqF6D1NcESmpn-cqsxBtszTEnHKnlsp8L4x9wAh3Nxg,55
460
- airbyte_cdk-6.62.0.dev1.dist-info/METADATA,sha256=7VT5Fx33XrGXzZsxmLK7CAMOmiSFuEDjZ-_zboMOGLQ,6700
461
- airbyte_cdk-6.62.0.dev1.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
462
- airbyte_cdk-6.62.0.dev1.dist-info/entry_points.txt,sha256=eLZ2UYvJZGm1s07Pplcs--1Gim60YhZWTb53j_dghwU,195
463
- airbyte_cdk-6.62.0.dev1.dist-info/RECORD,,
458
+ airbyte_cdk-6.62.0.dev3.dist-info/LICENSE.txt,sha256=Wfe61S4BaGPj404v8lrAbvhjYR68SHlkzeYrg3_bbuM,1051
459
+ airbyte_cdk-6.62.0.dev3.dist-info/LICENSE_SHORT,sha256=aqF6D1NcESmpn-cqsxBtszTEnHKnlsp8L4x9wAh3Nxg,55
460
+ airbyte_cdk-6.62.0.dev3.dist-info/METADATA,sha256=bBF_cVpvBc8XS0dqXECO7GZiMCtuDAMbJYm2tj7bCNc,6700
461
+ airbyte_cdk-6.62.0.dev3.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
462
+ airbyte_cdk-6.62.0.dev3.dist-info/entry_points.txt,sha256=eLZ2UYvJZGm1s07Pplcs--1Gim60YhZWTb53j_dghwU,195
463
+ airbyte_cdk-6.62.0.dev3.dist-info/RECORD,,