airbyte-cdk 6.60.0.post21.dev16487663551__py3-none-any.whl → 6.60.0.post27.dev16505983549__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/connector_builder/main.py +12 -2
- airbyte_cdk/models/airbyte_protocol_serializers.py +2 -1
- {airbyte_cdk-6.60.0.post21.dev16487663551.dist-info → airbyte_cdk-6.60.0.post27.dev16505983549.dist-info}/METADATA +2 -1
- {airbyte_cdk-6.60.0.post21.dev16487663551.dist-info → airbyte_cdk-6.60.0.post27.dev16505983549.dist-info}/RECORD +8 -8
- {airbyte_cdk-6.60.0.post21.dev16487663551.dist-info → airbyte_cdk-6.60.0.post27.dev16505983549.dist-info}/LICENSE.txt +0 -0
- {airbyte_cdk-6.60.0.post21.dev16487663551.dist-info → airbyte_cdk-6.60.0.post27.dev16505983549.dist-info}/LICENSE_SHORT +0 -0
- {airbyte_cdk-6.60.0.post21.dev16487663551.dist-info → airbyte_cdk-6.60.0.post27.dev16505983549.dist-info}/WHEEL +0 -0
- {airbyte_cdk-6.60.0.post21.dev16487663551.dist-info → airbyte_cdk-6.60.0.post27.dev16505983549.dist-info}/entry_points.txt +0 -0
@@ -96,13 +96,23 @@ def handle_request(args: List[str]) -> str:
|
|
96
96
|
handle_connector_builder_request(source, command, config, catalog, state, limits)
|
97
97
|
)
|
98
98
|
|
99
|
+
def run(args: list[str] | None) -> None:
|
100
|
+
"""Run the connector builder handler."""
|
101
|
+
if args is None:
|
102
|
+
args = sys.argv[1:]
|
99
103
|
|
100
|
-
if __name__ == "__main__":
|
101
104
|
try:
|
102
|
-
|
105
|
+
result = handle_request(args)
|
106
|
+
print(result)
|
103
107
|
except Exception as exc:
|
104
108
|
error = AirbyteTracedException.from_exception(
|
105
109
|
exc, message=f"Error handling request: {str(exc)}"
|
106
110
|
)
|
107
111
|
m = error.as_airbyte_message()
|
108
112
|
print(ab_message_to_string(m))
|
113
|
+
sys.exit(1)
|
114
|
+
|
115
|
+
|
116
|
+
if __name__ == "__main__":
|
117
|
+
run(sys.argv[1:])
|
118
|
+
sys.exit(1)
|
@@ -5,6 +5,7 @@ import sys
|
|
5
5
|
from enum import Enum
|
6
6
|
from typing import Any, Callable, Dict, Type, TypeVar, cast
|
7
7
|
|
8
|
+
import dacite
|
8
9
|
import orjson
|
9
10
|
from pydantic import ValidationError
|
10
11
|
|
@@ -71,7 +72,7 @@ class CustomSerializer:
|
|
71
72
|
def load(self, data: Dict[str, Any]) -> T:
|
72
73
|
"""Convert dictionary to dataclass instance"""
|
73
74
|
# Handle custom types
|
74
|
-
return self.model_class
|
75
|
+
return dacite.from_dict(data_class=self.model_class, data=data)
|
75
76
|
|
76
77
|
def _serialize_nested(self, obj: Any) -> Any:
|
77
78
|
"""Helper to serialize nested objects"""
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: airbyte-cdk
|
3
|
-
Version: 6.60.0.
|
3
|
+
Version: 6.60.0.post27.dev16505983549
|
4
4
|
Summary: A framework for writing Airbyte Connectors.
|
5
5
|
Home-page: https://airbyte.com
|
6
6
|
License: MIT
|
@@ -32,6 +32,7 @@ Requires-Dist: cachetools
|
|
32
32
|
Requires-Dist: click (>=8.1.8,<9.0.0)
|
33
33
|
Requires-Dist: cohere (==4.21) ; extra == "vector-db-based"
|
34
34
|
Requires-Dist: cryptography (>=44.0.0,<46.0.0)
|
35
|
+
Requires-Dist: dacite (>=1.9.2,<2.0.0)
|
35
36
|
Requires-Dist: dateparser (>=1.2.2,<2.0.0)
|
36
37
|
Requires-Dist: dpath (>=2.1.6,<3.0.0)
|
37
38
|
Requires-Dist: dunamai (>=1.22.0,<2.0.0)
|
@@ -16,7 +16,7 @@ airbyte_cdk/connector.py,sha256=N6TUlrZOMjLAI85JrNAKkfyTqnO5xfBCw4oEfgjJd9o,4254
|
|
16
16
|
airbyte_cdk/connector_builder/README.md,sha256=Hw3wvVewuHG9-QgsAq1jDiKuLlStDxKBz52ftyNRnBw,1665
|
17
17
|
airbyte_cdk/connector_builder/__init__.py,sha256=4Hw-PX1-VgESLF16cDdvuYCzGJtHntThLF4qIiULWeo,61
|
18
18
|
airbyte_cdk/connector_builder/connector_builder_handler.py,sha256=OFTzxyfAevI3Um8fXTOLTgoCc4Sx9NzF0boqYkAATfM,6590
|
19
|
-
airbyte_cdk/connector_builder/main.py,sha256=
|
19
|
+
airbyte_cdk/connector_builder/main.py,sha256=jEV8i14SKaxdXTdaB3b2OiYVAma-GkjLLz3LDJT-YuU,3879
|
20
20
|
airbyte_cdk/connector_builder/models.py,sha256=9pIZ98LW_d6fRS39VdnUOf3cxGt4TkC5MJ0_OrzcCRk,1578
|
21
21
|
airbyte_cdk/connector_builder/test_reader/__init__.py,sha256=iTwBMoI9vaJotEgpqZbFjlxRcbxXYypSVJ9YxeHk7wc,120
|
22
22
|
airbyte_cdk/connector_builder/test_reader/helpers.py,sha256=Iczn-_iczS2CaIAunWwyFcX0uLTra8Wh9JVfzm1Gfxo,26765
|
@@ -50,7 +50,7 @@ airbyte_cdk/manifest_migrations/migrations/registry.yaml,sha256=F-hdapvl_vZnsI7C
|
|
50
50
|
airbyte_cdk/manifest_migrations/migrations_registry.py,sha256=zly2fwaOxDukqC7eowzrDlvhA2v71FjW74kDzvRXhSY,2619
|
51
51
|
airbyte_cdk/models/__init__.py,sha256=EUxQ9zcq5PZLsnUo30pxoB-pT4UHumtoCqlljjoqd3g,2065
|
52
52
|
airbyte_cdk/models/airbyte_protocol.py,sha256=R1G1lvnBDRCZDa9_9Mgy5OEeyMXbvGWsDOnwQkImRKA,266
|
53
|
-
airbyte_cdk/models/airbyte_protocol_serializers.py,sha256=
|
53
|
+
airbyte_cdk/models/airbyte_protocol_serializers.py,sha256=G4Z5leUolK1qMOmLtyt-xlDfek875TA_RVOcom-vurQ,6144
|
54
54
|
airbyte_cdk/models/connector_metadata.py,sha256=BD6CO8c3mHavxRJAcwP29sHtNNVLVSNFNQLgHOVxrwA,3229
|
55
55
|
airbyte_cdk/models/well_known_types.py,sha256=EquepbisGPuCSrs_D7YVVnMR9-ShhUr21wnFz3COiJs,156
|
56
56
|
airbyte_cdk/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
@@ -424,9 +424,9 @@ airbyte_cdk/utils/slice_hasher.py,sha256=EDxgROHDbfG-QKQb59m7h_7crN1tRiawdf5uU7G
|
|
424
424
|
airbyte_cdk/utils/spec_schema_transformations.py,sha256=-5HTuNsnDBAhj-oLeQXwpTGA0HdcjFOf2zTEMUTTg_Y,816
|
425
425
|
airbyte_cdk/utils/stream_status_utils.py,sha256=ZmBoiy5HVbUEHAMrUONxZvxnvfV9CesmQJLDTAIWnWw,1171
|
426
426
|
airbyte_cdk/utils/traced_exception.py,sha256=bc5jMk8Z3AnSL-vqsgPCNgHzWqGTKZODHSg7VHiUyj0,6256
|
427
|
-
airbyte_cdk-6.60.0.
|
428
|
-
airbyte_cdk-6.60.0.
|
429
|
-
airbyte_cdk-6.60.0.
|
430
|
-
airbyte_cdk-6.60.0.
|
431
|
-
airbyte_cdk-6.60.0.
|
432
|
-
airbyte_cdk-6.60.0.
|
427
|
+
airbyte_cdk-6.60.0.post27.dev16505983549.dist-info/LICENSE.txt,sha256=Wfe61S4BaGPj404v8lrAbvhjYR68SHlkzeYrg3_bbuM,1051
|
428
|
+
airbyte_cdk-6.60.0.post27.dev16505983549.dist-info/LICENSE_SHORT,sha256=aqF6D1NcESmpn-cqsxBtszTEnHKnlsp8L4x9wAh3Nxg,55
|
429
|
+
airbyte_cdk-6.60.0.post27.dev16505983549.dist-info/METADATA,sha256=h1K2dN5iczZX7peA91FL7dIhU5KQePdl7eW6_4I4wyc,6551
|
430
|
+
airbyte_cdk-6.60.0.post27.dev16505983549.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
|
431
|
+
airbyte_cdk-6.60.0.post27.dev16505983549.dist-info/entry_points.txt,sha256=AKWbEkHfpzzk9nF9tqBUaw1MbvTM4mGtEzmZQm0ZWvM,139
|
432
|
+
airbyte_cdk-6.60.0.post27.dev16505983549.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|