airbyte-cdk 0.70.0__py3-none-any.whl → 0.70.2__py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
@@ -456,9 +456,6 @@ class HttpRequester(Requester):
456
456
  json=self._request_body_json(stream_state, stream_slice, next_page_token, request_body_json),
457
457
  data=self._request_body_data(stream_state, stream_slice, next_page_token, request_body_data),
458
458
  )
459
- import time
460
-
461
- time.sleep(1)
462
459
 
463
460
  response = self._send_with_retry(request, log_formatter=log_formatter)
464
461
  return self._validate_response(response)
@@ -151,7 +151,7 @@ class CsvFormat(BaseModel):
151
151
  @validator("delimiter")
152
152
  def validate_delimiter(cls, v: str) -> str:
153
153
  if v == r"\t":
154
- return v
154
+ v = "\t"
155
155
  if len(v) != 1:
156
156
  raise ValueError("delimiter should only be one character")
157
157
  if v in {"\r", "\n"}:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: airbyte-cdk
3
- Version: 0.70.0
3
+ Version: 0.70.2
4
4
  Summary: A framework for writing Airbyte Connectors.
5
5
  Home-page: https://github.com/airbytehq/airbyte
6
6
  Author: Airbyte
@@ -93,7 +93,7 @@ airbyte_cdk/sources/declarative/partition_routers/list_partition_router.py,sha25
93
93
  airbyte_cdk/sources/declarative/partition_routers/single_partition_router.py,sha256=cl-TQdu_m6_IF20gdD1jll0SpejIyMZHvyGXx2NafuI,1611
94
94
  airbyte_cdk/sources/declarative/partition_routers/substream_partition_router.py,sha256=TO1hnMdsoMtXa_o5YqVDlcAq1T4UAV5ZbJYMNFffDlY,7964
95
95
  airbyte_cdk/sources/declarative/requesters/__init__.py,sha256=d7a3OoHbqaJDyyPli3nqqJ2yAW_SLX6XDaBAKOwvpxw,364
96
- airbyte_cdk/sources/declarative/requesters/http_requester.py,sha256=LQjEs2KPepb-acKLchYiGOACJSExuJCDsh7LvMcf4RE,28037
96
+ airbyte_cdk/sources/declarative/requesters/http_requester.py,sha256=tKpixqFqQIVZ923wjWDiHTpvhRGehRwGV8XgCoyo914,27994
97
97
  airbyte_cdk/sources/declarative/requesters/request_option.py,sha256=_qmv8CLQQ3fERt6BuMZeRu6tZXscPoeARx1VJdWMQ_M,1055
98
98
  airbyte_cdk/sources/declarative/requesters/request_path.py,sha256=S3MeFvcaQrMbOkSY2W2VbXLNomqt_3eXqVd9ZhgNwUs,299
99
99
  airbyte_cdk/sources/declarative/requesters/requester.py,sha256=LXksiu_zp6K6vO70hXNjaOloA02u7MW1mmLdBpAGaos,5559
@@ -164,7 +164,7 @@ airbyte_cdk/sources/file_based/availability_strategy/default_file_based_availabi
164
164
  airbyte_cdk/sources/file_based/config/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
165
165
  airbyte_cdk/sources/file_based/config/abstract_file_based_spec.py,sha256=dgOoQuoi7-7wdTMSP7wz4ENXIDT49Ew4FoAxnnplGGc,4956
166
166
  airbyte_cdk/sources/file_based/config/avro_format.py,sha256=q1I2G9bGNy3ADds35PfWT7Mss6fjYzUtYDkUYvh5v7s,712
167
- airbyte_cdk/sources/file_based/config/csv_format.py,sha256=XcKuM2xa0OZErSDdOdeAx79KZV52lKvVXXuRDYLKVuk,7526
167
+ airbyte_cdk/sources/file_based/config/csv_format.py,sha256=kYFlmt7nPIzFzt3ghYBHGN88mmU1Ttj_1GdJ3AhNhCo,7526
168
168
  airbyte_cdk/sources/file_based/config/file_based_stream_config.py,sha256=l9DFyttYbxY9exwy67WzRXySEk_yKV2G_THRA_Sq1I4,4229
169
169
  airbyte_cdk/sources/file_based/config/jsonl_format.py,sha256=fAPzZnoghGgHjaDvx6Qo68C8j54mBxo1NTdpwSI0VZo,374
170
170
  airbyte_cdk/sources/file_based/config/parquet_format.py,sha256=yKHgXYu3zJWrGfBlJ3JQZ3gVFPumF-K4rjVPNoYTUZ0,737
@@ -381,7 +381,7 @@ unit_tests/sources/file_based/availability_strategy/__init__.py,sha256=47DEQpj8H
381
381
  unit_tests/sources/file_based/availability_strategy/test_default_file_based_availability_strategy.py,sha256=14ffoRWC4RHPrmBFZpplnAd1Uezn8neuQrIyZqvjTK0,4964
382
382
  unit_tests/sources/file_based/config/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
383
383
  unit_tests/sources/file_based/config/test_abstract_file_based_spec.py,sha256=_9Gr1r0dR-dpqQlciG8VuS6ziuCYBjpPvGEiYvS7s7w,1169
384
- unit_tests/sources/file_based/config/test_csv_format.py,sha256=zFgnyJnCQeqsqHH31ZerVeC_km32wU4Sbe-OKoR7wNY,1282
384
+ unit_tests/sources/file_based/config/test_csv_format.py,sha256=avSMRRG0REp_R2E6MZDZKJHAVPPVG4JkbEZeISEnjdM,1343
385
385
  unit_tests/sources/file_based/config/test_file_based_stream_config.py,sha256=aDVLvD5ngKJiLMyAO5tSJFCc026tVlqTUGGASnTeKBI,3320
386
386
  unit_tests/sources/file_based/discovery_policy/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
387
387
  unit_tests/sources/file_based/discovery_policy/test_default_discovery_policy.py,sha256=RTbPxseKWNLzASeOSxxX72APJoIFm8VpQM9Ok7NE5C0,1132
@@ -459,8 +459,8 @@ unit_tests/utils/test_schema_inferrer.py,sha256=Z2jHBZ540wnYkylIdV_2xr75Vtwlxuyg
459
459
  unit_tests/utils/test_secret_utils.py,sha256=CdKK8A2-5XVxbXVtX22FK9dwwMeP5KNqDH6luWRXSNw,5256
460
460
  unit_tests/utils/test_stream_status_utils.py,sha256=Xr8MZ2HWgTVIyMbywDvuYkRaUF4RZLQOT8-JjvcfR24,2970
461
461
  unit_tests/utils/test_traced_exception.py,sha256=bDFP5zMBizFenz6V2WvEZTRCKGB5ijh3DBezjbfoYIs,4198
462
- airbyte_cdk-0.70.0.dist-info/LICENSE.txt,sha256=Wfe61S4BaGPj404v8lrAbvhjYR68SHlkzeYrg3_bbuM,1051
463
- airbyte_cdk-0.70.0.dist-info/METADATA,sha256=r3OK-V8U2kvqRNc_71_xGrna-8yFaNyLubYUW3pn06U,11074
464
- airbyte_cdk-0.70.0.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
465
- airbyte_cdk-0.70.0.dist-info/top_level.txt,sha256=edvsDKTnE6sD2wfCUaeTfKf5gQIL6CPVMwVL2sWZzqo,51
466
- airbyte_cdk-0.70.0.dist-info/RECORD,,
462
+ airbyte_cdk-0.70.2.dist-info/LICENSE.txt,sha256=Wfe61S4BaGPj404v8lrAbvhjYR68SHlkzeYrg3_bbuM,1051
463
+ airbyte_cdk-0.70.2.dist-info/METADATA,sha256=2B0x5Y9M3ZyRPwYmXjynUjYCeFnTldJIPQCAcAuqYMs,11074
464
+ airbyte_cdk-0.70.2.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
465
+ airbyte_cdk-0.70.2.dist-info/top_level.txt,sha256=edvsDKTnE6sD2wfCUaeTfKf5gQIL6CPVMwVL2sWZzqo,51
466
+ airbyte_cdk-0.70.2.dist-info/RECORD,,
@@ -30,4 +30,5 @@ class CsvHeaderDefinitionTest(unittest.TestCase):
30
30
 
31
31
  class CsvDelimiterTest(unittest.TestCase):
32
32
  def test_tab_delimter(self):
33
- assert CsvFormat(delimiter=r"\t").delimiter == '\\t'
33
+ assert CsvFormat(delimiter=r"\t").delimiter == '\t'
34
+ assert len(CsvFormat(delimiter=r"\t").delimiter) == 1