airbyte-cdk 6.48.7.dev10__py3-none-any.whl → 6.48.7.dev12__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.
@@ -2,6 +2,10 @@
2
2
  # Copyright (c) 2023 Airbyte, Inc., all rights reserved.
3
3
  #
4
4
 
5
+ """
6
+ This file is necessary because the `AirbyteStateBlob` implementation in the protocol lib is incomplete and given we use the incomplete implementation, we will get `TypeError: AirbyteStateBlob.__init__() takes 1 positional argument but 2 were given`. Hence, we need to redefine all the classes that could serialize AirbyteStateBlob to use the CDK implementation, not the protocol lib one.
7
+ """
8
+
5
9
  from dataclasses import InitVar, dataclass
6
10
  from typing import Annotated, Any, Dict, List, Mapping, Optional, Union
7
11
 
@@ -86,3 +90,4 @@ class AirbyteMessage:
86
90
  state: Optional[AirbyteStateMessage] = None
87
91
  trace: Optional[AirbyteTraceMessage] = None # type: ignore [name-defined]
88
92
  control: Optional[AirbyteControlMessage] = None # type: ignore [name-defined]
93
+ destination_catalog: Optional[DestinationCatalog] = None # type: ignore [name-defined]
@@ -1,10 +1,9 @@
1
1
  # Copyright (c) 2024 Airbyte, Inc., all rights reserved.
2
2
  from typing import Any, Dict
3
3
 
4
- from airbyte_protocol_dataclasses.models import ( # type: ignore[attr-defined] # all classes are imported to airbyte_protocol via *
4
+ from .airbyte_protocol import ( # type: ignore[attr-defined] # all classes are imported to airbyte_protocol via *
5
5
  AirbyteMessage,
6
6
  AirbyteStateBlob,
7
- AirbyteStateMessage,
8
7
  AirbyteStreamState,
9
8
  ConfiguredAirbyteCatalog,
10
9
  ConfiguredAirbyteStream,
@@ -13,6 +12,7 @@ from airbyte_protocol_dataclasses.models import ( # type: ignore[attr-defined]
13
12
  from serpyco_rs import CustomType, Serializer
14
13
 
15
14
 
15
+
16
16
  class AirbyteStateBlobType(CustomType[AirbyteStateBlob, Dict[str, Any]]):
17
17
  def serialize(self, value: AirbyteStateBlob) -> Dict[str, Any]:
18
18
  # cant use orjson.dumps() directly because private attributes are excluded, e.g. "__ab_full_refresh_sync_complete"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: airbyte-cdk
3
- Version: 6.48.7.dev10
3
+ Version: 6.48.7.dev12
4
4
  Summary: A framework for writing Airbyte Connectors.
5
5
  Home-page: https://airbyte.com
6
6
  License: MIT
@@ -48,8 +48,8 @@ airbyte_cdk/manifest_migrations/migrations/http_requester_url_base_to_url.py,sha
48
48
  airbyte_cdk/manifest_migrations/migrations/registry.yaml,sha256=K5KBQ2C1T_dWExEJFuEAe1VO_QqOijOCh90rnUOCEyc,960
49
49
  airbyte_cdk/manifest_migrations/migrations_registry.py,sha256=zly2fwaOxDukqC7eowzrDlvhA2v71FjW74kDzvRXhSY,2619
50
50
  airbyte_cdk/models/__init__.py,sha256=KT-YKQNphQhwqbDoMmiZyUP3tZSmbZpjAETDidCHv0k,2164
51
- airbyte_cdk/models/airbyte_protocol.py,sha256=oZdKsZ7yPjUt9hvxdWNpxCtgjSV2RWhf4R9Np03sqyY,3613
52
- airbyte_cdk/models/airbyte_protocol_serializers.py,sha256=07lFuTW5o2YbNvRGy26NaywSTIwhGiywrkAfBZGlgtk,1766
51
+ airbyte_cdk/models/airbyte_protocol.py,sha256=KAWEl0WqWkfo48QdjCyEq3h4z_pK8DRC5-_KoV6_Za8,4102
52
+ airbyte_cdk/models/airbyte_protocol_serializers.py,sha256=urTBJhxLhWwAcOBHaSGOotzM4lZQOpfl09SrphSgUAU,1724
53
53
  airbyte_cdk/models/connector_metadata.py,sha256=Lwb0JKiWvnqHduXjHHgBBBhTsGoLiNjxbG93W_OjcKQ,2875
54
54
  airbyte_cdk/models/well_known_types.py,sha256=EquepbisGPuCSrs_D7YVVnMR9-ShhUr21wnFz3COiJs,156
55
55
  airbyte_cdk/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -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.7.dev10.dist-info/LICENSE.txt,sha256=Wfe61S4BaGPj404v8lrAbvhjYR68SHlkzeYrg3_bbuM,1051
412
- airbyte_cdk-6.48.7.dev10.dist-info/LICENSE_SHORT,sha256=aqF6D1NcESmpn-cqsxBtszTEnHKnlsp8L4x9wAh3Nxg,55
413
- airbyte_cdk-6.48.7.dev10.dist-info/METADATA,sha256=ewrLChQjc1TKCLUOsSuVlocuusKgYSjgeCEOHcWtcWk,6345
414
- airbyte_cdk-6.48.7.dev10.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
415
- airbyte_cdk-6.48.7.dev10.dist-info/entry_points.txt,sha256=AKWbEkHfpzzk9nF9tqBUaw1MbvTM4mGtEzmZQm0ZWvM,139
416
- airbyte_cdk-6.48.7.dev10.dist-info/RECORD,,
411
+ airbyte_cdk-6.48.7.dev12.dist-info/LICENSE.txt,sha256=Wfe61S4BaGPj404v8lrAbvhjYR68SHlkzeYrg3_bbuM,1051
412
+ airbyte_cdk-6.48.7.dev12.dist-info/LICENSE_SHORT,sha256=aqF6D1NcESmpn-cqsxBtszTEnHKnlsp8L4x9wAh3Nxg,55
413
+ airbyte_cdk-6.48.7.dev12.dist-info/METADATA,sha256=xZD89_qoBEXbMPXS2i6dtTYhfBdHoDq1PKFZDyZIDQg,6345
414
+ airbyte_cdk-6.48.7.dev12.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
415
+ airbyte_cdk-6.48.7.dev12.dist-info/entry_points.txt,sha256=AKWbEkHfpzzk9nF9tqBUaw1MbvTM4mGtEzmZQm0ZWvM,139
416
+ airbyte_cdk-6.48.7.dev12.dist-info/RECORD,,