airbyte-cdk 6.60.0.post30.dev16509083730__py3-none-any.whl → 6.60.0.post32.dev16509172620__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.
@@ -56,6 +56,7 @@ from .airbyte_protocol_serializers import (
56
56
  ab_connector_spec_to_string,
57
57
  ab_message_from_string,
58
58
  ab_message_to_string,
59
+ ab_state_message_to_string,
59
60
  )
60
61
  from .well_known_types import (
61
62
  BinaryData,
@@ -159,21 +159,16 @@ def ab_state_message_from_string(
159
159
  raise ValueError(f"Failed to decode JSON: {e}") from e
160
160
 
161
161
 
162
- def ab_state_blob_from_string(
163
- state_blob_json: str,
164
- ) -> AirbyteStateBlob:
162
+ def ab_state_message_to_string(
163
+ state: AirbyteStateMessage,
164
+ ) -> str:
165
165
  """
166
- Convert a JSON string to an AirbyteStateBlob.
166
+ Convert an AirbyteStateMessage to a JSON string.
167
167
 
168
168
  Args:
169
- state_blob_json (str): The JSON string to convert.
169
+ state (AirbyteStateMessage): The AirbyteStateMessage to convert.
170
170
 
171
171
  Returns:
172
- AirbyteStateBlob: The deserialized AirbyteStateBlob.
172
+ str: JSON string representation of the AirbyteStateMessage.
173
173
  """
174
- try:
175
- return AirbyteStateBlob.model_validate_json(state_blob_json)
176
- except ValidationError as e:
177
- raise ValueError(f"Invalid AirbyteStateBlob format: {e}") from e
178
- except orjson.JSONDecodeError as e:
179
- raise ValueError(f"Failed to decode JSON: {e}") from e
174
+ return state.model_dump_json()
@@ -2,4 +2,4 @@
2
2
  # Copyright (c) 2023 Airbyte, Inc., all rights reserved.
3
3
  #
4
4
 
5
- from airbyte_protocol_dataclasses.models.well_known_types import * # noqa: F403 # Allow '*'
5
+ from airbyte_protocol.models.well_known_types import * # noqa: F403 # Allow '*'
@@ -6,7 +6,7 @@ import traceback
6
6
  from abc import ABC, abstractmethod
7
7
  from typing import Any, Dict, Iterable, List, Mapping, MutableMapping, Optional
8
8
 
9
- from airbyte_protocol_dataclasses.models import SyncMode
9
+ from airbyte_protocol.models import SyncMode
10
10
 
11
11
  from airbyte_cdk.models import AirbyteLogMessage, AirbyteMessage, Level
12
12
  from airbyte_cdk.models import Type as MessageType
@@ -13,7 +13,7 @@ from typing import TYPE_CHECKING, Any, final
13
13
  import pandas as pd
14
14
  import sqlalchemy
15
15
  import ulid
16
- from airbyte_protocol_dataclasses.models import AirbyteStateMessage
16
+ from airbyte_protocol.models import AirbyteStateMessage
17
17
  from pandas import Index
18
18
  from pydantic import BaseModel, Field
19
19
  from sqlalchemy import Column, Table, and_, create_engine, insert, null, select, text, update
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: airbyte-cdk
3
- Version: 6.60.0.post30.dev16509083730
3
+ Version: 6.60.0.post32.dev16509172620
4
4
  Summary: A framework for writing Airbyte Connectors.
5
5
  Home-page: https://airbyte.com
6
6
  License: MIT
@@ -48,11 +48,11 @@ airbyte_cdk/manifest_migrations/migrations/http_requester_request_body_json_data
48
48
  airbyte_cdk/manifest_migrations/migrations/http_requester_url_base_to_url.py,sha256=EX1MVYVpoWypA28qoH48wA0SYZjGdlR8bcSixTDzfgo,1346
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
- airbyte_cdk/models/__init__.py,sha256=NjSFgkzPZd5miSliYLQP-OynA7tUrYEybdMXYmzJOmQ,2096
51
+ airbyte_cdk/models/__init__.py,sha256=S0_uDwV-S9U0DZyUKyITa_eLz1gxhy9ScgH1Aql8CR8,2128
52
52
  airbyte_cdk/models/airbyte_protocol.py,sha256=-JLm0bZtzk5Gn_e0TAin2qTUVGqppJhDzeQ-j3z2Pso,254
53
- airbyte_cdk/models/airbyte_protocol_serializers.py,sha256=HXvMf9f1hoRYDQnMOjI84puJVNlpzfMcpfr3164RlDk,4899
53
+ airbyte_cdk/models/airbyte_protocol_serializers.py,sha256=qdaVBJtuSL_xm8oq_v2fs69KgCEW5x47IWAjVkBBuw4,4665
54
54
  airbyte_cdk/models/connector_metadata.py,sha256=BD6CO8c3mHavxRJAcwP29sHtNNVLVSNFNQLgHOVxrwA,3229
55
- airbyte_cdk/models/well_known_types.py,sha256=EquepbisGPuCSrs_D7YVVnMR9-ShhUr21wnFz3COiJs,156
55
+ airbyte_cdk/models/well_known_types.py,sha256=idL7n1qrW1VSLQbi1ZU2ITxTgiAZyEBN7KfO8Hpx3C4,144
56
56
  airbyte_cdk/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
57
57
  airbyte_cdk/sources/__init__.py,sha256=45J83QsFH3Wky3sVapZWg4C58R_i1thm61M06t2c1AQ,1156
58
58
  airbyte_cdk/sources/abstract_source.py,sha256=50vxEBRByiNhT4WJkiFvgM-C6PWqKSJgvuNC_aeg2cw,15547
@@ -356,7 +356,7 @@ airbyte_cdk/sources/streams/http/requests_native_auth/abstract_oauth.py,sha256=0
356
356
  airbyte_cdk/sources/streams/http/requests_native_auth/abstract_token.py,sha256=Y3n7J-sk5yGjv_OxtY6Z6k0PEsFZmtIRi-x0KCbaHdA,1010
357
357
  airbyte_cdk/sources/streams/http/requests_native_auth/oauth.py,sha256=gVLo7nU-ORJd413TZHMJQV4m_vaGnRqhoXGGWehFjDA,19253
358
358
  airbyte_cdk/sources/streams/http/requests_native_auth/token.py,sha256=h5PTzcdH-RQLeCg7xZ45w_484OPUDSwNWl_iMJQmZoI,2526
359
- airbyte_cdk/sources/streams/permissions/identities_stream.py,sha256=9O9k6k18Xm3Zsiw_vnI_jsHXfMCQiek6V-jMkJJLxn8,2621
359
+ airbyte_cdk/sources/streams/permissions/identities_stream.py,sha256=eAT4XsQ5zLuj8KWT6c5ITw6zZatxtvS7J48xcxgwPuM,2609
360
360
  airbyte_cdk/sources/streams/utils/__init__.py,sha256=4Hw-PX1-VgESLF16cDdvuYCzGJtHntThLF4qIiULWeo,61
361
361
  airbyte_cdk/sources/types.py,sha256=1oerHQpidFrIluUhWsM3-4Xst4wwUDqzkgtgZY0jjZU,5485
362
362
  airbyte_cdk/sources/utils/__init__.py,sha256=TTN6VUxVy6Is8BhYQZR5pxJGQh8yH4duXh4O1TiMiEY,118
@@ -376,7 +376,7 @@ airbyte_cdk/sql/exceptions.py,sha256=7_-K2c_trPy6kM89I2pwsrnVEtXqOspd9Eqrzf2KD2A
376
376
  airbyte_cdk/sql/secrets.py,sha256=FRIafU5YbWzoK8jtAcfExwzMGdswMbs0OOo1O7Y5i-g,4345
377
377
  airbyte_cdk/sql/shared/__init__.py,sha256=-BU9zpzwx7JxSlS7EmFuGmdB9jK_QhhEJUe5dxErrDw,334
378
378
  airbyte_cdk/sql/shared/catalog_providers.py,sha256=lUYtJkkpkIcWUdp4rcL15GUrFy2b8Mf4sQjJu_YjC3M,5772
379
- airbyte_cdk/sql/shared/sql_processor.py,sha256=jR-hdLZsPf2sNBa_wvWKLvys8ZJ-SQCIiJS71Rszc-w,28215
379
+ airbyte_cdk/sql/shared/sql_processor.py,sha256=C4HqaiTE8xAh7HN_nQtQ0d2Iy02GmHGw70Ko-PheEIk,28203
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=2_tdbk5Jk8mUXtxAN3_vhGIzQawYOZ9kg39xgoJbtl4,2963
@@ -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.post30.dev16509083730.dist-info/LICENSE.txt,sha256=Wfe61S4BaGPj404v8lrAbvhjYR68SHlkzeYrg3_bbuM,1051
428
- airbyte_cdk-6.60.0.post30.dev16509083730.dist-info/LICENSE_SHORT,sha256=aqF6D1NcESmpn-cqsxBtszTEnHKnlsp8L4x9wAh3Nxg,55
429
- airbyte_cdk-6.60.0.post30.dev16509083730.dist-info/METADATA,sha256=yd9r67fQtQF_aOC9g9i-Lr4U7uxmlVOqi1IoxPi_N70,6544
430
- airbyte_cdk-6.60.0.post30.dev16509083730.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
431
- airbyte_cdk-6.60.0.post30.dev16509083730.dist-info/entry_points.txt,sha256=AKWbEkHfpzzk9nF9tqBUaw1MbvTM4mGtEzmZQm0ZWvM,139
432
- airbyte_cdk-6.60.0.post30.dev16509083730.dist-info/RECORD,,
427
+ airbyte_cdk-6.60.0.post32.dev16509172620.dist-info/LICENSE.txt,sha256=Wfe61S4BaGPj404v8lrAbvhjYR68SHlkzeYrg3_bbuM,1051
428
+ airbyte_cdk-6.60.0.post32.dev16509172620.dist-info/LICENSE_SHORT,sha256=aqF6D1NcESmpn-cqsxBtszTEnHKnlsp8L4x9wAh3Nxg,55
429
+ airbyte_cdk-6.60.0.post32.dev16509172620.dist-info/METADATA,sha256=uCfGPS4V3KK_Ki1pzfHZ1mln2hNeBWrGJx45cL7PcFc,6544
430
+ airbyte_cdk-6.60.0.post32.dev16509172620.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
431
+ airbyte_cdk-6.60.0.post32.dev16509172620.dist-info/entry_points.txt,sha256=AKWbEkHfpzzk9nF9tqBUaw1MbvTM4mGtEzmZQm0ZWvM,139
432
+ airbyte_cdk-6.60.0.post32.dev16509172620.dist-info/RECORD,,