airbyte-cdk 7.3.4__py3-none-any.whl → 7.3.6__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.
@@ -64,16 +64,7 @@ def build_source(
64
64
  page_limit: Optional[int] = None,
65
65
  slice_limit: Optional[int] = None,
66
66
  ) -> ConcurrentDeclarativeSource:
67
- # We enforce a concurrency level of 1 so that the stream is processed on a single thread
68
- # to retain ordering for the grouping of the builder message responses.
69
67
  definition = copy.deepcopy(manifest)
70
- if "concurrency_level" in definition:
71
- definition["concurrency_level"]["default_concurrency"] = 1
72
- else:
73
- definition["concurrency_level"] = {
74
- "type": "ConcurrencyLevel",
75
- "default_concurrency": 1,
76
- }
77
68
 
78
69
  should_normalize = should_normalize_manifest(manifest)
79
70
  if should_normalize:
@@ -87,8 +87,19 @@ def test_read(request: StreamTestReadRequest) -> StreamReadResponse:
87
87
  "md5": hashlib.md5(request.custom_components_code.encode()).hexdigest()
88
88
  }
89
89
 
90
+ # We enforce a concurrency level of 1 so that the stream is processed on a single thread
91
+ # to retain ordering for the grouping of the builder message responses.
92
+ manifest = request.manifest.model_dump()
93
+ if "concurrency_level" in manifest:
94
+ manifest["concurrency_level"]["default_concurrency"] = 1
95
+ else:
96
+ manifest["concurrency_level"] = {
97
+ "type": "ConcurrencyLevel",
98
+ "default_concurrency": 1,
99
+ }
100
+
90
101
  source = safe_build_source(
91
- request.manifest.model_dump(),
102
+ manifest,
92
103
  config_dict,
93
104
  catalog,
94
105
  converted_state,
@@ -3865,7 +3865,9 @@ class ModelToComponentFactory:
3865
3865
 
3866
3866
  if not parent_state and not isinstance(parent_state, dict):
3867
3867
  cursor_values = child_state.values()
3868
- if cursor_values:
3868
+ if cursor_values and len(cursor_values) == 1:
3869
+ # We assume the child state is a pair `{<cursor_field>: <cursor_value>}` and we will use the
3870
+ # cursor value as a parent state.
3869
3871
  incremental_sync_model: Union[
3870
3872
  DatetimeBasedCursorModel,
3871
3873
  IncrementingCountCursorModel,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: airbyte-cdk
3
- Version: 7.3.4
3
+ Version: 7.3.6
4
4
  Summary: A framework for writing Airbyte Connectors.
5
5
  Home-page: https://airbyte.com
6
6
  License: MIT
@@ -78,7 +78,7 @@ airbyte_cdk/manifest_server/cli/_start.py,sha256=SgkW_dQcpCIrXYNZ6qF95oYIVaCszm9
78
78
  airbyte_cdk/manifest_server/cli/run.py,sha256=-Yv_Jv_hDeMBVZdzuyeJJ_JBT1WUhCyUQn4f4mA21Ds,1224
79
79
  airbyte_cdk/manifest_server/command_processor/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
80
80
  airbyte_cdk/manifest_server/command_processor/processor.py,sha256=BZPASuhPJix78NB7rD1xuxWfL1TmqdnOEa_8WR1R2FI,3741
81
- airbyte_cdk/manifest_server/command_processor/utils.py,sha256=EbZAbX91n12g2TCqOWBUi8KKqdz2Ccrw2FAIN5JT2B8,3184
81
+ airbyte_cdk/manifest_server/command_processor/utils.py,sha256=IXkLXOfx3HzuAErklrQH-vAciRvfegVXAUc6L970FPk,2764
82
82
  airbyte_cdk/manifest_server/helpers/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
83
83
  airbyte_cdk/manifest_server/helpers/auth.py,sha256=kKET6zg4olyf8p_UMcTnm7vkAtowxK6loSf8o83SdEM,1264
84
84
  airbyte_cdk/manifest_server/helpers/tracing.py,sha256=J-Yi5YP4ZrUfG1eN7jNVJR_eldfJBki3Sbke-uWpGe0,1021
@@ -87,7 +87,7 @@ airbyte_cdk/manifest_server/openapi.yaml,sha256=NL0mQQFS1iHIRpkDT2EfkFcO1QelgZmh
87
87
  airbyte_cdk/manifest_server/routers/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
88
88
  airbyte_cdk/manifest_server/routers/capabilities.py,sha256=UeZQzbqEuDN23vizgDb_N7KEXR-YZUPnW5AkXeXy1hA,727
89
89
  airbyte_cdk/manifest_server/routers/health.py,sha256=akBUaHUGN-jmN82lQ3kj_3-wdS6gsZx3iSD2KMI5dW8,200
90
- airbyte_cdk/manifest_server/routers/manifest.py,sha256=igFMW2TO-u3Iw_rVY5gTBq4kJagt2PdcLFWQCd0lVO8,6741
90
+ airbyte_cdk/manifest_server/routers/manifest.py,sha256=3dCaqIVzezW0rmBGi177xcPfMd7E4tbjx--ssNNCdVI,7180
91
91
  airbyte_cdk/models/__init__.py,sha256=Et9wJWs5VOWynGbb-3aJRhsdAHAiLkNNLxdwqJAuqkw,2114
92
92
  airbyte_cdk/models/airbyte_protocol.py,sha256=oZdKsZ7yPjUt9hvxdWNpxCtgjSV2RWhf4R9Np03sqyY,3613
93
93
  airbyte_cdk/models/airbyte_protocol_serializers.py,sha256=Dq4ry_Wwvzsos6neDiaOZkY6riQYC33ZlPNWpfIIB1E,1926
@@ -172,7 +172,7 @@ airbyte_cdk/sources/declarative/parsers/custom_exceptions.py,sha256=wnRUP0Xeru9R
172
172
  airbyte_cdk/sources/declarative/parsers/manifest_component_transformer.py,sha256=la9Ulpc0lQewiBLKJ0FpsWxyU5XISv-ulmFRHJLJ1Pc,11292
173
173
  airbyte_cdk/sources/declarative/parsers/manifest_normalizer.py,sha256=EtKjS9c94yNp3AwQC8KUCQaAYW5T3zvFYxoWYjc_buI,19729
174
174
  airbyte_cdk/sources/declarative/parsers/manifest_reference_resolver.py,sha256=pJmg78vqE5VfUrF_KJnWjucQ4k9IWFULeAxHCowrHXE,6806
175
- airbyte_cdk/sources/declarative/parsers/model_to_component_factory.py,sha256=AgZ7mRbXVZHWTftPuDdH6wTanZPGi_dxtiu2dSxyWjs,188331
175
+ airbyte_cdk/sources/declarative/parsers/model_to_component_factory.py,sha256=OPa_uDIvjv_v6pWmPCEXi0Ws-2jaGMezs9rBlm8Xa8I,188534
176
176
  airbyte_cdk/sources/declarative/partition_routers/__init__.py,sha256=TBC9AkGaUqHm2IKHMPN6punBIcY5tWGULowcLoAVkfw,1109
177
177
  airbyte_cdk/sources/declarative/partition_routers/async_job_partition_router.py,sha256=VelO7zKqKtzMJ35jyFeg0ypJLQC0plqqIBNXoBW1G2E,3001
178
178
  airbyte_cdk/sources/declarative/partition_routers/cartesian_product_stream_slicer.py,sha256=ocm4hZ4k-tEGs5HLrtI8ecWSK0hGqNH0Rvz2byx_HZk,6927
@@ -459,9 +459,9 @@ airbyte_cdk/utils/slice_hasher.py,sha256=EDxgROHDbfG-QKQb59m7h_7crN1tRiawdf5uU7G
459
459
  airbyte_cdk/utils/spec_schema_transformations.py,sha256=9YDJmnIGFsT51CVQf2tSSvTapGimITjEFGbUTSZAGTI,963
460
460
  airbyte_cdk/utils/stream_status_utils.py,sha256=ZmBoiy5HVbUEHAMrUONxZvxnvfV9CesmQJLDTAIWnWw,1171
461
461
  airbyte_cdk/utils/traced_exception.py,sha256=C8uIBuCL_E4WnBAOPSxBicD06JAldoN9fGsQDp463OY,6292
462
- airbyte_cdk-7.3.4.dist-info/LICENSE.txt,sha256=Wfe61S4BaGPj404v8lrAbvhjYR68SHlkzeYrg3_bbuM,1051
463
- airbyte_cdk-7.3.4.dist-info/LICENSE_SHORT,sha256=aqF6D1NcESmpn-cqsxBtszTEnHKnlsp8L4x9wAh3Nxg,55
464
- airbyte_cdk-7.3.4.dist-info/METADATA,sha256=Xh8Ml6qZiVUj1ykjQuf-IXjGhYoawWQHpg0sA8owFNI,6798
465
- airbyte_cdk-7.3.4.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
466
- airbyte_cdk-7.3.4.dist-info/entry_points.txt,sha256=eLZ2UYvJZGm1s07Pplcs--1Gim60YhZWTb53j_dghwU,195
467
- airbyte_cdk-7.3.4.dist-info/RECORD,,
462
+ airbyte_cdk-7.3.6.dist-info/LICENSE.txt,sha256=Wfe61S4BaGPj404v8lrAbvhjYR68SHlkzeYrg3_bbuM,1051
463
+ airbyte_cdk-7.3.6.dist-info/LICENSE_SHORT,sha256=aqF6D1NcESmpn-cqsxBtszTEnHKnlsp8L4x9wAh3Nxg,55
464
+ airbyte_cdk-7.3.6.dist-info/METADATA,sha256=t8_VADjdcKhQY5UGQQKhnqrLE6HGPn2_kWjsJD2MCi0,6798
465
+ airbyte_cdk-7.3.6.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
466
+ airbyte_cdk-7.3.6.dist-info/entry_points.txt,sha256=eLZ2UYvJZGm1s07Pplcs--1Gim60YhZWTb53j_dghwU,195
467
+ airbyte_cdk-7.3.6.dist-info/RECORD,,