airbyte-cdk 6.54.3__py3-none-any.whl → 6.54.4.post1.dev15470766813__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/sources/declarative/declarative_component_schema.yaml +7 -4
- airbyte_cdk/sources/declarative/decoders/composite_raw_decoder.py +4 -4
- airbyte_cdk/sources/declarative/models/declarative_component_schema.py +1 -1
- airbyte_cdk/sources/declarative/parsers/model_to_component_factory.py +1 -1
- {airbyte_cdk-6.54.3.dist-info → airbyte_cdk-6.54.4.post1.dev15470766813.dist-info}/METADATA +1 -1
- {airbyte_cdk-6.54.3.dist-info → airbyte_cdk-6.54.4.post1.dev15470766813.dist-info}/RECORD +10 -10
- {airbyte_cdk-6.54.3.dist-info → airbyte_cdk-6.54.4.post1.dev15470766813.dist-info}/LICENSE.txt +0 -0
- {airbyte_cdk-6.54.3.dist-info → airbyte_cdk-6.54.4.post1.dev15470766813.dist-info}/LICENSE_SHORT +0 -0
- {airbyte_cdk-6.54.3.dist-info → airbyte_cdk-6.54.4.post1.dev15470766813.dist-info}/WHEEL +0 -0
- {airbyte_cdk-6.54.3.dist-info → airbyte_cdk-6.54.4.post1.dev15470766813.dist-info}/entry_points.txt +0 -0
@@ -3630,9 +3630,10 @@ definitions:
|
|
3630
3630
|
delimiter:
|
3631
3631
|
type: string
|
3632
3632
|
default: ","
|
3633
|
-
|
3634
|
-
type:
|
3635
|
-
|
3633
|
+
set_values_to_none:
|
3634
|
+
type: array
|
3635
|
+
items:
|
3636
|
+
type: string
|
3636
3637
|
AsyncJobStatusMap:
|
3637
3638
|
description: Matches the api job status to Async Job Status.
|
3638
3639
|
type: object
|
@@ -4026,7 +4027,9 @@ definitions:
|
|
4026
4027
|
description: A list of potentially nested fields indicating the full path where value will be added or updated.
|
4027
4028
|
type: array
|
4028
4029
|
items:
|
4029
|
-
type:
|
4030
|
+
type:
|
4031
|
+
- string
|
4032
|
+
- number
|
4030
4033
|
interpolation_context:
|
4031
4034
|
- config
|
4032
4035
|
- components_values
|
@@ -9,7 +9,7 @@ import json
|
|
9
9
|
import logging
|
10
10
|
from dataclasses import dataclass
|
11
11
|
from io import BufferedIOBase, TextIOWrapper
|
12
|
-
from typing import Any, Optional
|
12
|
+
from typing import Any, List, Optional
|
13
13
|
|
14
14
|
import orjson
|
15
15
|
import requests
|
@@ -103,7 +103,7 @@ class CsvParser(Parser):
|
|
103
103
|
# TODO: migrate implementation to re-use file-base classes
|
104
104
|
encoding: Optional[str] = "utf-8"
|
105
105
|
delimiter: Optional[str] = ","
|
106
|
-
|
106
|
+
set_values_to_none: Optional[List[str]] = None
|
107
107
|
|
108
108
|
def _get_delimiter(self) -> Optional[str]:
|
109
109
|
"""
|
@@ -122,8 +122,8 @@ class CsvParser(Parser):
|
|
122
122
|
text_data = TextIOWrapper(data, encoding=self.encoding) # type: ignore
|
123
123
|
reader = csv.DictReader(text_data, delimiter=self._get_delimiter() or ",")
|
124
124
|
for row in reader:
|
125
|
-
if self.
|
126
|
-
row = {k: (None if v
|
125
|
+
if self.set_values_to_none:
|
126
|
+
row = {k: (None if v in self.set_values_to_none else v) for k, v in row.items()}
|
127
127
|
yield row
|
128
128
|
|
129
129
|
|
@@ -1383,7 +1383,7 @@ class CsvDecoder(BaseModel):
|
|
1383
1383
|
type: Literal["CsvDecoder"]
|
1384
1384
|
encoding: Optional[str] = "utf-8"
|
1385
1385
|
delimiter: Optional[str] = ","
|
1386
|
-
|
1386
|
+
set_values_to_none: Optional[List[str]] = None
|
1387
1387
|
|
1388
1388
|
|
1389
1389
|
class AsyncJobStatusMap(BaseModel):
|
@@ -2651,7 +2651,7 @@ class ModelToComponentFactory:
|
|
2651
2651
|
return CsvParser(
|
2652
2652
|
encoding=model.encoding,
|
2653
2653
|
delimiter=model.delimiter,
|
2654
|
-
|
2654
|
+
set_values_to_none=model.set_values_to_none,
|
2655
2655
|
)
|
2656
2656
|
elif isinstance(model, GzipDecoderModel):
|
2657
2657
|
return GzipParser(
|
@@ -89,11 +89,11 @@ airbyte_cdk/sources/declarative/concurrent_declarative_source.py,sha256=OKor1mDD
|
|
89
89
|
airbyte_cdk/sources/declarative/datetime/__init__.py,sha256=4Hw-PX1-VgESLF16cDdvuYCzGJtHntThLF4qIiULWeo,61
|
90
90
|
airbyte_cdk/sources/declarative/datetime/datetime_parser.py,sha256=_zGNGq31RNy_0QBLt_EcTvgPyhj7urPdx6oA3M5-r3o,3150
|
91
91
|
airbyte_cdk/sources/declarative/datetime/min_max_datetime.py,sha256=0BHBtDNQZfvwM45-tY5pNlTcKAFSGGNxemoi0Jic-0E,5785
|
92
|
-
airbyte_cdk/sources/declarative/declarative_component_schema.yaml,sha256=
|
92
|
+
airbyte_cdk/sources/declarative/declarative_component_schema.yaml,sha256=3Bke5MXhIXtbv1CNC78N3VwzrqWsd7_BFNKy78RNG3o,177508
|
93
93
|
airbyte_cdk/sources/declarative/declarative_source.py,sha256=qmyMnnet92eGc3C22yBtpvD5UZjqdhsAafP_zxI5wp8,1814
|
94
94
|
airbyte_cdk/sources/declarative/declarative_stream.py,sha256=dCRlddBUSaJmBNBz1pSO1r2rTw8AP5d2_vlmIeGs2gg,10767
|
95
95
|
airbyte_cdk/sources/declarative/decoders/__init__.py,sha256=JHb_0d3SE6kNY10mxA5YBEKPeSbsWYjByq1gUQxepoE,953
|
96
|
-
airbyte_cdk/sources/declarative/decoders/composite_raw_decoder.py,sha256=
|
96
|
+
airbyte_cdk/sources/declarative/decoders/composite_raw_decoder.py,sha256=qB4lRUrCXLTE-a3VlpOLaazHiC7RIF_FIVJesuz7ebw,8078
|
97
97
|
airbyte_cdk/sources/declarative/decoders/decoder.py,sha256=1PeKwuMK8x9dsA2zqUjSVinEWVSEgYcUS6npiW3aC2c,855
|
98
98
|
airbyte_cdk/sources/declarative/decoders/decoder_parser.py,sha256=e0be6kfzvbnhmcou-AuloFTSoLxiV9sG9YaglWo5mto,714
|
99
99
|
airbyte_cdk/sources/declarative/decoders/json_decoder.py,sha256=BdWpXXPhEGf_zknggJmhojLosmxuw51RBVTS0jvdCPc,2080
|
@@ -133,14 +133,14 @@ airbyte_cdk/sources/declarative/migrations/legacy_to_per_partition_state_migrati
|
|
133
133
|
airbyte_cdk/sources/declarative/migrations/state_migration.py,sha256=KWPjealMLKSMtajXgkdGgKg7EmTLR-CqqD7UIh0-eDU,794
|
134
134
|
airbyte_cdk/sources/declarative/models/__init__.py,sha256=nUFxNCiKeYRVXuZEKA7GD-lTHxsiKcQ8FitZjKhPIvE,100
|
135
135
|
airbyte_cdk/sources/declarative/models/base_model_with_deprecations.py,sha256=Imnj3yef0aqRdLfaUxkIYISUb8YkiPrRH_wBd-x8HjM,5999
|
136
|
-
airbyte_cdk/sources/declarative/models/declarative_component_schema.py,sha256=
|
136
|
+
airbyte_cdk/sources/declarative/models/declarative_component_schema.py,sha256=ikMY2-Q1d19mzVjtqW7XeMtXNSsG4lvZexXR5XlIhfo,125817
|
137
137
|
airbyte_cdk/sources/declarative/parsers/__init__.py,sha256=ZnqYNxHsKCgO38IwB34RQyRMXTs4GTvlRi3ImKnIioo,61
|
138
138
|
airbyte_cdk/sources/declarative/parsers/custom_code_compiler.py,sha256=nlVvHC511NUyDEEIRBkoeDTAvLqKNp-hRy8D19z8tdk,5941
|
139
139
|
airbyte_cdk/sources/declarative/parsers/custom_exceptions.py,sha256=wnRUP0Xeru9Rbu5OexXSDN9QWDo8YU4tT9M2LDVOgGA,802
|
140
140
|
airbyte_cdk/sources/declarative/parsers/manifest_component_transformer.py,sha256=2UdpCz3yi7ISZTyqkQXSSy3dMxeyOWqV7OlAS5b9GVg,11568
|
141
141
|
airbyte_cdk/sources/declarative/parsers/manifest_normalizer.py,sha256=laBy7ebjA-PiNwc-50U4FHvMqS_mmHvnabxgFs4CjGw,17069
|
142
142
|
airbyte_cdk/sources/declarative/parsers/manifest_reference_resolver.py,sha256=pJmg78vqE5VfUrF_KJnWjucQ4k9IWFULeAxHCowrHXE,6806
|
143
|
-
airbyte_cdk/sources/declarative/parsers/model_to_component_factory.py,sha256=
|
143
|
+
airbyte_cdk/sources/declarative/parsers/model_to_component_factory.py,sha256=VEEJeMbOYmPNX2S8KfsWWzU_VaXM-X5_hNsosv_L5AM,175305
|
144
144
|
airbyte_cdk/sources/declarative/partition_routers/__init__.py,sha256=TBC9AkGaUqHm2IKHMPN6punBIcY5tWGULowcLoAVkfw,1109
|
145
145
|
airbyte_cdk/sources/declarative/partition_routers/async_job_partition_router.py,sha256=VelO7zKqKtzMJ35jyFeg0ypJLQC0plqqIBNXoBW1G2E,3001
|
146
146
|
airbyte_cdk/sources/declarative/partition_routers/cartesian_product_stream_slicer.py,sha256=c5cuVFM6NFkuQqG8Z5IwkBuwDrvXZN1CunUOM_L0ezg,6892
|
@@ -420,9 +420,9 @@ airbyte_cdk/utils/slice_hasher.py,sha256=EDxgROHDbfG-QKQb59m7h_7crN1tRiawdf5uU7G
|
|
420
420
|
airbyte_cdk/utils/spec_schema_transformations.py,sha256=-5HTuNsnDBAhj-oLeQXwpTGA0HdcjFOf2zTEMUTTg_Y,816
|
421
421
|
airbyte_cdk/utils/stream_status_utils.py,sha256=ZmBoiy5HVbUEHAMrUONxZvxnvfV9CesmQJLDTAIWnWw,1171
|
422
422
|
airbyte_cdk/utils/traced_exception.py,sha256=C8uIBuCL_E4WnBAOPSxBicD06JAldoN9fGsQDp463OY,6292
|
423
|
-
airbyte_cdk-6.54.
|
424
|
-
airbyte_cdk-6.54.
|
425
|
-
airbyte_cdk-6.54.
|
426
|
-
airbyte_cdk-6.54.
|
427
|
-
airbyte_cdk-6.54.
|
428
|
-
airbyte_cdk-6.54.
|
423
|
+
airbyte_cdk-6.54.4.post1.dev15470766813.dist-info/LICENSE.txt,sha256=Wfe61S4BaGPj404v8lrAbvhjYR68SHlkzeYrg3_bbuM,1051
|
424
|
+
airbyte_cdk-6.54.4.post1.dev15470766813.dist-info/LICENSE_SHORT,sha256=aqF6D1NcESmpn-cqsxBtszTEnHKnlsp8L4x9wAh3Nxg,55
|
425
|
+
airbyte_cdk-6.54.4.post1.dev15470766813.dist-info/METADATA,sha256=xqnKJVQR-rYggEI96Pa24Sc4Fdn7SYqoUAJLHuvGgPg,6364
|
426
|
+
airbyte_cdk-6.54.4.post1.dev15470766813.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
|
427
|
+
airbyte_cdk-6.54.4.post1.dev15470766813.dist-info/entry_points.txt,sha256=AKWbEkHfpzzk9nF9tqBUaw1MbvTM4mGtEzmZQm0ZWvM,139
|
428
|
+
airbyte_cdk-6.54.4.post1.dev15470766813.dist-info/RECORD,,
|
{airbyte_cdk-6.54.3.dist-info → airbyte_cdk-6.54.4.post1.dev15470766813.dist-info}/LICENSE.txt
RENAMED
File without changes
|
{airbyte_cdk-6.54.3.dist-info → airbyte_cdk-6.54.4.post1.dev15470766813.dist-info}/LICENSE_SHORT
RENAMED
File without changes
|
File without changes
|
{airbyte_cdk-6.54.3.dist-info → airbyte_cdk-6.54.4.post1.dev15470766813.dist-info}/entry_points.txt
RENAMED
File without changes
|