airbyte-cdk 6.8.1__tar.gz → 6.8.1rc1__tar.gz

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.
Files changed (338) hide show
  1. airbyte_cdk-6.8.1rc1/PKG-INFO +307 -0
  2. airbyte_cdk-6.8.1rc1/README.md +229 -0
  3. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/cli/source_declarative_manifest/_run.py +5 -11
  4. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/config_observation.py +1 -1
  5. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/connector_builder/main.py +1 -1
  6. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/connector_builder/message_grouper.py +10 -10
  7. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/destinations/destination.py +1 -1
  8. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/destinations/vector_db_based/embedder.py +2 -2
  9. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/destinations/vector_db_based/writer.py +4 -12
  10. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/entrypoint.py +6 -7
  11. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/logger.py +2 -2
  12. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/abstract_source.py +1 -1
  13. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/config.py +1 -1
  14. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/connector_state_manager.py +4 -9
  15. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/declarative/auth/oauth.py +1 -1
  16. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/declarative/auth/selective_authenticator.py +1 -6
  17. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/declarative/concurrent_declarative_source.py +1 -1
  18. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/declarative/datetime/min_max_datetime.py +4 -10
  19. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/declarative/declarative_component_schema.yaml +17 -16
  20. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/declarative/decoders/noop_decoder.py +1 -4
  21. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/declarative/incremental/datetime_based_cursor.py +6 -8
  22. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/declarative/interpolation/jinja.py +3 -3
  23. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/declarative/interpolation/macros.py +1 -1
  24. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/declarative/parsers/model_to_component_factory.py +6 -5
  25. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/declarative/partition_routers/substream_partition_router.py +7 -13
  26. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/declarative/requesters/error_handlers/default_error_handler.py +1 -1
  27. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/declarative/requesters/error_handlers/http_response_filter.py +6 -8
  28. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/declarative/requesters/paginators/default_paginator.py +1 -1
  29. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/declarative/requesters/request_options/datetime_based_request_options_provider.py +2 -2
  30. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/declarative/requesters/request_options/interpolated_request_options_provider.py +1 -1
  31. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/declarative/retrievers/async_retriever.py +2 -5
  32. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/declarative/spec/spec.py +1 -1
  33. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/embedded/base_integration.py +2 -3
  34. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/file_based/availability_strategy/abstract_file_based_availability_strategy.py +4 -12
  35. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/file_based/availability_strategy/default_file_based_availability_strategy.py +7 -18
  36. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/file_based/file_types/avro_parser.py +11 -14
  37. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/file_based/file_types/csv_parser.py +3 -3
  38. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/file_based/file_types/excel_parser.py +5 -11
  39. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/file_based/file_types/jsonl_parser.py +1 -1
  40. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/file_based/stream/abstract_file_based_stream.py +2 -2
  41. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/file_based/stream/concurrent/adapters.py +3 -6
  42. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/file_based/stream/cursor/default_file_based_cursor.py +1 -1
  43. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/http_logger.py +3 -3
  44. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/streams/concurrent/abstract_stream.py +2 -5
  45. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/streams/concurrent/adapters.py +3 -6
  46. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/streams/concurrent/availability_strategy.py +3 -9
  47. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/streams/concurrent/cursor.py +1 -1
  48. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/streams/concurrent/state_converters/datetime_stream_state_converter.py +2 -2
  49. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/streams/core.py +14 -17
  50. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/streams/http/http.py +19 -19
  51. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/streams/http/http_client.py +34 -3
  52. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/streams/http/requests_native_auth/abstract_token.py +1 -2
  53. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/streams/http/requests_native_auth/oauth.py +33 -62
  54. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/utils/record_helper.py +1 -1
  55. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/utils/schema_helpers.py +1 -1
  56. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/utils/transform.py +15 -34
  57. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/test/entrypoint_wrapper.py +6 -11
  58. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/test/mock_http/response_builder.py +1 -1
  59. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/utils/airbyte_secrets_utils.py +1 -1
  60. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/utils/event_timing.py +10 -10
  61. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/utils/message_utils.py +3 -4
  62. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/utils/spec_schema_transformations.py +2 -3
  63. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/utils/traced_exception.py +12 -14
  64. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/pyproject.toml +6 -10
  65. airbyte_cdk-6.8.1/PKG-INFO +0 -111
  66. airbyte_cdk-6.8.1/README.md +0 -34
  67. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/LICENSE.txt +0 -0
  68. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/__init__.py +0 -0
  69. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/cli/__init__.py +0 -0
  70. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/cli/source_declarative_manifest/__init__.py +0 -0
  71. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/cli/source_declarative_manifest/spec.json +0 -0
  72. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/connector.py +0 -0
  73. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/connector_builder/README.md +0 -0
  74. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/connector_builder/__init__.py +0 -0
  75. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/connector_builder/connector_builder_handler.py +0 -0
  76. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/connector_builder/models.py +0 -0
  77. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/destinations/__init__.py +0 -0
  78. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/destinations/vector_db_based/README.md +0 -0
  79. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/destinations/vector_db_based/__init__.py +0 -0
  80. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/destinations/vector_db_based/config.py +0 -0
  81. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/destinations/vector_db_based/document_processor.py +0 -0
  82. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/destinations/vector_db_based/indexer.py +0 -0
  83. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/destinations/vector_db_based/test_utils.py +0 -0
  84. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/destinations/vector_db_based/utils.py +0 -0
  85. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/exception_handler.py +0 -0
  86. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/models/__init__.py +0 -0
  87. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/models/airbyte_protocol.py +0 -0
  88. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/models/airbyte_protocol_serializers.py +0 -0
  89. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/models/file_transfer_record_message.py +0 -0
  90. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/models/well_known_types.py +0 -0
  91. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/py.typed +0 -0
  92. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/__init__.py +0 -0
  93. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/concurrent_source/__init__.py +0 -0
  94. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/concurrent_source/concurrent_read_processor.py +0 -0
  95. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/concurrent_source/concurrent_source.py +0 -0
  96. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/concurrent_source/concurrent_source_adapter.py +0 -0
  97. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/concurrent_source/partition_generation_completed_sentinel.py +0 -0
  98. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/concurrent_source/stream_thread_exception.py +0 -0
  99. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/concurrent_source/thread_pool_manager.py +0 -0
  100. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/declarative/__init__.py +0 -0
  101. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/declarative/async_job/__init__.py +0 -0
  102. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/declarative/async_job/job.py +0 -0
  103. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/declarative/async_job/job_orchestrator.py +0 -0
  104. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/declarative/async_job/job_tracker.py +0 -0
  105. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/declarative/async_job/repository.py +0 -0
  106. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/declarative/async_job/status.py +0 -0
  107. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/declarative/async_job/timer.py +0 -0
  108. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/declarative/auth/__init__.py +0 -0
  109. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/declarative/auth/declarative_authenticator.py +0 -0
  110. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/declarative/auth/jwt.py +0 -0
  111. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/declarative/auth/token.py +0 -0
  112. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/declarative/auth/token_provider.py +0 -0
  113. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/declarative/checks/__init__.py +0 -0
  114. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/declarative/checks/check_stream.py +0 -0
  115. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/declarative/checks/connection_checker.py +0 -0
  116. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/declarative/concurrency_level/__init__.py +0 -0
  117. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/declarative/concurrency_level/concurrency_level.py +0 -0
  118. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/declarative/datetime/__init__.py +0 -0
  119. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/declarative/datetime/datetime_parser.py +0 -0
  120. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/declarative/declarative_source.py +0 -0
  121. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/declarative/declarative_stream.py +0 -0
  122. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/declarative/decoders/__init__.py +0 -0
  123. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/declarative/decoders/decoder.py +0 -0
  124. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/declarative/decoders/json_decoder.py +0 -0
  125. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/declarative/decoders/pagination_decoder_decorator.py +0 -0
  126. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/declarative/decoders/xml_decoder.py +0 -0
  127. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/declarative/exceptions.py +0 -0
  128. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/declarative/extractors/__init__.py +0 -0
  129. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/declarative/extractors/dpath_extractor.py +0 -0
  130. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/declarative/extractors/http_selector.py +0 -0
  131. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/declarative/extractors/record_extractor.py +0 -0
  132. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/declarative/extractors/record_filter.py +0 -0
  133. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/declarative/extractors/record_selector.py +0 -0
  134. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/declarative/extractors/response_to_file_extractor.py +0 -0
  135. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/declarative/incremental/__init__.py +0 -0
  136. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/declarative/incremental/declarative_cursor.py +0 -0
  137. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/declarative/incremental/global_substream_cursor.py +0 -0
  138. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/declarative/incremental/per_partition_cursor.py +0 -0
  139. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/declarative/incremental/per_partition_with_global.py +0 -0
  140. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/declarative/incremental/resumable_full_refresh_cursor.py +0 -0
  141. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/declarative/interpolation/__init__.py +0 -0
  142. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/declarative/interpolation/filters.py +0 -0
  143. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/declarative/interpolation/interpolated_boolean.py +0 -0
  144. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/declarative/interpolation/interpolated_mapping.py +0 -0
  145. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/declarative/interpolation/interpolated_nested_mapping.py +0 -0
  146. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/declarative/interpolation/interpolated_string.py +0 -0
  147. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/declarative/interpolation/interpolation.py +0 -0
  148. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/declarative/manifest_declarative_source.py +0 -0
  149. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/declarative/migrations/__init__.py +0 -0
  150. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/declarative/migrations/legacy_to_per_partition_state_migration.py +0 -0
  151. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/declarative/migrations/state_migration.py +0 -0
  152. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/declarative/models/__init__.py +0 -0
  153. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/declarative/models/declarative_component_schema.py +0 -0
  154. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/declarative/parsers/__init__.py +0 -0
  155. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/declarative/parsers/custom_exceptions.py +0 -0
  156. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/declarative/parsers/manifest_component_transformer.py +0 -0
  157. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/declarative/parsers/manifest_reference_resolver.py +0 -0
  158. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/declarative/partition_routers/__init__.py +0 -0
  159. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/declarative/partition_routers/cartesian_product_stream_slicer.py +0 -0
  160. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/declarative/partition_routers/list_partition_router.py +0 -0
  161. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/declarative/partition_routers/partition_router.py +0 -0
  162. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/declarative/partition_routers/single_partition_router.py +0 -0
  163. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/declarative/requesters/__init__.py +0 -0
  164. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/declarative/requesters/error_handlers/__init__.py +0 -0
  165. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/declarative/requesters/error_handlers/backoff_strategies/__init__.py +0 -0
  166. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/declarative/requesters/error_handlers/backoff_strategies/constant_backoff_strategy.py +0 -0
  167. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/declarative/requesters/error_handlers/backoff_strategies/exponential_backoff_strategy.py +0 -0
  168. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/declarative/requesters/error_handlers/backoff_strategies/header_helper.py +0 -0
  169. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/declarative/requesters/error_handlers/backoff_strategies/wait_time_from_header_backoff_strategy.py +0 -0
  170. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/declarative/requesters/error_handlers/backoff_strategies/wait_until_time_from_header_backoff_strategy.py +0 -0
  171. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/declarative/requesters/error_handlers/backoff_strategy.py +0 -0
  172. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/declarative/requesters/error_handlers/composite_error_handler.py +0 -0
  173. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/declarative/requesters/error_handlers/default_http_response_filter.py +0 -0
  174. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/declarative/requesters/error_handlers/error_handler.py +0 -0
  175. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/declarative/requesters/http_job_repository.py +0 -0
  176. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/declarative/requesters/http_requester.py +0 -0
  177. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/declarative/requesters/paginators/__init__.py +0 -0
  178. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/declarative/requesters/paginators/no_pagination.py +0 -0
  179. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/declarative/requesters/paginators/paginator.py +0 -0
  180. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/declarative/requesters/paginators/strategies/__init__.py +0 -0
  181. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/declarative/requesters/paginators/strategies/cursor_pagination_strategy.py +0 -0
  182. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/declarative/requesters/paginators/strategies/offset_increment.py +0 -0
  183. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/declarative/requesters/paginators/strategies/page_increment.py +0 -0
  184. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/declarative/requesters/paginators/strategies/pagination_strategy.py +0 -0
  185. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/declarative/requesters/paginators/strategies/stop_condition.py +0 -0
  186. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/declarative/requesters/request_option.py +0 -0
  187. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/declarative/requesters/request_options/__init__.py +0 -0
  188. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/declarative/requesters/request_options/default_request_options_provider.py +0 -0
  189. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/declarative/requesters/request_options/interpolated_nested_request_input_provider.py +0 -0
  190. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/declarative/requesters/request_options/interpolated_request_input_provider.py +0 -0
  191. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/declarative/requesters/request_options/request_options_provider.py +0 -0
  192. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/declarative/requesters/request_path.py +0 -0
  193. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/declarative/requesters/requester.py +0 -0
  194. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/declarative/retrievers/__init__.py +0 -0
  195. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/declarative/retrievers/retriever.py +0 -0
  196. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/declarative/retrievers/simple_retriever.py +0 -0
  197. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/declarative/schema/__init__.py +0 -0
  198. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/declarative/schema/default_schema_loader.py +0 -0
  199. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/declarative/schema/inline_schema_loader.py +0 -0
  200. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/declarative/schema/json_file_schema_loader.py +0 -0
  201. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/declarative/schema/schema_loader.py +0 -0
  202. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/declarative/spec/__init__.py +0 -0
  203. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/declarative/stream_slicers/__init__.py +0 -0
  204. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/declarative/stream_slicers/declarative_partition_generator.py +0 -0
  205. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/declarative/stream_slicers/stream_slicer.py +0 -0
  206. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/declarative/transformations/__init__.py +0 -0
  207. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/declarative/transformations/add_fields.py +0 -0
  208. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/declarative/transformations/keys_to_lower_transformation.py +0 -0
  209. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/declarative/transformations/remove_fields.py +0 -0
  210. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/declarative/transformations/transformation.py +0 -0
  211. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/declarative/types.py +0 -0
  212. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/declarative/yaml_declarative_source.py +0 -0
  213. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/embedded/__init__.py +0 -0
  214. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/embedded/catalog.py +0 -0
  215. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/embedded/runner.py +0 -0
  216. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/embedded/tools.py +0 -0
  217. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/file_based/README.md +0 -0
  218. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/file_based/__init__.py +0 -0
  219. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/file_based/availability_strategy/__init__.py +0 -0
  220. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/file_based/config/__init__.py +0 -0
  221. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/file_based/config/abstract_file_based_spec.py +0 -0
  222. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/file_based/config/avro_format.py +0 -0
  223. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/file_based/config/csv_format.py +0 -0
  224. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/file_based/config/excel_format.py +0 -0
  225. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/file_based/config/file_based_stream_config.py +0 -0
  226. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/file_based/config/jsonl_format.py +0 -0
  227. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/file_based/config/parquet_format.py +0 -0
  228. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/file_based/config/unstructured_format.py +0 -0
  229. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/file_based/discovery_policy/__init__.py +0 -0
  230. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/file_based/discovery_policy/abstract_discovery_policy.py +0 -0
  231. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/file_based/discovery_policy/default_discovery_policy.py +0 -0
  232. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/file_based/exceptions.py +0 -0
  233. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/file_based/file_based_source.py +0 -0
  234. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/file_based/file_based_stream_reader.py +0 -0
  235. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/file_based/file_types/__init__.py +0 -0
  236. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/file_based/file_types/file_transfer.py +0 -0
  237. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/file_based/file_types/file_type_parser.py +0 -0
  238. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/file_based/file_types/parquet_parser.py +0 -0
  239. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/file_based/file_types/unstructured_parser.py +0 -0
  240. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/file_based/remote_file.py +0 -0
  241. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/file_based/schema_helpers.py +0 -0
  242. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/file_based/schema_validation_policies/__init__.py +0 -0
  243. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/file_based/schema_validation_policies/abstract_schema_validation_policy.py +0 -0
  244. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/file_based/schema_validation_policies/default_schema_validation_policies.py +0 -0
  245. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/file_based/stream/__init__.py +0 -0
  246. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/file_based/stream/concurrent/__init__.py +0 -0
  247. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/file_based/stream/concurrent/cursor/__init__.py +0 -0
  248. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/file_based/stream/concurrent/cursor/abstract_concurrent_file_based_cursor.py +0 -0
  249. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/file_based/stream/concurrent/cursor/file_based_concurrent_cursor.py +0 -0
  250. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/file_based/stream/concurrent/cursor/file_based_final_state_cursor.py +0 -0
  251. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/file_based/stream/cursor/__init__.py +0 -0
  252. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/file_based/stream/cursor/abstract_file_based_cursor.py +0 -0
  253. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/file_based/stream/default_file_based_stream.py +0 -0
  254. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/file_based/types.py +0 -0
  255. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/http_config.py +0 -0
  256. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/message/__init__.py +0 -0
  257. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/message/repository.py +0 -0
  258. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/source.py +0 -0
  259. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/streams/__init__.py +0 -0
  260. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/streams/availability_strategy.py +0 -0
  261. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/streams/call_rate.py +0 -0
  262. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/streams/checkpoint/__init__.py +0 -0
  263. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/streams/checkpoint/checkpoint_reader.py +0 -0
  264. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/streams/checkpoint/cursor.py +0 -0
  265. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/streams/checkpoint/per_partition_key_serializer.py +0 -0
  266. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/streams/checkpoint/resumable_full_refresh_cursor.py +0 -0
  267. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/streams/checkpoint/substream_resumable_full_refresh_cursor.py +0 -0
  268. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/streams/concurrent/README.md +0 -0
  269. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/streams/concurrent/__init__.py +0 -0
  270. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/streams/concurrent/abstract_stream_facade.py +0 -0
  271. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/streams/concurrent/default_stream.py +0 -0
  272. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/streams/concurrent/exceptions.py +0 -0
  273. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/streams/concurrent/helpers.py +0 -0
  274. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/streams/concurrent/partition_enqueuer.py +0 -0
  275. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/streams/concurrent/partition_reader.py +0 -0
  276. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/streams/concurrent/partitions/__init__.py +0 -0
  277. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/streams/concurrent/partitions/partition.py +0 -0
  278. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/streams/concurrent/partitions/partition_generator.py +0 -0
  279. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/streams/concurrent/partitions/stream_slicer.py +0 -0
  280. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/streams/concurrent/partitions/types.py +0 -0
  281. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/streams/concurrent/state_converters/__init__.py +0 -0
  282. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/streams/concurrent/state_converters/abstract_stream_state_converter.py +0 -0
  283. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/streams/http/__init__.py +0 -0
  284. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/streams/http/availability_strategy.py +0 -0
  285. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/streams/http/error_handlers/__init__.py +0 -0
  286. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/streams/http/error_handlers/backoff_strategy.py +0 -0
  287. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/streams/http/error_handlers/default_backoff_strategy.py +0 -0
  288. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/streams/http/error_handlers/default_error_mapping.py +0 -0
  289. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/streams/http/error_handlers/error_handler.py +0 -0
  290. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/streams/http/error_handlers/error_message_parser.py +0 -0
  291. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/streams/http/error_handlers/http_status_error_handler.py +0 -0
  292. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/streams/http/error_handlers/json_error_message_parser.py +0 -0
  293. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/streams/http/error_handlers/response_models.py +0 -0
  294. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/streams/http/exceptions.py +0 -0
  295. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/streams/http/rate_limiting.py +0 -0
  296. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/streams/http/requests_native_auth/__init__.py +0 -0
  297. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/streams/http/requests_native_auth/abstract_oauth.py +0 -0
  298. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/streams/http/requests_native_auth/token.py +0 -0
  299. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/streams/utils/__init__.py +0 -0
  300. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/types.py +0 -0
  301. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/utils/__init__.py +0 -0
  302. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/utils/casing.py +0 -0
  303. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/utils/slice_logger.py +0 -0
  304. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sources/utils/types.py +0 -0
  305. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sql/__init__.py +0 -0
  306. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sql/_util/__init__.py +0 -0
  307. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sql/_util/hashing.py +0 -0
  308. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sql/_util/name_normalizers.py +0 -0
  309. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sql/constants.py +0 -0
  310. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sql/exceptions.py +0 -0
  311. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sql/secrets.py +0 -0
  312. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sql/shared/__init__.py +0 -0
  313. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sql/shared/catalog_providers.py +0 -0
  314. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sql/shared/sql_processor.py +0 -0
  315. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/sql/types.py +0 -0
  316. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/test/__init__.py +0 -0
  317. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/test/catalog_builder.py +0 -0
  318. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/test/mock_http/__init__.py +0 -0
  319. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/test/mock_http/matcher.py +0 -0
  320. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/test/mock_http/mocker.py +0 -0
  321. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/test/mock_http/request.py +0 -0
  322. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/test/mock_http/response.py +0 -0
  323. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/test/state_builder.py +0 -0
  324. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/test/utils/__init__.py +0 -0
  325. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/test/utils/data.py +0 -0
  326. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/test/utils/http_mocking.py +0 -0
  327. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/test/utils/reading.py +0 -0
  328. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/utils/__init__.py +0 -0
  329. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/utils/analytics_message.py +0 -0
  330. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/utils/constants.py +0 -0
  331. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/utils/datetime_format_inferrer.py +0 -0
  332. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/utils/is_cloud_environment.py +0 -0
  333. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/utils/mapping_helpers.py +0 -0
  334. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/utils/oneof_option_config.py +0 -0
  335. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/utils/print_buffer.py +0 -0
  336. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/utils/schema_inferrer.py +0 -0
  337. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/utils/slice_hasher.py +0 -0
  338. {airbyte_cdk-6.8.1 → airbyte_cdk-6.8.1rc1}/airbyte_cdk/utils/stream_status_utils.py +0 -0
@@ -0,0 +1,307 @@
1
+ Metadata-Version: 2.1
2
+ Name: airbyte-cdk
3
+ Version: 6.8.1rc1
4
+ Summary: A framework for writing Airbyte Connectors.
5
+ Home-page: https://airbyte.com
6
+ License: MIT
7
+ Keywords: airbyte,connector-development-kit,cdk
8
+ Author: Airbyte
9
+ Author-email: contact@airbyte.io
10
+ Requires-Python: >=3.10,<3.13
11
+ Classifier: Development Status :: 3 - Alpha
12
+ Classifier: Intended Audience :: Developers
13
+ Classifier: License :: OSI Approved :: MIT License
14
+ Classifier: Programming Language :: Python :: 3
15
+ Classifier: Programming Language :: Python :: 3.10
16
+ Classifier: Programming Language :: Python :: 3.11
17
+ Classifier: Programming Language :: Python :: 3.12
18
+ Classifier: Topic :: Scientific/Engineering
19
+ Classifier: Topic :: Software Development :: Libraries :: Python Modules
20
+ Provides-Extra: file-based
21
+ Provides-Extra: sphinx-docs
22
+ Provides-Extra: sql
23
+ Provides-Extra: vector-db-based
24
+ Requires-Dist: Deprecated (>=1.2,<1.3)
25
+ Requires-Dist: Jinja2 (>=3.1.2,<3.2.0)
26
+ Requires-Dist: PyYAML (>=6.0.1,<7.0.0)
27
+ Requires-Dist: Sphinx (>=4.2,<4.3) ; extra == "sphinx-docs"
28
+ Requires-Dist: airbyte-protocol-models-dataclasses (>=0.14,<0.15)
29
+ Requires-Dist: avro (>=1.11.2,<1.12.0) ; extra == "file-based"
30
+ Requires-Dist: backoff
31
+ Requires-Dist: cachetools
32
+ Requires-Dist: cohere (==4.21) ; extra == "vector-db-based"
33
+ Requires-Dist: cryptography (>=42.0.5,<44.0.0)
34
+ Requires-Dist: dpath (>=2.1.6,<3.0.0)
35
+ Requires-Dist: dunamai (>=1.22.0,<2.0.0)
36
+ Requires-Dist: fastavro (>=1.8.0,<1.9.0) ; extra == "file-based"
37
+ Requires-Dist: genson (==1.3.0)
38
+ Requires-Dist: isodate (>=0.6.1,<0.7.0)
39
+ Requires-Dist: jsonref (>=0.2,<0.3)
40
+ Requires-Dist: jsonschema (>=4.17.3,<4.18.0)
41
+ Requires-Dist: langchain (==0.1.16) ; extra == "vector-db-based"
42
+ Requires-Dist: langchain_core (==0.1.42)
43
+ Requires-Dist: markdown ; extra == "file-based"
44
+ Requires-Dist: nltk (==3.9.1)
45
+ Requires-Dist: numpy (<2)
46
+ Requires-Dist: openai[embeddings] (==0.27.9) ; extra == "vector-db-based"
47
+ Requires-Dist: orjson (>=3.10.7,<4.0.0)
48
+ Requires-Dist: pandas (==2.2.2)
49
+ Requires-Dist: pdf2image (==1.16.3) ; extra == "file-based"
50
+ Requires-Dist: pdfminer.six (==20221105) ; extra == "file-based"
51
+ Requires-Dist: pendulum (<3.0.0)
52
+ Requires-Dist: psutil (==6.1.0)
53
+ Requires-Dist: pyarrow (>=15.0.0,<15.1.0) ; extra == "file-based"
54
+ Requires-Dist: pydantic (>=2.7,<3.0)
55
+ Requires-Dist: pyjwt (>=2.8.0,<3.0.0)
56
+ Requires-Dist: pyrate-limiter (>=3.1.0,<3.2.0)
57
+ Requires-Dist: pytesseract (==0.3.10) ; extra == "file-based"
58
+ Requires-Dist: python-calamine (==0.2.3) ; extra == "file-based"
59
+ Requires-Dist: python-dateutil
60
+ Requires-Dist: python-snappy (==0.7.3) ; extra == "file-based"
61
+ Requires-Dist: python-ulid (>=3.0.0,<4.0.0)
62
+ Requires-Dist: pytz (==2024.1)
63
+ Requires-Dist: rapidfuzz (>=3.10.1,<4.0.0)
64
+ Requires-Dist: requests
65
+ Requires-Dist: requests_cache
66
+ Requires-Dist: serpyco-rs (>=1.10.2,<2.0.0)
67
+ Requires-Dist: sphinx-rtd-theme (>=1.0,<1.1) ; extra == "sphinx-docs"
68
+ Requires-Dist: sqlalchemy (>=2.0,<3.0,!=2.0.36) ; extra == "sql"
69
+ Requires-Dist: tiktoken (==0.8.0) ; extra == "vector-db-based"
70
+ Requires-Dist: unstructured.pytesseract (>=0.3.12) ; extra == "file-based"
71
+ Requires-Dist: unstructured[docx,pptx] (==0.10.27) ; extra == "file-based"
72
+ Requires-Dist: wcmatch (==10.0)
73
+ Requires-Dist: xmltodict (>=0.13.0,<0.14.0)
74
+ Project-URL: Documentation, https://docs.airbyte.io/
75
+ Project-URL: Repository, https://github.com/airbytehq/airbyte-python-cdk
76
+ Description-Content-Type: text/markdown
77
+
78
+ # Airbyte Python CDK and Low-Code CDK
79
+
80
+ Airbyte Python CDK is a framework for building Airbyte API Source Connectors. It provides a set of
81
+ classes and helpers that make it easy to build a connector against an HTTP API (REST, GraphQL, etc),
82
+ or a generic Python source connector.
83
+
84
+ ## Usage
85
+
86
+ If you're looking to build a connector, we highly recommend that you
87
+ [start with the Connector Builder](https://docs.airbyte.com/connector-development/connector-builder-ui/overview).
88
+ It should be enough for 90% connectors out there. For more flexible and complex connectors, use the
89
+ [low-code CDK and `SourceDeclarativeManifest`](https://docs.airbyte.com/connector-development/config-based/low-code-cdk-overview).
90
+
91
+ If that doesn't work, then consider building on top of the
92
+ [lower-level Python CDK itself](https://docs.airbyte.com/connector-development/cdk-python/).
93
+
94
+ ### Quick Start
95
+
96
+ To get started on a Python CDK based connector or a low-code connector, you can generate a connector
97
+ project from a template:
98
+
99
+ ```bash
100
+ # from the repo root
101
+ cd airbyte-integrations/connector-templates/generator
102
+ ./generate.sh
103
+ ```
104
+
105
+ ### Example Connectors
106
+
107
+ **HTTP Connectors**:
108
+
109
+ - [Stripe](https://github.com/airbytehq/airbyte/blob/master/airbyte-integrations/connectors/source-stripe/)
110
+ - [Salesforce](https://github.com/airbytehq/airbyte/blob/master/airbyte-integrations/connectors/source-salesforce/)
111
+
112
+ **Python connectors using the bare-bones `Source` abstraction**:
113
+
114
+ - [Google Sheets](https://github.com/airbytehq/airbyte/blob/master/airbyte-integrations/connectors/source-google-sheets/google_sheets_source/google_sheets_source.py)
115
+
116
+ This will generate a project with a type and a name of your choice and put it in
117
+ `airbyte-integrations/connectors`. Open the directory with your connector in an editor and follow
118
+ the `TODO` items.
119
+
120
+ ## Python CDK Overview
121
+
122
+ Airbyte CDK code is within `airbyte_cdk` directory. Here's a high level overview of what's inside:
123
+
124
+ - `connector_builder`. Internal wrapper that helps the Connector Builder platform run a declarative
125
+ manifest (low-code connector). You should not use this code directly. If you need to run a
126
+ `SourceDeclarativeManifest`, take a look at
127
+ [`source-declarative-manifest`](https://github.com/airbytehq/airbyte/tree/master/airbyte-integrations/connectors/source-declarative-manifest)
128
+ connector implementation instead.
129
+ - `destinations`. Basic Destination connector support! If you're building a Destination connector in
130
+ Python, try that. Some of our vector DB destinations like `destination-pinecone` are using that
131
+ code.
132
+ - `models` expose `airbyte_protocol.models` as a part of `airbyte_cdk` package.
133
+ - `sources/concurrent_source` is the Concurrent CDK implementation. It supports reading data from
134
+ streams concurrently per slice / partition, useful for connectors with high throughput and high
135
+ number of records.
136
+ - `sources/declarative` is the low-code CDK. It works on top of Airbyte Python CDK, but provides a
137
+ declarative manifest language to define streams, operations, etc. This makes it easier to build
138
+ connectors without writing Python code.
139
+ - `sources/file_based` is the CDK for file-based sources. Examples include S3, Azure, GCS, etc.
140
+
141
+ ## Contributing
142
+
143
+ Thank you for being interested in contributing to Airbyte Python CDK! Here are some guidelines to
144
+ get you started:
145
+
146
+ - We adhere to the [code of conduct](/CODE_OF_CONDUCT.md).
147
+ - You can contribute by reporting bugs, posting github discussions, opening issues, improving
148
+ [documentation](/docs/), and submitting pull requests with bugfixes and new features alike.
149
+ - If you're changing the code, please add unit tests for your change.
150
+ - When submitting issues or PRs, please add a small reproduction project. Using the changes in your
151
+ connector and providing that connector code as an example (or a satellite PR) helps!
152
+
153
+ ### First time setup
154
+
155
+ Install the project dependencies and development tools:
156
+
157
+ ```bash
158
+ poetry install --all-extras
159
+ ```
160
+
161
+ Installing all extras is required to run the full suite of unit tests.
162
+
163
+ #### Running tests locally
164
+
165
+ - Iterate on the CDK code locally
166
+ - Run tests via `poetry run poe unit-test-with-cov`, or `python -m pytest -s unit_tests` if you want
167
+ to pass pytest options.
168
+ - Run `poetry run poe check-local` to lint all code, type-check modified code, and run unit tests
169
+ with coverage in one command.
170
+
171
+ To see all available scripts, run `poetry run poe`.
172
+
173
+ #### Formatting the code
174
+
175
+ - Iterate on the CDK code locally
176
+ - Run `poetry run ruff format` to format your changes.
177
+
178
+ To see all available `ruff` options, run `poetry run ruff`.
179
+
180
+ ##### Autogenerated files
181
+
182
+ Low-code CDK models are generated from `sources/declarative/declarative_component_schema.yaml`. If
183
+ the iteration you are working on includes changes to the models or the connector generator, you
184
+ might want to regenerate them. In order to do that, you can run:
185
+
186
+ ```bash
187
+ poetry run poe build
188
+ ```
189
+
190
+ This will generate the code generator docker image and the component manifest files based on the
191
+ schemas and templates.
192
+
193
+ #### Testing
194
+
195
+ All tests are located in the `unit_tests` directory. Run `poetry run poe unit-test-with-cov` to run
196
+ them. This also presents a test coverage report. For faster iteration with no coverage report and
197
+ more options, `python -m pytest -s unit_tests` is a good place to start.
198
+
199
+ #### Building and testing a connector with your local CDK
200
+
201
+ When developing a new feature in the CDK, you may find it helpful to run a connector that uses that
202
+ new feature. You can test this in one of two ways:
203
+
204
+ - Running a connector locally
205
+ - Building and running a source via Docker
206
+
207
+ ##### Installing your local CDK into a local Python connector
208
+
209
+ Open the connector's `pyproject.toml` file and replace the line with `airbyte_cdk` with the
210
+ following:
211
+
212
+ ```toml
213
+ airbyte_cdk = { path = "../../../airbyte-cdk/python/airbyte_cdk", develop = true }
214
+ ```
215
+
216
+ Then, running `poetry update` should reinstall `airbyte_cdk` from your local working directory.
217
+
218
+ ##### Building a Python connector in Docker with your local CDK installed
219
+
220
+ _Pre-requisite: Install the
221
+ [`airbyte-ci` CLI](https://github.com/airbytehq/airbyte/blob/master/airbyte-ci/connectors/pipelines/README.md)_
222
+
223
+ You can build your connector image with the local CDK using
224
+
225
+ ```bash
226
+ # from the airbytehq/airbyte base directory
227
+ airbyte-ci connectors --use-local-cdk --name=<CONNECTOR> build
228
+ ```
229
+
230
+ Note that the local CDK is injected at build time, so if you make changes, you will have to run the
231
+ build command again to see them reflected.
232
+
233
+ ##### Running Connector Acceptance Tests for a single connector in Docker with your local CDK installed
234
+
235
+ _Pre-requisite: Install the
236
+ [`airbyte-ci` CLI](https://github.com/airbytehq/airbyte/blob/master/airbyte-ci/connectors/pipelines/README.md)_
237
+
238
+ To run acceptance tests for a single connectors using the local CDK, from the connector directory,
239
+ run
240
+
241
+ ```bash
242
+ airbyte-ci connectors --use-local-cdk --name=<CONNECTOR> test
243
+ ```
244
+
245
+ #### When you don't have access to the API
246
+
247
+ There may be a time when you do not have access to the API (either because you don't have the
248
+ credentials, network access, etc...) You will probably still want to do end-to-end testing at least
249
+ once. In order to do so, you can emulate the server you would be reaching using a server stubbing
250
+ tool.
251
+
252
+ For example, using [mockserver](https://www.mock-server.com/), you can set up an expectation file
253
+ like this:
254
+
255
+ ```json
256
+ {
257
+ "httpRequest": {
258
+ "method": "GET",
259
+ "path": "/data"
260
+ },
261
+ "httpResponse": {
262
+ "body": "{\"data\": [{\"record_key\": 1}, {\"record_key\": 2}]}"
263
+ }
264
+ }
265
+ ```
266
+
267
+ Assuming this file has been created at `secrets/mock_server_config/expectations.json`, running the
268
+ following command will allow to match any requests on path `/data` to return the response defined in
269
+ the expectation file:
270
+
271
+ ```bash
272
+ docker run -d --rm -v $(pwd)/secrets/mock_server_config:/config -p 8113:8113 --env MOCKSERVER_LOG_LEVEL=TRACE --env MOCKSERVER_SERVER_PORT=8113 --env MOCKSERVER_WATCH_INITIALIZATION_JSON=true --env MOCKSERVER_PERSISTED_EXPECTATIONS_PATH=/config/expectations.json --env MOCKSERVER_INITIALIZATION_JSON_PATH=/config/expectations.json mockserver/mockserver:5.15.0
273
+ ```
274
+
275
+ HTTP requests to `localhost:8113/data` should now return the body defined in the expectations file.
276
+ To test this, the implementer either has to change the code which defines the base URL for Python
277
+ source or update the `url_base` from low-code. With the Connector Builder running in docker, you
278
+ will have to use domain `host.docker.internal` instead of `localhost` as the requests are executed
279
+ within docker.
280
+
281
+ #### Publishing a new version to PyPi
282
+
283
+ Python CDK has a
284
+ [GitHub workflow](https://github.com/airbytehq/airbyte/actions/workflows/publish-cdk-command-manually.yml)
285
+ that manages the CDK changelog, making a new release for `airbyte_cdk`, publishing it to PyPI, and
286
+ then making a commit to update (and subsequently auto-release)
287
+ [`source-declarative-m anifest`](https://github.com/airbytehq/airbyte/tree/master/airbyte-integrations/connectors/source-declarative-manifest)
288
+ and Connector Builder (in the platform repository).
289
+
290
+ > [!Note]: The workflow will handle the `CHANGELOG.md` entry for you. You should not add changelog
291
+ > lines in your PRs to the CDK itself.
292
+
293
+ > [!Warning]: The workflow bumps version on it's own, please don't change the CDK version in
294
+ > `pyproject.toml` manually.
295
+
296
+ 1. You only trigger the release workflow once all the PRs that you want to be included are already
297
+ merged into the `master` branch.
298
+ 2. The
299
+ [`Publish CDK Manually`](https://github.com/airbytehq/airbyte/actions/workflows/publish-cdk-command-manually.yml)
300
+ workflow from master using `release-type=major|manor|patch` and setting the changelog message.
301
+ 3. When the workflow runs, it will commit a new version directly to master branch.
302
+ 4. The workflow will bump the version of `source-declarative-manifest` according to the
303
+ `release-type` of the CDK, then commit these changes back to master. The commit to master will
304
+ kick off a publish of the new version of `source-declarative-manifest`.
305
+ 5. The workflow will also add a pull request to `airbyte-platform-internal` repo to bump the
306
+ dependency in Connector Builder.
307
+
@@ -0,0 +1,229 @@
1
+ # Airbyte Python CDK and Low-Code CDK
2
+
3
+ Airbyte Python CDK is a framework for building Airbyte API Source Connectors. It provides a set of
4
+ classes and helpers that make it easy to build a connector against an HTTP API (REST, GraphQL, etc),
5
+ or a generic Python source connector.
6
+
7
+ ## Usage
8
+
9
+ If you're looking to build a connector, we highly recommend that you
10
+ [start with the Connector Builder](https://docs.airbyte.com/connector-development/connector-builder-ui/overview).
11
+ It should be enough for 90% connectors out there. For more flexible and complex connectors, use the
12
+ [low-code CDK and `SourceDeclarativeManifest`](https://docs.airbyte.com/connector-development/config-based/low-code-cdk-overview).
13
+
14
+ If that doesn't work, then consider building on top of the
15
+ [lower-level Python CDK itself](https://docs.airbyte.com/connector-development/cdk-python/).
16
+
17
+ ### Quick Start
18
+
19
+ To get started on a Python CDK based connector or a low-code connector, you can generate a connector
20
+ project from a template:
21
+
22
+ ```bash
23
+ # from the repo root
24
+ cd airbyte-integrations/connector-templates/generator
25
+ ./generate.sh
26
+ ```
27
+
28
+ ### Example Connectors
29
+
30
+ **HTTP Connectors**:
31
+
32
+ - [Stripe](https://github.com/airbytehq/airbyte/blob/master/airbyte-integrations/connectors/source-stripe/)
33
+ - [Salesforce](https://github.com/airbytehq/airbyte/blob/master/airbyte-integrations/connectors/source-salesforce/)
34
+
35
+ **Python connectors using the bare-bones `Source` abstraction**:
36
+
37
+ - [Google Sheets](https://github.com/airbytehq/airbyte/blob/master/airbyte-integrations/connectors/source-google-sheets/google_sheets_source/google_sheets_source.py)
38
+
39
+ This will generate a project with a type and a name of your choice and put it in
40
+ `airbyte-integrations/connectors`. Open the directory with your connector in an editor and follow
41
+ the `TODO` items.
42
+
43
+ ## Python CDK Overview
44
+
45
+ Airbyte CDK code is within `airbyte_cdk` directory. Here's a high level overview of what's inside:
46
+
47
+ - `connector_builder`. Internal wrapper that helps the Connector Builder platform run a declarative
48
+ manifest (low-code connector). You should not use this code directly. If you need to run a
49
+ `SourceDeclarativeManifest`, take a look at
50
+ [`source-declarative-manifest`](https://github.com/airbytehq/airbyte/tree/master/airbyte-integrations/connectors/source-declarative-manifest)
51
+ connector implementation instead.
52
+ - `destinations`. Basic Destination connector support! If you're building a Destination connector in
53
+ Python, try that. Some of our vector DB destinations like `destination-pinecone` are using that
54
+ code.
55
+ - `models` expose `airbyte_protocol.models` as a part of `airbyte_cdk` package.
56
+ - `sources/concurrent_source` is the Concurrent CDK implementation. It supports reading data from
57
+ streams concurrently per slice / partition, useful for connectors with high throughput and high
58
+ number of records.
59
+ - `sources/declarative` is the low-code CDK. It works on top of Airbyte Python CDK, but provides a
60
+ declarative manifest language to define streams, operations, etc. This makes it easier to build
61
+ connectors without writing Python code.
62
+ - `sources/file_based` is the CDK for file-based sources. Examples include S3, Azure, GCS, etc.
63
+
64
+ ## Contributing
65
+
66
+ Thank you for being interested in contributing to Airbyte Python CDK! Here are some guidelines to
67
+ get you started:
68
+
69
+ - We adhere to the [code of conduct](/CODE_OF_CONDUCT.md).
70
+ - You can contribute by reporting bugs, posting github discussions, opening issues, improving
71
+ [documentation](/docs/), and submitting pull requests with bugfixes and new features alike.
72
+ - If you're changing the code, please add unit tests for your change.
73
+ - When submitting issues or PRs, please add a small reproduction project. Using the changes in your
74
+ connector and providing that connector code as an example (or a satellite PR) helps!
75
+
76
+ ### First time setup
77
+
78
+ Install the project dependencies and development tools:
79
+
80
+ ```bash
81
+ poetry install --all-extras
82
+ ```
83
+
84
+ Installing all extras is required to run the full suite of unit tests.
85
+
86
+ #### Running tests locally
87
+
88
+ - Iterate on the CDK code locally
89
+ - Run tests via `poetry run poe unit-test-with-cov`, or `python -m pytest -s unit_tests` if you want
90
+ to pass pytest options.
91
+ - Run `poetry run poe check-local` to lint all code, type-check modified code, and run unit tests
92
+ with coverage in one command.
93
+
94
+ To see all available scripts, run `poetry run poe`.
95
+
96
+ #### Formatting the code
97
+
98
+ - Iterate on the CDK code locally
99
+ - Run `poetry run ruff format` to format your changes.
100
+
101
+ To see all available `ruff` options, run `poetry run ruff`.
102
+
103
+ ##### Autogenerated files
104
+
105
+ Low-code CDK models are generated from `sources/declarative/declarative_component_schema.yaml`. If
106
+ the iteration you are working on includes changes to the models or the connector generator, you
107
+ might want to regenerate them. In order to do that, you can run:
108
+
109
+ ```bash
110
+ poetry run poe build
111
+ ```
112
+
113
+ This will generate the code generator docker image and the component manifest files based on the
114
+ schemas and templates.
115
+
116
+ #### Testing
117
+
118
+ All tests are located in the `unit_tests` directory. Run `poetry run poe unit-test-with-cov` to run
119
+ them. This also presents a test coverage report. For faster iteration with no coverage report and
120
+ more options, `python -m pytest -s unit_tests` is a good place to start.
121
+
122
+ #### Building and testing a connector with your local CDK
123
+
124
+ When developing a new feature in the CDK, you may find it helpful to run a connector that uses that
125
+ new feature. You can test this in one of two ways:
126
+
127
+ - Running a connector locally
128
+ - Building and running a source via Docker
129
+
130
+ ##### Installing your local CDK into a local Python connector
131
+
132
+ Open the connector's `pyproject.toml` file and replace the line with `airbyte_cdk` with the
133
+ following:
134
+
135
+ ```toml
136
+ airbyte_cdk = { path = "../../../airbyte-cdk/python/airbyte_cdk", develop = true }
137
+ ```
138
+
139
+ Then, running `poetry update` should reinstall `airbyte_cdk` from your local working directory.
140
+
141
+ ##### Building a Python connector in Docker with your local CDK installed
142
+
143
+ _Pre-requisite: Install the
144
+ [`airbyte-ci` CLI](https://github.com/airbytehq/airbyte/blob/master/airbyte-ci/connectors/pipelines/README.md)_
145
+
146
+ You can build your connector image with the local CDK using
147
+
148
+ ```bash
149
+ # from the airbytehq/airbyte base directory
150
+ airbyte-ci connectors --use-local-cdk --name=<CONNECTOR> build
151
+ ```
152
+
153
+ Note that the local CDK is injected at build time, so if you make changes, you will have to run the
154
+ build command again to see them reflected.
155
+
156
+ ##### Running Connector Acceptance Tests for a single connector in Docker with your local CDK installed
157
+
158
+ _Pre-requisite: Install the
159
+ [`airbyte-ci` CLI](https://github.com/airbytehq/airbyte/blob/master/airbyte-ci/connectors/pipelines/README.md)_
160
+
161
+ To run acceptance tests for a single connectors using the local CDK, from the connector directory,
162
+ run
163
+
164
+ ```bash
165
+ airbyte-ci connectors --use-local-cdk --name=<CONNECTOR> test
166
+ ```
167
+
168
+ #### When you don't have access to the API
169
+
170
+ There may be a time when you do not have access to the API (either because you don't have the
171
+ credentials, network access, etc...) You will probably still want to do end-to-end testing at least
172
+ once. In order to do so, you can emulate the server you would be reaching using a server stubbing
173
+ tool.
174
+
175
+ For example, using [mockserver](https://www.mock-server.com/), you can set up an expectation file
176
+ like this:
177
+
178
+ ```json
179
+ {
180
+ "httpRequest": {
181
+ "method": "GET",
182
+ "path": "/data"
183
+ },
184
+ "httpResponse": {
185
+ "body": "{\"data\": [{\"record_key\": 1}, {\"record_key\": 2}]}"
186
+ }
187
+ }
188
+ ```
189
+
190
+ Assuming this file has been created at `secrets/mock_server_config/expectations.json`, running the
191
+ following command will allow to match any requests on path `/data` to return the response defined in
192
+ the expectation file:
193
+
194
+ ```bash
195
+ docker run -d --rm -v $(pwd)/secrets/mock_server_config:/config -p 8113:8113 --env MOCKSERVER_LOG_LEVEL=TRACE --env MOCKSERVER_SERVER_PORT=8113 --env MOCKSERVER_WATCH_INITIALIZATION_JSON=true --env MOCKSERVER_PERSISTED_EXPECTATIONS_PATH=/config/expectations.json --env MOCKSERVER_INITIALIZATION_JSON_PATH=/config/expectations.json mockserver/mockserver:5.15.0
196
+ ```
197
+
198
+ HTTP requests to `localhost:8113/data` should now return the body defined in the expectations file.
199
+ To test this, the implementer either has to change the code which defines the base URL for Python
200
+ source or update the `url_base` from low-code. With the Connector Builder running in docker, you
201
+ will have to use domain `host.docker.internal` instead of `localhost` as the requests are executed
202
+ within docker.
203
+
204
+ #### Publishing a new version to PyPi
205
+
206
+ Python CDK has a
207
+ [GitHub workflow](https://github.com/airbytehq/airbyte/actions/workflows/publish-cdk-command-manually.yml)
208
+ that manages the CDK changelog, making a new release for `airbyte_cdk`, publishing it to PyPI, and
209
+ then making a commit to update (and subsequently auto-release)
210
+ [`source-declarative-m anifest`](https://github.com/airbytehq/airbyte/tree/master/airbyte-integrations/connectors/source-declarative-manifest)
211
+ and Connector Builder (in the platform repository).
212
+
213
+ > [!Note]: The workflow will handle the `CHANGELOG.md` entry for you. You should not add changelog
214
+ > lines in your PRs to the CDK itself.
215
+
216
+ > [!Warning]: The workflow bumps version on it's own, please don't change the CDK version in
217
+ > `pyproject.toml` manually.
218
+
219
+ 1. You only trigger the release workflow once all the PRs that you want to be included are already
220
+ merged into the `master` branch.
221
+ 2. The
222
+ [`Publish CDK Manually`](https://github.com/airbytehq/airbyte/actions/workflows/publish-cdk-command-manually.yml)
223
+ workflow from master using `release-type=major|manor|patch` and setting the changelog message.
224
+ 3. When the workflow runs, it will commit a new version directly to master branch.
225
+ 4. The workflow will bump the version of `source-declarative-manifest` according to the
226
+ `release-type` of the CDK, then commit these changes back to master. The commit to master will
227
+ kick off a publish of the new version of `source-declarative-manifest`.
228
+ 5. The workflow will also add a pull request to `airbyte-platform-internal` repo to bump the
229
+ dependency in Connector Builder.
@@ -25,7 +25,7 @@ from datetime import datetime
25
25
  from pathlib import Path
26
26
  from typing import Any, cast
27
27
 
28
- import orjson
28
+ from orjson import orjson
29
29
 
30
30
  from airbyte_cdk.entrypoint import AirbyteEntrypoint, launch
31
31
  from airbyte_cdk.models import (
@@ -72,7 +72,7 @@ class SourceLocalYaml(YamlDeclarativeSource):
72
72
  super().__init__(
73
73
  catalog=catalog,
74
74
  config=config,
75
- state=state, # type: ignore [arg-type]
75
+ state=state,
76
76
  path_to_yaml="manifest.yaml",
77
77
  )
78
78
 
@@ -152,9 +152,7 @@ def handle_remote_manifest_command(args: list[str]) -> None:
152
152
  )
153
153
 
154
154
 
155
- def create_declarative_source(
156
- args: list[str],
157
- ) -> ConcurrentDeclarativeSource: # type: ignore [type-arg]
155
+ def create_declarative_source(args: list[str]) -> ConcurrentDeclarativeSource:
158
156
  """Creates the source with the injected config.
159
157
 
160
158
  This essentially does what other low-code sources do at build time, but at runtime,
@@ -162,14 +160,10 @@ def create_declarative_source(
162
160
  connector builder.
163
161
  """
164
162
  try:
165
- config: Mapping[str, Any] | None
166
- catalog: ConfiguredAirbyteCatalog | None
167
- state: list[AirbyteStateMessage]
168
163
  config, catalog, state = _parse_inputs_into_config_catalog_state(args)
169
- if config is None or "__injected_declarative_manifest" not in config:
164
+ if "__injected_declarative_manifest" not in config:
170
165
  raise ValueError(
171
- "Invalid config: `__injected_declarative_manifest` should be provided at the root "
172
- f"of the config but config only has keys: {list(config.keys() if config else [])}"
166
+ f"Invalid config: `__injected_declarative_manifest` should be provided at the root of the config but config only has keys {list(config.keys())}"
173
167
  )
174
168
  return ConcurrentDeclarativeSource(
175
169
  config=config,
@@ -10,7 +10,7 @@ import time
10
10
  from copy import copy
11
11
  from typing import Any, List, MutableMapping
12
12
 
13
- import orjson
13
+ from orjson import orjson
14
14
 
15
15
  from airbyte_cdk.models import (
16
16
  AirbyteControlConnectorConfigMessage,
@@ -6,7 +6,7 @@
6
6
  import sys
7
7
  from typing import Any, List, Mapping, Optional, Tuple
8
8
 
9
- import orjson
9
+ from orjson import orjson
10
10
 
11
11
  from airbyte_cdk.connector import BaseConnector
12
12
  from airbyte_cdk.connector_builder.connector_builder_handler import (
@@ -71,7 +71,7 @@ class MessageGrouper:
71
71
 
72
72
  is_nested_key = isinstance(field[0], str)
73
73
  if is_nested_key:
74
- return [field]
74
+ return [field] # type: ignore # the type of field is expected to be List[str] here
75
75
 
76
76
  raise ValueError(f"Unknown type for cursor field `{field}")
77
77
 
@@ -232,9 +232,9 @@ class MessageGrouper:
232
232
  current_slice_descriptor = self._parse_slice_description(message.log.message) # type: ignore[union-attr] # AirbyteMessage with MessageType.LOG has log.message
233
233
  current_slice_pages = []
234
234
  at_least_one_page_in_group = False
235
- elif message.type == MessageType.LOG and message.log.message.startswith( # type: ignore[union-attr] # None doesn't have 'message'
235
+ elif message.type == MessageType.LOG and message.log.message.startswith(
236
236
  SliceLogger.SLICE_LOG_PREFIX
237
- ):
237
+ ): # type: ignore[union-attr] # AirbyteMessage with MessageType.LOG has log.message
238
238
  # parsing the first slice
239
239
  current_slice_descriptor = self._parse_slice_description(message.log.message) # type: ignore[union-attr] # AirbyteMessage with MessageType.LOG has log.message
240
240
  elif message.type == MessageType.LOG:
@@ -274,14 +274,14 @@ class MessageGrouper:
274
274
  if message.trace.type == TraceType.ERROR: # type: ignore[union-attr] # AirbyteMessage with MessageType.TRACE has trace.type
275
275
  yield message.trace
276
276
  elif message.type == MessageType.RECORD:
277
- current_page_records.append(message.record.data) # type: ignore[arg-type, union-attr] # AirbyteMessage with MessageType.RECORD has record.data
277
+ current_page_records.append(message.record.data) # type: ignore[union-attr] # AirbyteMessage with MessageType.RECORD has record.data
278
278
  records_count += 1
279
279
  schema_inferrer.accumulate(message.record)
280
280
  datetime_format_inferrer.accumulate(message.record)
281
281
  elif (
282
282
  message.type == MessageType.CONTROL
283
- and message.control.type == OrchestratorType.CONNECTOR_CONFIG # type: ignore[union-attr] # None doesn't have 'type'
284
- ):
283
+ and message.control.type == OrchestratorType.CONNECTOR_CONFIG
284
+ ): # type: ignore[union-attr] # AirbyteMessage with MessageType.CONTROL has control.type
285
285
  yield message.control
286
286
  elif message.type == MessageType.STATE:
287
287
  latest_state_message = message.state # type: ignore[assignment]
@@ -310,8 +310,8 @@ class MessageGrouper:
310
310
  and message.type == MessageType.LOG
311
311
  and (
312
312
  MessageGrouper._is_page_http_request(json_message)
313
- or message.log.message.startswith("slice:") # type: ignore[union-attr] # AirbyteMessage with MessageType.LOG has log.message
314
- )
313
+ or message.log.message.startswith("slice:")
314
+ ) # type: ignore[union-attr] # AirbyteMessage with MessageType.LOG has log.message
315
315
  )
316
316
 
317
317
  @staticmethod
@@ -355,8 +355,8 @@ class MessageGrouper:
355
355
  StreamReadPages(
356
356
  request=current_page_request,
357
357
  response=current_page_response,
358
- records=deepcopy(current_page_records), # type: ignore [arg-type]
359
- )
358
+ records=deepcopy(current_page_records),
359
+ ) # type: ignore
360
360
  )
361
361
  current_page_records.clear()
362
362
 
@@ -9,7 +9,7 @@ import sys
9
9
  from abc import ABC, abstractmethod
10
10
  from typing import Any, Iterable, List, Mapping
11
11
 
12
- import orjson
12
+ from orjson import orjson
13
13
 
14
14
  from airbyte_cdk.connector import Connector
15
15
  from airbyte_cdk.exception_handler import init_uncaught_exception_handler