airbyte-cdk 6.60.0__py3-none-any.whl → 6.60.0.post8.dev16482866899__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/models/airbyte_protocol.py +6 -1
- airbyte_cdk/models/airbyte_protocol_serializers.py +9 -2
- airbyte_cdk/test/entrypoint_wrapper.py +6 -1
- {airbyte_cdk-6.60.0.dist-info → airbyte_cdk-6.60.0.post8.dev16482866899.dist-info}/METADATA +4 -5
- {airbyte_cdk-6.60.0.dist-info → airbyte_cdk-6.60.0.post8.dev16482866899.dist-info}/RECORD +9 -9
- {airbyte_cdk-6.60.0.dist-info → airbyte_cdk-6.60.0.post8.dev16482866899.dist-info}/LICENSE.txt +0 -0
- {airbyte_cdk-6.60.0.dist-info → airbyte_cdk-6.60.0.post8.dev16482866899.dist-info}/LICENSE_SHORT +0 -0
- {airbyte_cdk-6.60.0.dist-info → airbyte_cdk-6.60.0.post8.dev16482866899.dist-info}/WHEEL +0 -0
- {airbyte_cdk-6.60.0.dist-info → airbyte_cdk-6.60.0.post8.dev16482866899.dist-info}/entry_points.txt +0 -0
@@ -2,11 +2,16 @@
|
|
2
2
|
# Copyright (c) 2023 Airbyte, Inc., all rights reserved.
|
3
3
|
#
|
4
4
|
|
5
|
+
import sys
|
5
6
|
from dataclasses import InitVar, dataclass
|
6
7
|
from typing import Annotated, Any, Dict, List, Mapping, Optional, Union
|
7
8
|
|
8
9
|
from airbyte_protocol_dataclasses.models import * # noqa: F403 # Allow '*'
|
9
|
-
|
10
|
+
|
11
|
+
if sys.platform == 'emscripten':
|
12
|
+
from serpyco.metadata import Alias
|
13
|
+
else:
|
14
|
+
from serpyco_rs.metadata import Alias
|
10
15
|
|
11
16
|
# ruff: noqa: F405 # ignore fuzzy import issues with 'import *'
|
12
17
|
|
@@ -1,8 +1,7 @@
|
|
1
1
|
# Copyright (c) 2024 Airbyte, Inc., all rights reserved.
|
2
|
+
import sys
|
2
3
|
from typing import Any, Dict
|
3
4
|
|
4
|
-
from serpyco_rs import CustomType, Serializer
|
5
|
-
|
6
5
|
from .airbyte_protocol import ( # type: ignore[attr-defined] # all classes are imported to airbyte_protocol via *
|
7
6
|
AirbyteCatalog,
|
8
7
|
AirbyteMessage,
|
@@ -15,6 +14,14 @@ from .airbyte_protocol import ( # type: ignore[attr-defined] # all classes are
|
|
15
14
|
ConnectorSpecification,
|
16
15
|
)
|
17
16
|
|
17
|
+
USE_RUST_BACKEND = sys.platform != "emscripten"
|
18
|
+
"""When run in WASM, use the pure Python backend for serpyco."""
|
19
|
+
|
20
|
+
if USE_RUST_BACKEND:
|
21
|
+
from serpyco_rs import CustomType, Serializer
|
22
|
+
else:
|
23
|
+
from serpyco import CustomType, Serializer
|
24
|
+
|
18
25
|
|
19
26
|
class AirbyteStateBlobType(CustomType[AirbyteStateBlob, Dict[str, Any]]):
|
20
27
|
def serialize(self, value: AirbyteStateBlob) -> Dict[str, Any]:
|
@@ -17,6 +17,7 @@ than that, there are integrations point that are annoying to integrate with usin
|
|
17
17
|
import json
|
18
18
|
import logging
|
19
19
|
import re
|
20
|
+
import sys
|
20
21
|
import tempfile
|
21
22
|
import traceback
|
22
23
|
from collections import deque
|
@@ -28,7 +29,11 @@ from typing import Any, List, Literal, Optional, Union, final, overload
|
|
28
29
|
|
29
30
|
import orjson
|
30
31
|
from pydantic import ValidationError as V2ValidationError
|
31
|
-
|
32
|
+
|
33
|
+
if sys.platform == 'emscripten':
|
34
|
+
from serpyco import SchemaValidationError
|
35
|
+
else:
|
36
|
+
from serpyco_rs import SchemaValidationError
|
32
37
|
|
33
38
|
from airbyte_cdk.entrypoint import AirbyteEntrypoint
|
34
39
|
from airbyte_cdk.exception_handler import assemble_uncaught_exception
|
@@ -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.post8.dev16482866899
|
4
4
|
Summary: A framework for writing Airbyte Connectors.
|
5
5
|
Home-page: https://airbyte.com
|
6
6
|
License: MIT
|
@@ -37,7 +37,7 @@ Requires-Dist: dpath (>=2.1.6,<3.0.0)
|
|
37
37
|
Requires-Dist: dunamai (>=1.22.0,<2.0.0)
|
38
38
|
Requires-Dist: fastavro (>=1.8.0,<1.9.0) ; extra == "file-based"
|
39
39
|
Requires-Dist: genson (==1.3.0)
|
40
|
-
Requires-Dist: google-cloud-secret-manager (>=2.17.0,<3.0.0)
|
40
|
+
Requires-Dist: google-cloud-secret-manager (>=2.17.0,<3.0.0) ; extra == "dev"
|
41
41
|
Requires-Dist: isodate (>=0.6.1,<0.7.0)
|
42
42
|
Requires-Dist: jsonref (>=0.2,<0.3)
|
43
43
|
Requires-Dist: jsonschema (>=4.17.3,<4.18.0)
|
@@ -52,7 +52,6 @@ Requires-Dist: packaging
|
|
52
52
|
Requires-Dist: pandas (==2.2.2)
|
53
53
|
Requires-Dist: pdf2image (==1.16.3) ; extra == "file-based"
|
54
54
|
Requires-Dist: pdfminer.six (==20221105) ; extra == "file-based"
|
55
|
-
Requires-Dist: psutil (==6.1.0)
|
56
55
|
Requires-Dist: pyarrow (>=19.0.0,<20.0.0) ; extra == "file-based"
|
57
56
|
Requires-Dist: pydantic (>=2.7,<3.0)
|
58
57
|
Requires-Dist: pyjwt (>=2.8.0,<3.0.0)
|
@@ -64,12 +63,12 @@ Requires-Dist: python-dateutil (>=2.9.0,<3.0.0)
|
|
64
63
|
Requires-Dist: python-snappy (==0.7.3) ; extra == "file-based"
|
65
64
|
Requires-Dist: python-ulid (>=3.0.0,<4.0.0)
|
66
65
|
Requires-Dist: pytz (==2024.2)
|
67
|
-
Requires-Dist: rapidfuzz (>=3.10.1,<4.0.0)
|
68
66
|
Requires-Dist: requests
|
69
67
|
Requires-Dist: requests_cache
|
70
68
|
Requires-Dist: rich
|
71
69
|
Requires-Dist: rich-click (>=1.8.8,<2.0.0)
|
72
|
-
Requires-Dist: serpyco
|
70
|
+
Requires-Dist: serpyco (>=1.3.0,<2.0.0) ; sys_platform == "emscripten"
|
71
|
+
Requires-Dist: serpyco-rs (>=1.10.2,<2.0.0) ; sys_platform != "emscripten"
|
73
72
|
Requires-Dist: setuptools (>=80.9.0,<81.0.0)
|
74
73
|
Requires-Dist: sqlalchemy (>=2.0,<3.0,!=2.0.36) ; extra == "sql"
|
75
74
|
Requires-Dist: tiktoken (==0.8.0) ; extra == "vector-db-based"
|
@@ -49,8 +49,8 @@ airbyte_cdk/manifest_migrations/migrations/http_requester_url_base_to_url.py,sha
|
|
49
49
|
airbyte_cdk/manifest_migrations/migrations/registry.yaml,sha256=F-hdapvl_vZnsI7CQsV00Rb7g7j4Nt2zaM83-Tbwgbg,956
|
50
50
|
airbyte_cdk/manifest_migrations/migrations_registry.py,sha256=zly2fwaOxDukqC7eowzrDlvhA2v71FjW74kDzvRXhSY,2619
|
51
51
|
airbyte_cdk/models/__init__.py,sha256=Et9wJWs5VOWynGbb-3aJRhsdAHAiLkNNLxdwqJAuqkw,2114
|
52
|
-
airbyte_cdk/models/airbyte_protocol.py,sha256=
|
53
|
-
airbyte_cdk/models/airbyte_protocol_serializers.py,sha256=
|
52
|
+
airbyte_cdk/models/airbyte_protocol.py,sha256=KpKBePA74K_ay231JBIuQVePCwZa-b8qb0RKRdy-nGk,3707
|
53
|
+
airbyte_cdk/models/airbyte_protocol_serializers.py,sha256=Rx7UXQOWckJ2BVkcM6vdVc3I4Tx17Ze4g5h75y8oY0Q,2129
|
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
|
@@ -380,7 +380,7 @@ airbyte_cdk/sql/shared/sql_processor.py,sha256=jR-hdLZsPf2sNBa_wvWKLvys8ZJ-SQCIi
|
|
380
380
|
airbyte_cdk/sql/types.py,sha256=XEIhRAo_ASd0kVLBkdLf5bHiRhNple-IJrC9TibcDdY,5880
|
381
381
|
airbyte_cdk/test/__init__.py,sha256=f_XdkOg4_63QT2k3BbKY34209lppwgw-svzfZstQEq4,199
|
382
382
|
airbyte_cdk/test/catalog_builder.py,sha256=-y05Cz1x0Dlk6oE9LSKhCozssV2gYBNtMdV5YYOPOtk,3015
|
383
|
-
airbyte_cdk/test/entrypoint_wrapper.py,sha256=
|
383
|
+
airbyte_cdk/test/entrypoint_wrapper.py,sha256=RLWFMu01DnvAJr3wPcjQbMmb2OLNNKBEBPP0NTBhu44,18090
|
384
384
|
airbyte_cdk/test/mock_http/__init__.py,sha256=jE5kC6CQ0OXkTqKhciDnNVZHesBFVIA2YvkdFGwva7k,322
|
385
385
|
airbyte_cdk/test/mock_http/matcher.py,sha256=4Qj8UnJKZIs-eodshryce3SN1Ayc8GZpBETmP6hTEyc,1446
|
386
386
|
airbyte_cdk/test/mock_http/mocker.py,sha256=XgsjMtVoeMpRELPyALgrkHFauH9H5irxrz1Kcxh2yFY,8013
|
@@ -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=C8uIBuCL_E4WnBAOPSxBicD06JAldoN9fGsQDp463OY,6292
|
427
|
-
airbyte_cdk-6.60.0.dist-info/LICENSE.txt,sha256=Wfe61S4BaGPj404v8lrAbvhjYR68SHlkzeYrg3_bbuM,1051
|
428
|
-
airbyte_cdk-6.60.0.dist-info/LICENSE_SHORT,sha256=aqF6D1NcESmpn-cqsxBtszTEnHKnlsp8L4x9wAh3Nxg,55
|
429
|
-
airbyte_cdk-6.60.0.dist-info/METADATA,sha256=
|
430
|
-
airbyte_cdk-6.60.0.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
|
431
|
-
airbyte_cdk-6.60.0.dist-info/entry_points.txt,sha256=AKWbEkHfpzzk9nF9tqBUaw1MbvTM4mGtEzmZQm0ZWvM,139
|
432
|
-
airbyte_cdk-6.60.0.dist-info/RECORD,,
|
427
|
+
airbyte_cdk-6.60.0.post8.dev16482866899.dist-info/LICENSE.txt,sha256=Wfe61S4BaGPj404v8lrAbvhjYR68SHlkzeYrg3_bbuM,1051
|
428
|
+
airbyte_cdk-6.60.0.post8.dev16482866899.dist-info/LICENSE_SHORT,sha256=aqF6D1NcESmpn-cqsxBtszTEnHKnlsp8L4x9wAh3Nxg,55
|
429
|
+
airbyte_cdk-6.60.0.post8.dev16482866899.dist-info/METADATA,sha256=eHqB6d5QM8azcENSOPpausock0Uh5cfgTbw2midEK5U,6542
|
430
|
+
airbyte_cdk-6.60.0.post8.dev16482866899.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
|
431
|
+
airbyte_cdk-6.60.0.post8.dev16482866899.dist-info/entry_points.txt,sha256=AKWbEkHfpzzk9nF9tqBUaw1MbvTM4mGtEzmZQm0ZWvM,139
|
432
|
+
airbyte_cdk-6.60.0.post8.dev16482866899.dist-info/RECORD,,
|
{airbyte_cdk-6.60.0.dist-info → airbyte_cdk-6.60.0.post8.dev16482866899.dist-info}/LICENSE.txt
RENAMED
File without changes
|
{airbyte_cdk-6.60.0.dist-info → airbyte_cdk-6.60.0.post8.dev16482866899.dist-info}/LICENSE_SHORT
RENAMED
File without changes
|
File without changes
|
{airbyte_cdk-6.60.0.dist-info → airbyte_cdk-6.60.0.post8.dev16482866899.dist-info}/entry_points.txt
RENAMED
File without changes
|