airbyte-cdk 0.2.3__tar.gz → 0.2.3.dev0__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 (508) hide show
  1. airbyte_cdk-0.2.3.dev0/PKG-INFO +300 -0
  2. airbyte_cdk-0.2.3.dev0/README.md +222 -0
  3. airbyte_cdk-0.2.3.dev0/airbyte_cdk/__init__.py +299 -0
  4. airbyte_cdk-0.2.3.dev0/airbyte_cdk/cli/__init__.py +1 -0
  5. airbyte_cdk-0.2.3.dev0/airbyte_cdk/cli/source_declarative_manifest/__init__.py +6 -0
  6. airbyte_cdk-0.2.3.dev0/airbyte_cdk/cli/source_declarative_manifest/_run.py +223 -0
  7. airbyte_cdk-0.2.3.dev0/airbyte_cdk/cli/source_declarative_manifest/spec.json +17 -0
  8. airbyte_cdk-0.2.3.dev0/airbyte_cdk/config_observation.py +103 -0
  9. {airbyte-cdk-0.2.3 → airbyte_cdk-0.2.3.dev0}/airbyte_cdk/connector.py +41 -25
  10. airbyte_cdk-0.2.3.dev0/airbyte_cdk/connector_builder/README.md +53 -0
  11. airbyte_cdk-0.2.3.dev0/airbyte_cdk/connector_builder/__init__.py +3 -0
  12. airbyte_cdk-0.2.3.dev0/airbyte_cdk/connector_builder/connector_builder_handler.py +116 -0
  13. airbyte_cdk-0.2.3.dev0/airbyte_cdk/connector_builder/main.py +106 -0
  14. airbyte_cdk-0.2.3.dev0/airbyte_cdk/connector_builder/message_grouper.py +448 -0
  15. airbyte_cdk-0.2.3.dev0/airbyte_cdk/connector_builder/models.py +71 -0
  16. airbyte_cdk-0.2.3.dev0/airbyte_cdk/destinations/__init__.py +8 -0
  17. {airbyte-cdk-0.2.3 → airbyte_cdk-0.2.3.dev0}/airbyte_cdk/destinations/destination.py +54 -21
  18. airbyte_cdk-0.2.3.dev0/airbyte_cdk/destinations/vector_db_based/README.md +37 -0
  19. airbyte_cdk-0.2.3.dev0/airbyte_cdk/destinations/vector_db_based/__init__.py +38 -0
  20. airbyte_cdk-0.2.3.dev0/airbyte_cdk/destinations/vector_db_based/config.py +297 -0
  21. airbyte_cdk-0.2.3.dev0/airbyte_cdk/destinations/vector_db_based/document_processor.py +222 -0
  22. airbyte_cdk-0.2.3.dev0/airbyte_cdk/destinations/vector_db_based/embedder.py +302 -0
  23. airbyte_cdk-0.2.3.dev0/airbyte_cdk/destinations/vector_db_based/indexer.py +78 -0
  24. airbyte_cdk-0.2.3.dev0/airbyte_cdk/destinations/vector_db_based/test_utils.py +63 -0
  25. airbyte_cdk-0.2.3.dev0/airbyte_cdk/destinations/vector_db_based/utils.py +35 -0
  26. airbyte_cdk-0.2.3.dev0/airbyte_cdk/destinations/vector_db_based/writer.py +96 -0
  27. airbyte_cdk-0.2.3.dev0/airbyte_cdk/entrypoint.py +390 -0
  28. airbyte_cdk-0.2.3.dev0/airbyte_cdk/exception_handler.py +56 -0
  29. {airbyte-cdk-0.2.3 → airbyte_cdk-0.2.3.dev0}/airbyte_cdk/logger.py +31 -46
  30. airbyte_cdk-0.2.3.dev0/airbyte_cdk/models/__init__.py +70 -0
  31. airbyte_cdk-0.2.3.dev0/airbyte_cdk/models/airbyte_protocol.py +89 -0
  32. airbyte_cdk-0.2.3.dev0/airbyte_cdk/models/airbyte_protocol_serializers.py +44 -0
  33. airbyte_cdk-0.2.3.dev0/airbyte_cdk/models/file_transfer_record_message.py +13 -0
  34. airbyte_cdk-0.2.3.dev0/airbyte_cdk/models/well_known_types.py +5 -0
  35. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/__init__.py +26 -0
  36. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/abstract_source.py +326 -0
  37. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/concurrent_source/__init__.py +8 -0
  38. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/concurrent_source/concurrent_read_processor.py +255 -0
  39. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/concurrent_source/concurrent_source.py +165 -0
  40. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/concurrent_source/concurrent_source_adapter.py +147 -0
  41. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/concurrent_source/partition_generation_completed_sentinel.py +24 -0
  42. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/concurrent_source/stream_thread_exception.py +25 -0
  43. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/concurrent_source/thread_pool_manager.py +115 -0
  44. {airbyte-cdk-0.2.3 → airbyte_cdk-0.2.3.dev0}/airbyte_cdk/sources/config.py +4 -4
  45. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/connector_state_manager.py +156 -0
  46. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/declarative/async_job/job.py +52 -0
  47. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/declarative/async_job/job_orchestrator.py +497 -0
  48. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/declarative/async_job/job_tracker.py +75 -0
  49. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/declarative/async_job/repository.py +35 -0
  50. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/declarative/async_job/status.py +24 -0
  51. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/declarative/async_job/timer.py +39 -0
  52. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/declarative/auth/__init__.py +11 -0
  53. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/declarative/auth/declarative_authenticator.py +42 -0
  54. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/declarative/auth/jwt.py +190 -0
  55. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/declarative/auth/oauth.py +172 -0
  56. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/declarative/auth/selective_authenticator.py +39 -0
  57. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/declarative/auth/token.py +271 -0
  58. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/declarative/auth/token_provider.py +81 -0
  59. {airbyte-cdk-0.2.3 → airbyte_cdk-0.2.3.dev0}/airbyte_cdk/sources/declarative/checks/__init__.py +1 -1
  60. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/declarative/checks/check_stream.py +56 -0
  61. {airbyte-cdk-0.2.3 → airbyte_cdk-0.2.3.dev0}/airbyte_cdk/sources/declarative/checks/connection_checker.py +5 -3
  62. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/declarative/concurrency_level/__init__.py +7 -0
  63. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/declarative/concurrency_level/concurrency_level.py +50 -0
  64. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/declarative/concurrent_declarative_source.py +376 -0
  65. {airbyte-cdk-0.2.3 → airbyte_cdk-0.2.3.dev0}/airbyte_cdk/sources/declarative/datetime/__init__.py +1 -1
  66. {airbyte-cdk-0.2.3 → airbyte_cdk-0.2.3.dev0}/airbyte_cdk/sources/declarative/datetime/datetime_parser.py +22 -5
  67. {airbyte-cdk-0.2.3 → airbyte_cdk-0.2.3.dev0}/airbyte_cdk/sources/declarative/datetime/min_max_datetime.py +51 -22
  68. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/declarative/declarative_component_schema.yaml +2892 -0
  69. {airbyte-cdk-0.2.3 → airbyte_cdk-0.2.3.dev0}/airbyte_cdk/sources/declarative/declarative_source.py +7 -4
  70. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/declarative/declarative_stream.py +232 -0
  71. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/declarative/decoders/__init__.py +11 -0
  72. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/declarative/decoders/decoder.py +32 -0
  73. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/declarative/decoders/json_decoder.py +110 -0
  74. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/declarative/decoders/noop_decoder.py +17 -0
  75. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/declarative/decoders/pagination_decoder_decorator.py +38 -0
  76. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/declarative/decoders/xml_decoder.py +97 -0
  77. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/declarative/exceptions.py +9 -0
  78. {airbyte-cdk-0.2.3 → airbyte_cdk-0.2.3.dev0}/airbyte_cdk/sources/declarative/extractors/__init__.py +3 -2
  79. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/declarative/extractors/dpath_extractor.py +85 -0
  80. {airbyte-cdk-0.2.3 → airbyte_cdk-0.2.3.dev0}/airbyte_cdk/sources/declarative/extractors/http_selector.py +7 -8
  81. {airbyte-cdk-0.2.3 → airbyte_cdk-0.2.3.dev0}/airbyte_cdk/sources/declarative/extractors/record_extractor.py +4 -7
  82. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/declarative/extractors/record_filter.py +135 -0
  83. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/declarative/extractors/record_selector.py +130 -0
  84. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/declarative/extractors/response_to_file_extractor.py +172 -0
  85. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/declarative/incremental/__init__.py +24 -0
  86. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/declarative/incremental/datetime_based_cursor.py +450 -0
  87. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/declarative/incremental/declarative_cursor.py +13 -0
  88. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/declarative/incremental/global_substream_cursor.py +347 -0
  89. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/declarative/incremental/per_partition_cursor.py +345 -0
  90. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/declarative/incremental/per_partition_with_global.py +202 -0
  91. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/declarative/incremental/resumable_full_refresh_cursor.py +122 -0
  92. {airbyte-cdk-0.2.3 → airbyte_cdk-0.2.3.dev0}/airbyte_cdk/sources/declarative/interpolation/__init__.py +1 -1
  93. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/declarative/interpolation/filters.py +120 -0
  94. {airbyte-cdk-0.2.3 → airbyte_cdk-0.2.3.dev0}/airbyte_cdk/sources/declarative/interpolation/interpolated_boolean.py +30 -11
  95. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/declarative/interpolation/interpolated_mapping.py +56 -0
  96. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/declarative/interpolation/interpolated_nested_mapping.py +52 -0
  97. {airbyte-cdk-0.2.3 → airbyte_cdk-0.2.3.dev0}/airbyte_cdk/sources/declarative/interpolation/interpolated_string.py +29 -15
  98. {airbyte-cdk-0.2.3 → airbyte_cdk-0.2.3.dev0}/airbyte_cdk/sources/declarative/interpolation/interpolation.py +10 -4
  99. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/declarative/interpolation/jinja.py +146 -0
  100. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/declarative/interpolation/macros.py +155 -0
  101. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/declarative/manifest_declarative_source.py +306 -0
  102. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/declarative/migrations/legacy_to_per_partition_state_migration.py +98 -0
  103. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/declarative/migrations/state_migration.py +24 -0
  104. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/declarative/models/__init__.py +2 -0
  105. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/declarative/models/declarative_component_schema.py +1748 -0
  106. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/declarative/parsers/custom_exceptions.py +21 -0
  107. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/declarative/parsers/manifest_component_transformer.py +159 -0
  108. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/declarative/parsers/manifest_reference_resolver.py +213 -0
  109. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/declarative/parsers/model_to_component_factory.py +2184 -0
  110. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/declarative/partition_routers/__init__.py +10 -0
  111. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/declarative/partition_routers/cartesian_product_stream_slicer.py +176 -0
  112. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/declarative/partition_routers/list_partition_router.py +119 -0
  113. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/declarative/partition_routers/partition_router.py +62 -0
  114. airbyte-cdk-0.2.3/airbyte_cdk/sources/declarative/stream_slicers/single_slice.py → airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/declarative/partition_routers/single_partition_router.py +20 -16
  115. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/declarative/partition_routers/substream_partition_router.py +334 -0
  116. {airbyte-cdk-0.2.3 → airbyte_cdk-0.2.3.dev0}/airbyte_cdk/sources/declarative/requesters/__init__.py +1 -1
  117. {airbyte-cdk-0.2.3 → airbyte_cdk-0.2.3.dev0}/airbyte_cdk/sources/declarative/requesters/error_handlers/__init__.py +1 -1
  118. {airbyte-cdk-0.2.3 → airbyte_cdk-0.2.3.dev0}/airbyte_cdk/sources/declarative/requesters/error_handlers/backoff_strategies/__init__.py +1 -1
  119. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/declarative/requesters/error_handlers/backoff_strategies/constant_backoff_strategy.py +44 -0
  120. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/declarative/requesters/error_handlers/backoff_strategies/exponential_backoff_strategy.py +44 -0
  121. {airbyte-cdk-0.2.3 → airbyte_cdk-0.2.3.dev0}/airbyte_cdk/sources/declarative/requesters/error_handlers/backoff_strategies/header_helper.py +5 -3
  122. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/declarative/requesters/error_handlers/backoff_strategies/wait_time_from_header_backoff_strategy.py +69 -0
  123. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/declarative/requesters/error_handlers/backoff_strategies/wait_until_time_from_header_backoff_strategy.py +76 -0
  124. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/declarative/requesters/error_handlers/backoff_strategy.py +17 -0
  125. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/declarative/requesters/error_handlers/composite_error_handler.py +78 -0
  126. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/declarative/requesters/error_handlers/default_error_handler.py +146 -0
  127. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/declarative/requesters/error_handlers/default_http_response_filter.py +39 -0
  128. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/declarative/requesters/error_handlers/error_handler.py +17 -0
  129. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/declarative/requesters/error_handlers/http_response_filter.py +176 -0
  130. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/declarative/requesters/http_job_repository.py +227 -0
  131. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/declarative/requesters/http_requester.py +363 -0
  132. {airbyte-cdk-0.2.3 → airbyte_cdk-0.2.3.dev0}/airbyte_cdk/sources/declarative/requesters/paginators/__init__.py +3 -3
  133. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/declarative/requesters/paginators/default_paginator.py +277 -0
  134. {airbyte-cdk-0.2.3 → airbyte_cdk-0.2.3.dev0}/airbyte_cdk/sources/declarative/requesters/paginators/no_pagination.py +10 -9
  135. {airbyte-cdk-0.2.3 → airbyte_cdk-0.2.3.dev0}/airbyte_cdk/sources/declarative/requesters/paginators/paginator.py +14 -9
  136. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/declarative/requesters/paginators/strategies/__init__.py +19 -0
  137. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/declarative/requesters/paginators/strategies/cursor_pagination_strategy.py +93 -0
  138. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/declarative/requesters/paginators/strategies/offset_increment.py +99 -0
  139. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/declarative/requesters/paginators/strategies/page_increment.py +69 -0
  140. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/declarative/requesters/paginators/strategies/pagination_strategy.py +48 -0
  141. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/declarative/requesters/paginators/strategies/stop_condition.py +57 -0
  142. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/declarative/requesters/request_option.py +38 -0
  143. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/declarative/requesters/request_options/__init__.py +14 -0
  144. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/declarative/requesters/request_options/datetime_based_request_options_provider.py +91 -0
  145. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/declarative/requesters/request_options/default_request_options_provider.py +60 -0
  146. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/declarative/requesters/request_options/interpolated_nested_request_input_provider.py +62 -0
  147. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/declarative/requesters/request_options/interpolated_request_input_provider.py +71 -0
  148. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/declarative/requesters/request_options/interpolated_request_options_provider.py +163 -0
  149. {airbyte-cdk-0.2.3 → airbyte_cdk-0.2.3.dev0}/airbyte_cdk/sources/declarative/requesters/request_options/request_options_provider.py +7 -8
  150. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/declarative/requesters/request_path.py +15 -0
  151. {airbyte-cdk-0.2.3 → airbyte_cdk-0.2.3.dev0}/airbyte_cdk/sources/declarative/requesters/requester.py +27 -44
  152. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/declarative/retrievers/__init__.py +9 -0
  153. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/declarative/retrievers/async_retriever.py +122 -0
  154. {airbyte-cdk-0.2.3 → airbyte_cdk-0.2.3.dev0}/airbyte_cdk/sources/declarative/retrievers/retriever.py +11 -17
  155. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/declarative/retrievers/simple_retriever.py +587 -0
  156. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/declarative/schema/__init__.py +10 -0
  157. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/declarative/schema/default_schema_loader.py +47 -0
  158. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/declarative/schema/inline_schema_loader.py +19 -0
  159. airbyte-cdk-0.2.3/airbyte_cdk/sources/declarative/schema/json_schema.py → airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/declarative/schema/json_file_schema_loader.py +26 -22
  160. {airbyte-cdk-0.2.3 → airbyte_cdk-0.2.3.dev0}/airbyte_cdk/sources/declarative/schema/schema_loader.py +2 -4
  161. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/declarative/spec/__init__.py +7 -0
  162. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/declarative/spec/spec.py +48 -0
  163. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/declarative/stream_slicers/__init__.py +7 -0
  164. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/declarative/stream_slicers/declarative_partition_generator.py +85 -0
  165. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/declarative/stream_slicers/stream_slicer.py +25 -0
  166. {airbyte-cdk-0.2.3 → airbyte_cdk-0.2.3.dev0}/airbyte_cdk/sources/declarative/transformations/__init__.py +1 -1
  167. {airbyte-cdk-0.2.3 → airbyte_cdk-0.2.3.dev0}/airbyte_cdk/sources/declarative/transformations/add_fields.py +40 -24
  168. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/declarative/transformations/keys_to_lower_transformation.py +22 -0
  169. {airbyte-cdk-0.2.3 → airbyte_cdk-0.2.3.dev0}/airbyte_cdk/sources/declarative/transformations/remove_fields.py +27 -11
  170. {airbyte-cdk-0.2.3 → airbyte_cdk-0.2.3.dev0}/airbyte_cdk/sources/declarative/transformations/transformation.py +8 -9
  171. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/declarative/types.py +25 -0
  172. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/declarative/yaml_declarative_source.py +62 -0
  173. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/embedded/base_integration.py +60 -0
  174. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/embedded/catalog.py +57 -0
  175. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/embedded/runner.py +57 -0
  176. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/embedded/tools.py +26 -0
  177. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/file_based/README.md +152 -0
  178. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/file_based/__init__.py +24 -0
  179. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/file_based/availability_strategy/__init__.py +4 -0
  180. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/file_based/availability_strategy/abstract_file_based_availability_strategy.py +65 -0
  181. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/file_based/availability_strategy/default_file_based_availability_strategy.py +138 -0
  182. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/file_based/config/abstract_file_based_spec.py +140 -0
  183. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/file_based/config/avro_format.py +24 -0
  184. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/file_based/config/csv_format.py +209 -0
  185. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/file_based/config/excel_format.py +17 -0
  186. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/file_based/config/file_based_stream_config.py +98 -0
  187. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/file_based/config/jsonl_format.py +17 -0
  188. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/file_based/config/parquet_format.py +24 -0
  189. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/file_based/config/unstructured_format.py +101 -0
  190. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/file_based/discovery_policy/__init__.py +4 -0
  191. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/file_based/discovery_policy/abstract_discovery_policy.py +21 -0
  192. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/file_based/discovery_policy/default_discovery_policy.py +33 -0
  193. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/file_based/exceptions.py +125 -0
  194. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/file_based/file_based_source.py +386 -0
  195. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/file_based/file_based_stream_reader.py +170 -0
  196. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/file_based/file_types/__init__.py +28 -0
  197. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/file_based/file_types/avro_parser.py +229 -0
  198. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/file_based/file_types/csv_parser.py +526 -0
  199. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/file_based/file_types/excel_parser.py +190 -0
  200. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/file_based/file_types/file_transfer.py +37 -0
  201. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/file_based/file_types/file_type_parser.py +86 -0
  202. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/file_based/file_types/jsonl_parser.py +144 -0
  203. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/file_based/file_types/parquet_parser.py +274 -0
  204. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/file_based/file_types/unstructured_parser.py +456 -0
  205. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/file_based/remote_file.py +18 -0
  206. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/file_based/schema_helpers.py +273 -0
  207. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/file_based/schema_validation_policies/__init__.py +15 -0
  208. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/file_based/schema_validation_policies/abstract_schema_validation_policy.py +20 -0
  209. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/file_based/schema_validation_policies/default_schema_validation_policies.py +52 -0
  210. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/file_based/stream/__init__.py +4 -0
  211. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/file_based/stream/abstract_file_based_stream.py +196 -0
  212. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/file_based/stream/concurrent/adapters.py +348 -0
  213. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/file_based/stream/concurrent/cursor/__init__.py +5 -0
  214. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/file_based/stream/concurrent/cursor/abstract_concurrent_file_based_cursor.py +59 -0
  215. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/file_based/stream/concurrent/cursor/file_based_concurrent_cursor.py +313 -0
  216. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/file_based/stream/concurrent/cursor/file_based_final_state_cursor.py +83 -0
  217. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/file_based/stream/cursor/__init__.py +4 -0
  218. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/file_based/stream/cursor/abstract_file_based_cursor.py +66 -0
  219. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/file_based/stream/cursor/default_file_based_cursor.py +149 -0
  220. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/file_based/stream/default_file_based_stream.py +388 -0
  221. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/file_based/types.py +10 -0
  222. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/http_config.py +10 -0
  223. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/http_logger.py +51 -0
  224. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/message/__init__.py +13 -0
  225. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/message/repository.py +137 -0
  226. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/source.py +95 -0
  227. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/streams/__init__.py +8 -0
  228. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/streams/availability_strategy.py +84 -0
  229. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/streams/call_rate.py +567 -0
  230. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/streams/checkpoint/__init__.py +27 -0
  231. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/streams/checkpoint/checkpoint_reader.py +335 -0
  232. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/streams/checkpoint/cursor.py +77 -0
  233. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/streams/checkpoint/per_partition_key_serializer.py +22 -0
  234. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/streams/checkpoint/resumable_full_refresh_cursor.py +51 -0
  235. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/streams/checkpoint/substream_resumable_full_refresh_cursor.py +110 -0
  236. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/streams/concurrent/README.md +7 -0
  237. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/streams/concurrent/__init__.py +3 -0
  238. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/streams/concurrent/abstract_stream.py +92 -0
  239. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/streams/concurrent/abstract_stream_facade.py +37 -0
  240. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/streams/concurrent/adapters.py +382 -0
  241. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/streams/concurrent/availability_strategy.py +87 -0
  242. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/streams/concurrent/cursor.py +444 -0
  243. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/streams/concurrent/default_stream.py +98 -0
  244. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/streams/concurrent/exceptions.py +18 -0
  245. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/streams/concurrent/helpers.py +35 -0
  246. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/streams/concurrent/partition_enqueuer.py +64 -0
  247. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/streams/concurrent/partition_reader.py +45 -0
  248. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/streams/concurrent/partitions/__init__.py +3 -0
  249. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/streams/concurrent/partitions/partition.py +48 -0
  250. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/streams/concurrent/partitions/partition_generator.py +18 -0
  251. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/streams/concurrent/partitions/record.py +35 -0
  252. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/streams/concurrent/partitions/stream_slicer.py +21 -0
  253. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/streams/concurrent/partitions/types.py +38 -0
  254. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/streams/concurrent/state_converters/abstract_stream_state_converter.py +181 -0
  255. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/streams/concurrent/state_converters/datetime_stream_state_converter.py +214 -0
  256. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/streams/core.py +699 -0
  257. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/streams/http/__init__.py +10 -0
  258. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/streams/http/availability_strategy.py +54 -0
  259. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/streams/http/error_handlers/__init__.py +22 -0
  260. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/streams/http/error_handlers/backoff_strategy.py +28 -0
  261. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/streams/http/error_handlers/default_backoff_strategy.py +17 -0
  262. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/streams/http/error_handlers/default_error_mapping.py +85 -0
  263. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/streams/http/error_handlers/error_handler.py +42 -0
  264. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/streams/http/error_handlers/error_message_parser.py +19 -0
  265. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/streams/http/error_handlers/http_status_error_handler.py +109 -0
  266. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/streams/http/error_handlers/json_error_message_parser.py +51 -0
  267. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/streams/http/error_handlers/response_models.py +64 -0
  268. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/streams/http/exceptions.py +61 -0
  269. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/streams/http/http.py +673 -0
  270. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/streams/http/http_client.py +472 -0
  271. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/streams/http/rate_limiting.py +158 -0
  272. {airbyte-cdk-0.2.3/airbyte_cdk/sources/streams/http/auth → airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/streams/http/requests_native_auth}/__init__.py +4 -7
  273. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/streams/http/requests_native_auth/abstract_oauth.py +271 -0
  274. {airbyte-cdk-0.2.3 → airbyte_cdk-0.2.3.dev0}/airbyte_cdk/sources/streams/http/requests_native_auth/abstract_token.py +1 -1
  275. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/streams/http/requests_native_auth/oauth.py +285 -0
  276. {airbyte-cdk-0.2.3 → airbyte_cdk-0.2.3.dev0}/airbyte_cdk/sources/streams/http/requests_native_auth/token.py +14 -4
  277. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/streams/utils/__init__.py +3 -0
  278. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/types.py +141 -0
  279. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/utils/__init__.py +7 -0
  280. {airbyte-cdk-0.2.3 → airbyte_cdk-0.2.3.dev0}/airbyte_cdk/sources/utils/casing.py +2 -2
  281. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/utils/record_helper.py +53 -0
  282. {airbyte-cdk-0.2.3 → airbyte_cdk-0.2.3.dev0}/airbyte_cdk/sources/utils/schema_helpers.py +51 -20
  283. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/utils/slice_logger.py +57 -0
  284. {airbyte-cdk-0.2.3 → airbyte_cdk-0.2.3.dev0}/airbyte_cdk/sources/utils/transform.py +26 -11
  285. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/utils/types.py +7 -0
  286. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sql/_util/hashing.py +34 -0
  287. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sql/_util/name_normalizers.py +92 -0
  288. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sql/constants.py +32 -0
  289. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sql/exceptions.py +235 -0
  290. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sql/secrets.py +122 -0
  291. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sql/shared/__init__.py +15 -0
  292. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sql/shared/catalog_providers.py +145 -0
  293. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sql/shared/sql_processor.py +784 -0
  294. airbyte_cdk-0.2.3.dev0/airbyte_cdk/sql/types.py +160 -0
  295. airbyte_cdk-0.2.3.dev0/airbyte_cdk/test/__init__.py +7 -0
  296. airbyte_cdk-0.2.3.dev0/airbyte_cdk/test/catalog_builder.py +81 -0
  297. airbyte_cdk-0.2.3.dev0/airbyte_cdk/test/entrypoint_wrapper.py +244 -0
  298. airbyte_cdk-0.2.3.dev0/airbyte_cdk/test/mock_http/__init__.py +6 -0
  299. airbyte_cdk-0.2.3.dev0/airbyte_cdk/test/mock_http/matcher.py +41 -0
  300. airbyte_cdk-0.2.3.dev0/airbyte_cdk/test/mock_http/mocker.py +169 -0
  301. airbyte_cdk-0.2.3.dev0/airbyte_cdk/test/mock_http/request.py +103 -0
  302. airbyte_cdk-0.2.3.dev0/airbyte_cdk/test/mock_http/response.py +25 -0
  303. airbyte_cdk-0.2.3.dev0/airbyte_cdk/test/mock_http/response_builder.py +229 -0
  304. airbyte_cdk-0.2.3.dev0/airbyte_cdk/test/state_builder.py +33 -0
  305. airbyte_cdk-0.2.3.dev0/airbyte_cdk/test/utils/__init__.py +1 -0
  306. airbyte_cdk-0.2.3.dev0/airbyte_cdk/test/utils/data.py +24 -0
  307. airbyte_cdk-0.2.3.dev0/airbyte_cdk/test/utils/http_mocking.py +16 -0
  308. airbyte_cdk-0.2.3.dev0/airbyte_cdk/test/utils/reading.py +26 -0
  309. airbyte_cdk-0.2.3.dev0/airbyte_cdk/utils/__init__.py +10 -0
  310. {airbyte-cdk-0.2.3 → airbyte_cdk-0.2.3.dev0}/airbyte_cdk/utils/airbyte_secrets_utils.py +14 -6
  311. airbyte_cdk-0.2.3.dev0/airbyte_cdk/utils/analytics_message.py +25 -0
  312. airbyte_cdk-0.2.3.dev0/airbyte_cdk/utils/constants.py +5 -0
  313. airbyte_cdk-0.2.3.dev0/airbyte_cdk/utils/datetime_format_inferrer.py +94 -0
  314. {airbyte-cdk-0.2.3 → airbyte_cdk-0.2.3.dev0}/airbyte_cdk/utils/event_timing.py +1 -1
  315. airbyte_cdk-0.2.3.dev0/airbyte_cdk/utils/is_cloud_environment.py +18 -0
  316. airbyte_cdk-0.2.3.dev0/airbyte_cdk/utils/mapping_helpers.py +45 -0
  317. airbyte_cdk-0.2.3.dev0/airbyte_cdk/utils/message_utils.py +25 -0
  318. airbyte_cdk-0.2.3.dev0/airbyte_cdk/utils/oneof_option_config.py +33 -0
  319. airbyte_cdk-0.2.3.dev0/airbyte_cdk/utils/print_buffer.py +75 -0
  320. airbyte_cdk-0.2.3.dev0/airbyte_cdk/utils/schema_inferrer.py +269 -0
  321. airbyte_cdk-0.2.3.dev0/airbyte_cdk/utils/slice_hasher.py +30 -0
  322. airbyte_cdk-0.2.3.dev0/airbyte_cdk/utils/spec_schema_transformations.py +25 -0
  323. airbyte_cdk-0.2.3.dev0/airbyte_cdk/utils/stream_status_utils.py +43 -0
  324. airbyte_cdk-0.2.3.dev0/airbyte_cdk/utils/traced_exception.py +142 -0
  325. airbyte_cdk-0.2.3.dev0/pyproject.toml +195 -0
  326. airbyte-cdk-0.2.3/PKG-INFO +0 -109
  327. airbyte-cdk-0.2.3/README.md +0 -85
  328. airbyte-cdk-0.2.3/airbyte_cdk/__init__.py +0 -9
  329. airbyte-cdk-0.2.3/airbyte_cdk/destinations/__init__.py +0 -7
  330. airbyte-cdk-0.2.3/airbyte_cdk/entrypoint.py +0 -147
  331. airbyte-cdk-0.2.3/airbyte_cdk/exception_handler.py +0 -34
  332. airbyte-cdk-0.2.3/airbyte_cdk/models/__init__.py +0 -2
  333. airbyte-cdk-0.2.3/airbyte_cdk/models/airbyte_protocol.py +0 -340
  334. airbyte-cdk-0.2.3/airbyte_cdk/sources/__init__.py +0 -9
  335. airbyte-cdk-0.2.3/airbyte_cdk/sources/abstract_source.py +0 -331
  336. airbyte-cdk-0.2.3/airbyte_cdk/sources/connector_state_manager.py +0 -196
  337. airbyte-cdk-0.2.3/airbyte_cdk/sources/declarative/auth/__init__.py +0 -9
  338. airbyte-cdk-0.2.3/airbyte_cdk/sources/declarative/auth/declarative_authenticator.py +0 -29
  339. airbyte-cdk-0.2.3/airbyte_cdk/sources/declarative/auth/oauth.py +0 -100
  340. airbyte-cdk-0.2.3/airbyte_cdk/sources/declarative/auth/token.py +0 -117
  341. airbyte-cdk-0.2.3/airbyte_cdk/sources/declarative/checks/check_stream.py +0 -61
  342. airbyte-cdk-0.2.3/airbyte_cdk/sources/declarative/create_partial.py +0 -92
  343. airbyte-cdk-0.2.3/airbyte_cdk/sources/declarative/declarative_stream.py +0 -146
  344. airbyte-cdk-0.2.3/airbyte_cdk/sources/declarative/decoders/__init__.py +0 -8
  345. airbyte-cdk-0.2.3/airbyte_cdk/sources/declarative/decoders/decoder.py +0 -26
  346. airbyte-cdk-0.2.3/airbyte_cdk/sources/declarative/decoders/json_decoder.py +0 -22
  347. airbyte-cdk-0.2.3/airbyte_cdk/sources/declarative/exceptions.py +0 -15
  348. airbyte-cdk-0.2.3/airbyte_cdk/sources/declarative/extractors/dpath_extractor.py +0 -79
  349. airbyte-cdk-0.2.3/airbyte_cdk/sources/declarative/extractors/record_filter.py +0 -37
  350. airbyte-cdk-0.2.3/airbyte_cdk/sources/declarative/extractors/record_selector.py +0 -46
  351. airbyte-cdk-0.2.3/airbyte_cdk/sources/declarative/interpolation/filters.py +0 -55
  352. airbyte-cdk-0.2.3/airbyte_cdk/sources/declarative/interpolation/interpolated_mapping.py +0 -52
  353. airbyte-cdk-0.2.3/airbyte_cdk/sources/declarative/interpolation/jinja.py +0 -66
  354. airbyte-cdk-0.2.3/airbyte_cdk/sources/declarative/interpolation/macros.py +0 -100
  355. airbyte-cdk-0.2.3/airbyte_cdk/sources/declarative/parsers/class_types_registry.py +0 -80
  356. airbyte-cdk-0.2.3/airbyte_cdk/sources/declarative/parsers/config_parser.py +0 -17
  357. airbyte-cdk-0.2.3/airbyte_cdk/sources/declarative/parsers/default_implementation_registry.py +0 -64
  358. airbyte-cdk-0.2.3/airbyte_cdk/sources/declarative/parsers/factory.py +0 -317
  359. airbyte-cdk-0.2.3/airbyte_cdk/sources/declarative/parsers/undefined_reference_exception.py +0 -12
  360. airbyte-cdk-0.2.3/airbyte_cdk/sources/declarative/parsers/yaml_parser.py +0 -202
  361. airbyte-cdk-0.2.3/airbyte_cdk/sources/declarative/requesters/error_handlers/backoff_strategies/constant_backoff_strategy.py +0 -25
  362. airbyte-cdk-0.2.3/airbyte_cdk/sources/declarative/requesters/error_handlers/backoff_strategies/exponential_backoff_strategy.py +0 -25
  363. airbyte-cdk-0.2.3/airbyte_cdk/sources/declarative/requesters/error_handlers/backoff_strategies/wait_time_from_header_backoff_strategy.py +0 -33
  364. airbyte-cdk-0.2.3/airbyte_cdk/sources/declarative/requesters/error_handlers/backoff_strategies/wait_until_time_from_header_backoff_strategy.py +0 -49
  365. airbyte-cdk-0.2.3/airbyte_cdk/sources/declarative/requesters/error_handlers/backoff_strategy.py +0 -26
  366. airbyte-cdk-0.2.3/airbyte_cdk/sources/declarative/requesters/error_handlers/composite_error_handler.py +0 -60
  367. airbyte-cdk-0.2.3/airbyte_cdk/sources/declarative/requesters/error_handlers/default_error_handler.py +0 -150
  368. airbyte-cdk-0.2.3/airbyte_cdk/sources/declarative/requesters/error_handlers/error_handler.py +0 -36
  369. airbyte-cdk-0.2.3/airbyte_cdk/sources/declarative/requesters/error_handlers/http_response_filter.py +0 -66
  370. airbyte-cdk-0.2.3/airbyte_cdk/sources/declarative/requesters/error_handlers/response_action.py +0 -16
  371. airbyte-cdk-0.2.3/airbyte_cdk/sources/declarative/requesters/error_handlers/response_status.py +0 -61
  372. airbyte-cdk-0.2.3/airbyte_cdk/sources/declarative/requesters/http_requester.py +0 -158
  373. airbyte-cdk-0.2.3/airbyte_cdk/sources/declarative/requesters/paginators/default_paginator.py +0 -164
  374. airbyte-cdk-0.2.3/airbyte_cdk/sources/declarative/requesters/paginators/strategies/__init__.py +0 -9
  375. airbyte-cdk-0.2.3/airbyte_cdk/sources/declarative/requesters/paginators/strategies/cursor_pagination_strategy.py +0 -64
  376. airbyte-cdk-0.2.3/airbyte_cdk/sources/declarative/requesters/paginators/strategies/offset_increment.py +0 -39
  377. airbyte-cdk-0.2.3/airbyte_cdk/sources/declarative/requesters/paginators/strategies/page_increment.py +0 -39
  378. airbyte-cdk-0.2.3/airbyte_cdk/sources/declarative/requesters/paginators/strategies/pagination_strategy.py +0 -38
  379. airbyte-cdk-0.2.3/airbyte_cdk/sources/declarative/requesters/request_option.py +0 -47
  380. airbyte-cdk-0.2.3/airbyte_cdk/sources/declarative/requesters/request_options/__init__.py +0 -10
  381. airbyte-cdk-0.2.3/airbyte_cdk/sources/declarative/requesters/request_options/interpolated_request_input_provider.py +0 -50
  382. airbyte-cdk-0.2.3/airbyte_cdk/sources/declarative/requesters/request_options/interpolated_request_options_provider.py +0 -99
  383. airbyte-cdk-0.2.3/airbyte_cdk/sources/declarative/retrievers/__init__.py +0 -8
  384. airbyte-cdk-0.2.3/airbyte_cdk/sources/declarative/retrievers/simple_retriever.py +0 -377
  385. airbyte-cdk-0.2.3/airbyte_cdk/sources/declarative/schema/__init__.py +0 -8
  386. airbyte-cdk-0.2.3/airbyte_cdk/sources/declarative/stream_slicers/__init__.py +0 -12
  387. airbyte-cdk-0.2.3/airbyte_cdk/sources/declarative/stream_slicers/cartesian_product_stream_slicer.py +0 -113
  388. airbyte-cdk-0.2.3/airbyte_cdk/sources/declarative/stream_slicers/datetime_stream_slicer.py +0 -246
  389. airbyte-cdk-0.2.3/airbyte_cdk/sources/declarative/stream_slicers/list_stream_slicer.py +0 -92
  390. airbyte-cdk-0.2.3/airbyte_cdk/sources/declarative/stream_slicers/stream_slicer.py +0 -47
  391. airbyte-cdk-0.2.3/airbyte_cdk/sources/declarative/stream_slicers/substream_slicer.py +0 -141
  392. airbyte-cdk-0.2.3/airbyte_cdk/sources/declarative/types.py +0 -16
  393. airbyte-cdk-0.2.3/airbyte_cdk/sources/declarative/yaml_declarative_source.py +0 -162
  394. airbyte-cdk-0.2.3/airbyte_cdk/sources/deprecated/base_source.py +0 -94
  395. airbyte-cdk-0.2.3/airbyte_cdk/sources/deprecated/client.py +0 -99
  396. airbyte-cdk-0.2.3/airbyte_cdk/sources/singer/__init__.py +0 -8
  397. airbyte-cdk-0.2.3/airbyte_cdk/sources/singer/singer_helpers.py +0 -304
  398. airbyte-cdk-0.2.3/airbyte_cdk/sources/singer/source.py +0 -186
  399. airbyte-cdk-0.2.3/airbyte_cdk/sources/source.py +0 -90
  400. airbyte-cdk-0.2.3/airbyte_cdk/sources/streams/__init__.py +0 -8
  401. airbyte-cdk-0.2.3/airbyte_cdk/sources/streams/core.py +0 -233
  402. airbyte-cdk-0.2.3/airbyte_cdk/sources/streams/http/__init__.py +0 -9
  403. airbyte-cdk-0.2.3/airbyte_cdk/sources/streams/http/auth/core.py +0 -29
  404. airbyte-cdk-0.2.3/airbyte_cdk/sources/streams/http/auth/oauth.py +0 -96
  405. airbyte-cdk-0.2.3/airbyte_cdk/sources/streams/http/auth/token.py +0 -47
  406. airbyte-cdk-0.2.3/airbyte_cdk/sources/streams/http/exceptions.py +0 -39
  407. airbyte-cdk-0.2.3/airbyte_cdk/sources/streams/http/http.py +0 -449
  408. airbyte-cdk-0.2.3/airbyte_cdk/sources/streams/http/rate_limiting.py +0 -77
  409. airbyte-cdk-0.2.3/airbyte_cdk/sources/streams/http/requests_native_auth/__init__.py +0 -8
  410. airbyte-cdk-0.2.3/airbyte_cdk/sources/streams/http/requests_native_auth/abstract_oauth.py +0 -129
  411. airbyte-cdk-0.2.3/airbyte_cdk/sources/streams/http/requests_native_auth/oauth.py +0 -77
  412. airbyte-cdk-0.2.3/airbyte_cdk/sources/utils/__init__.py +0 -5
  413. airbyte-cdk-0.2.3/airbyte_cdk/sources/utils/catalog_helpers.py +0 -22
  414. airbyte-cdk-0.2.3/airbyte_cdk/sources/utils/schema_models.py +0 -84
  415. airbyte-cdk-0.2.3/airbyte_cdk/utils/__init__.py +0 -6
  416. airbyte-cdk-0.2.3/airbyte_cdk/utils/traced_exception.py +0 -89
  417. airbyte-cdk-0.2.3/airbyte_cdk.egg-info/PKG-INFO +0 -109
  418. airbyte-cdk-0.2.3/airbyte_cdk.egg-info/SOURCES.txt +0 -223
  419. airbyte-cdk-0.2.3/airbyte_cdk.egg-info/dependency_links.txt +0 -1
  420. airbyte-cdk-0.2.3/airbyte_cdk.egg-info/requires.txt +0 -24
  421. airbyte-cdk-0.2.3/airbyte_cdk.egg-info/top_level.txt +0 -2
  422. airbyte-cdk-0.2.3/pyproject.toml +0 -8
  423. airbyte-cdk-0.2.3/setup.cfg +0 -4
  424. airbyte-cdk-0.2.3/setup.py +0 -75
  425. airbyte-cdk-0.2.3/unit_tests/destinations/test_destination.py +0 -243
  426. airbyte-cdk-0.2.3/unit_tests/singer/test_singer_helpers.py +0 -56
  427. airbyte-cdk-0.2.3/unit_tests/singer/test_singer_source.py +0 -112
  428. airbyte-cdk-0.2.3/unit_tests/sources/declarative/auth/__init__.py +0 -3
  429. airbyte-cdk-0.2.3/unit_tests/sources/declarative/auth/test_oauth.py +0 -95
  430. airbyte-cdk-0.2.3/unit_tests/sources/declarative/auth/test_token_auth.py +0 -91
  431. airbyte-cdk-0.2.3/unit_tests/sources/declarative/checks/__init__.py +0 -3
  432. airbyte-cdk-0.2.3/unit_tests/sources/declarative/checks/test_check_stream.py +0 -51
  433. airbyte-cdk-0.2.3/unit_tests/sources/declarative/extractors/__init__.py +0 -3
  434. airbyte-cdk-0.2.3/unit_tests/sources/declarative/extractors/test_dpath_extractor.py +0 -43
  435. airbyte-cdk-0.2.3/unit_tests/sources/declarative/extractors/test_record_filter.py +0 -55
  436. airbyte-cdk-0.2.3/unit_tests/sources/declarative/extractors/test_record_selector.py +0 -87
  437. airbyte-cdk-0.2.3/unit_tests/sources/declarative/interpolation/__init__.py +0 -3
  438. airbyte-cdk-0.2.3/unit_tests/sources/declarative/interpolation/test_filters.py +0 -50
  439. airbyte-cdk-0.2.3/unit_tests/sources/declarative/interpolation/test_interpolated_boolean.py +0 -41
  440. airbyte-cdk-0.2.3/unit_tests/sources/declarative/interpolation/test_interpolated_mapping.py +0 -35
  441. airbyte-cdk-0.2.3/unit_tests/sources/declarative/interpolation/test_interpolated_string.py +0 -25
  442. airbyte-cdk-0.2.3/unit_tests/sources/declarative/interpolation/test_jinja.py +0 -80
  443. airbyte-cdk-0.2.3/unit_tests/sources/declarative/interpolation/test_macros.py +0 -24
  444. airbyte-cdk-0.2.3/unit_tests/sources/declarative/iterators/__init__.py +0 -3
  445. airbyte-cdk-0.2.3/unit_tests/sources/declarative/iterators/test_only_once.py +0 -14
  446. airbyte-cdk-0.2.3/unit_tests/sources/declarative/parsers/__init__.py +0 -3
  447. airbyte-cdk-0.2.3/unit_tests/sources/declarative/parsers/test_yaml_parser.py +0 -144
  448. airbyte-cdk-0.2.3/unit_tests/sources/declarative/requesters/__init__.py +0 -3
  449. airbyte-cdk-0.2.3/unit_tests/sources/declarative/requesters/error_handlers/__init__.py +0 -3
  450. airbyte-cdk-0.2.3/unit_tests/sources/declarative/requesters/error_handlers/backoff_strategies/__init__.py +0 -3
  451. airbyte-cdk-0.2.3/unit_tests/sources/declarative/requesters/error_handlers/backoff_strategies/test_constant_backoff.py +0 -24
  452. airbyte-cdk-0.2.3/unit_tests/sources/declarative/requesters/error_handlers/backoff_strategies/test_exponential_backoff.py +0 -31
  453. airbyte-cdk-0.2.3/unit_tests/sources/declarative/requesters/error_handlers/backoff_strategies/test_header_helper.py +0 -38
  454. airbyte-cdk-0.2.3/unit_tests/sources/declarative/requesters/error_handlers/backoff_strategies/test_wait_time_from_header.py +0 -31
  455. airbyte-cdk-0.2.3/unit_tests/sources/declarative/requesters/error_handlers/backoff_strategies/test_wait_until_time_from_header.py +0 -36
  456. airbyte-cdk-0.2.3/unit_tests/sources/declarative/requesters/error_handlers/test_composite_error_handler.py +0 -110
  457. airbyte-cdk-0.2.3/unit_tests/sources/declarative/requesters/error_handlers/test_default_error_handler.py +0 -175
  458. airbyte-cdk-0.2.3/unit_tests/sources/declarative/requesters/error_handlers/test_response_status.py +0 -32
  459. airbyte-cdk-0.2.3/unit_tests/sources/declarative/requesters/paginators/__init__.py +0 -3
  460. airbyte-cdk-0.2.3/unit_tests/sources/declarative/requesters/paginators/test_cursor_pagination_strategy.py +0 -59
  461. airbyte-cdk-0.2.3/unit_tests/sources/declarative/requesters/paginators/test_default_paginator.py +0 -226
  462. airbyte-cdk-0.2.3/unit_tests/sources/declarative/requesters/paginators/test_no_paginator.py +0 -12
  463. airbyte-cdk-0.2.3/unit_tests/sources/declarative/requesters/paginators/test_offset_increment.py +0 -35
  464. airbyte-cdk-0.2.3/unit_tests/sources/declarative/requesters/paginators/test_page_increment.py +0 -35
  465. airbyte-cdk-0.2.3/unit_tests/sources/declarative/requesters/paginators/test_request_option.py +0 -33
  466. airbyte-cdk-0.2.3/unit_tests/sources/declarative/requesters/request_options/__init__.py +0 -3
  467. airbyte-cdk-0.2.3/unit_tests/sources/declarative/requesters/request_options/test_interpolated_request_options_provider.py +0 -86
  468. airbyte-cdk-0.2.3/unit_tests/sources/declarative/requesters/test_http_requester.py +0 -111
  469. airbyte-cdk-0.2.3/unit_tests/sources/declarative/requesters/test_interpolated_request_input_provider.py +0 -32
  470. airbyte-cdk-0.2.3/unit_tests/sources/declarative/retrievers/__init__.py +0 -3
  471. airbyte-cdk-0.2.3/unit_tests/sources/declarative/retrievers/test_simple_retriever.py +0 -343
  472. airbyte-cdk-0.2.3/unit_tests/sources/declarative/schema/__init__.py +0 -6
  473. airbyte-cdk-0.2.3/unit_tests/sources/declarative/schema/source_test/SourceTest.py +0 -8
  474. airbyte-cdk-0.2.3/unit_tests/sources/declarative/schema/source_test/__init__.py +0 -3
  475. airbyte-cdk-0.2.3/unit_tests/sources/declarative/schema/test_json_schema.py +0 -26
  476. airbyte-cdk-0.2.3/unit_tests/sources/declarative/states/__init__.py +0 -3
  477. airbyte-cdk-0.2.3/unit_tests/sources/declarative/stream_slicers/__init__.py +0 -3
  478. airbyte-cdk-0.2.3/unit_tests/sources/declarative/stream_slicers/test_cartesian_product_stream_slicer.py +0 -177
  479. airbyte-cdk-0.2.3/unit_tests/sources/declarative/stream_slicers/test_datetime_stream_slicer.py +0 -506
  480. airbyte-cdk-0.2.3/unit_tests/sources/declarative/stream_slicers/test_list_stream_slicer.py +0 -118
  481. airbyte-cdk-0.2.3/unit_tests/sources/declarative/stream_slicers/test_substream_slicer.py +0 -266
  482. airbyte-cdk-0.2.3/unit_tests/sources/declarative/test_create_partial.py +0 -83
  483. airbyte-cdk-0.2.3/unit_tests/sources/declarative/test_declarative_stream.py +0 -64
  484. airbyte-cdk-0.2.3/unit_tests/sources/declarative/test_factory.py +0 -888
  485. airbyte-cdk-0.2.3/unit_tests/sources/declarative/test_yaml_declarative_source.py +0 -386
  486. airbyte-cdk-0.2.3/unit_tests/sources/streams/http/auth/test_auth.py +0 -155
  487. airbyte-cdk-0.2.3/unit_tests/sources/streams/http/requests_native_auth/test_requests_native_auth.py +0 -180
  488. airbyte-cdk-0.2.3/unit_tests/sources/streams/http/test_http.py +0 -511
  489. airbyte-cdk-0.2.3/unit_tests/sources/streams/test_streams_core.py +0 -175
  490. airbyte-cdk-0.2.3/unit_tests/sources/test_abstract_source.py +0 -802
  491. airbyte-cdk-0.2.3/unit_tests/sources/test_config.py +0 -82
  492. airbyte-cdk-0.2.3/unit_tests/sources/test_connector_state_manager.py +0 -592
  493. airbyte-cdk-0.2.3/unit_tests/sources/test_source.py +0 -456
  494. airbyte-cdk-0.2.3/unit_tests/utils/__init__.py +0 -0
  495. airbyte-cdk-0.2.3/unit_tests/utils/test_secret_utils.py +0 -123
  496. airbyte-cdk-0.2.3/unit_tests/utils/test_traced_exception.py +0 -107
  497. {airbyte-cdk-0.2.3 → airbyte_cdk-0.2.3.dev0}/LICENSE.txt +0 -0
  498. /airbyte-cdk-0.2.3/airbyte_cdk/sources/deprecated/__init__.py → /airbyte_cdk-0.2.3.dev0/airbyte_cdk/py.typed +0 -0
  499. {airbyte-cdk-0.2.3 → airbyte_cdk-0.2.3.dev0}/airbyte_cdk/sources/declarative/__init__.py +0 -0
  500. {airbyte-cdk-0.2.3/unit_tests/destinations → airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/declarative/async_job}/__init__.py +0 -0
  501. {airbyte-cdk-0.2.3/unit_tests/singer → airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/declarative/migrations}/__init__.py +0 -0
  502. {airbyte-cdk-0.2.3 → airbyte_cdk-0.2.3.dev0}/airbyte_cdk/sources/declarative/parsers/__init__.py +0 -0
  503. {airbyte-cdk-0.2.3/unit_tests/sources/declarative → airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/embedded}/__init__.py +0 -0
  504. {airbyte-cdk-0.2.3/unit_tests/sources → airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/file_based/config}/__init__.py +0 -0
  505. {airbyte-cdk-0.2.3/unit_tests/sources/streams → airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/file_based/stream/concurrent}/__init__.py +0 -0
  506. {airbyte-cdk-0.2.3/unit_tests/sources/streams/http → airbyte_cdk-0.2.3.dev0/airbyte_cdk/sources/streams/concurrent/state_converters}/__init__.py +0 -0
  507. {airbyte-cdk-0.2.3/unit_tests/sources/streams/http/auth → airbyte_cdk-0.2.3.dev0/airbyte_cdk/sql}/__init__.py +0 -0
  508. {airbyte-cdk-0.2.3/unit_tests/sources/streams/http/requests_native_auth → airbyte_cdk-0.2.3.dev0/airbyte_cdk/sql/_util}/__init__.py +0 -0
@@ -0,0 +1,300 @@
1
+ Metadata-Version: 2.1
2
+ Name: airbyte-cdk
3
+ Version: 0.2.3.dev0
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.13,<0.14)
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
+ ##### Autogenerated files
174
+
175
+ Low-code CDK models are generated from `sources/declarative/declarative_component_schema.yaml`. If
176
+ the iteration you are working on includes changes to the models or the connector generator, you
177
+ might want to regenerate them. In order to do that, you can run:
178
+
179
+ ```bash
180
+ poetry run poe build
181
+ ```
182
+
183
+ This will generate the code generator docker image and the component manifest files based on the
184
+ schemas and templates.
185
+
186
+ #### Testing
187
+
188
+ All tests are located in the `unit_tests` directory. Run `poetry run poe unit-test-with-cov` to run
189
+ them. This also presents a test coverage report. For faster iteration with no coverage report and
190
+ more options, `python -m pytest -s unit_tests` is a good place to start.
191
+
192
+ #### Building and testing a connector with your local CDK
193
+
194
+ When developing a new feature in the CDK, you may find it helpful to run a connector that uses that
195
+ new feature. You can test this in one of two ways:
196
+
197
+ - Running a connector locally
198
+ - Building and running a source via Docker
199
+
200
+ ##### Installing your local CDK into a local Python connector
201
+
202
+ Open the connector's `pyproject.toml` file and replace the line with `airbyte_cdk` with the
203
+ following:
204
+
205
+ ```toml
206
+ airbyte_cdk = { path = "../../../airbyte-cdk/python/airbyte_cdk", develop = true }
207
+ ```
208
+
209
+ Then, running `poetry update` should reinstall `airbyte_cdk` from your local working directory.
210
+
211
+ ##### Building a Python connector in Docker with your local CDK installed
212
+
213
+ _Pre-requisite: Install the
214
+ [`airbyte-ci` CLI](https://github.com/airbytehq/airbyte/blob/master/airbyte-ci/connectors/pipelines/README.md)_
215
+
216
+ You can build your connector image with the local CDK using
217
+
218
+ ```bash
219
+ # from the airbytehq/airbyte base directory
220
+ airbyte-ci connectors --use-local-cdk --name=<CONNECTOR> build
221
+ ```
222
+
223
+ Note that the local CDK is injected at build time, so if you make changes, you will have to run the
224
+ build command again to see them reflected.
225
+
226
+ ##### Running Connector Acceptance Tests for a single connector in Docker with your local CDK installed
227
+
228
+ _Pre-requisite: Install the
229
+ [`airbyte-ci` CLI](https://github.com/airbytehq/airbyte/blob/master/airbyte-ci/connectors/pipelines/README.md)_
230
+
231
+ To run acceptance tests for a single connectors using the local CDK, from the connector directory,
232
+ run
233
+
234
+ ```bash
235
+ airbyte-ci connectors --use-local-cdk --name=<CONNECTOR> test
236
+ ```
237
+
238
+ #### When you don't have access to the API
239
+
240
+ There may be a time when you do not have access to the API (either because you don't have the
241
+ credentials, network access, etc...) You will probably still want to do end-to-end testing at least
242
+ once. In order to do so, you can emulate the server you would be reaching using a server stubbing
243
+ tool.
244
+
245
+ For example, using [mockserver](https://www.mock-server.com/), you can set up an expectation file
246
+ like this:
247
+
248
+ ```json
249
+ {
250
+ "httpRequest": {
251
+ "method": "GET",
252
+ "path": "/data"
253
+ },
254
+ "httpResponse": {
255
+ "body": "{\"data\": [{\"record_key\": 1}, {\"record_key\": 2}]}"
256
+ }
257
+ }
258
+ ```
259
+
260
+ Assuming this file has been created at `secrets/mock_server_config/expectations.json`, running the
261
+ following command will allow to match any requests on path `/data` to return the response defined in
262
+ the expectation file:
263
+
264
+ ```bash
265
+ 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
266
+ ```
267
+
268
+ HTTP requests to `localhost:8113/data` should now return the body defined in the expectations file.
269
+ To test this, the implementer either has to change the code which defines the base URL for Python
270
+ source or update the `url_base` from low-code. With the Connector Builder running in docker, you
271
+ will have to use domain `host.docker.internal` instead of `localhost` as the requests are executed
272
+ within docker.
273
+
274
+ #### Publishing a new version to PyPi
275
+
276
+ Python CDK has a
277
+ [GitHub workflow](https://github.com/airbytehq/airbyte/actions/workflows/publish-cdk-command-manually.yml)
278
+ that manages the CDK changelog, making a new release for `airbyte_cdk`, publishing it to PyPI, and
279
+ then making a commit to update (and subsequently auto-release)
280
+ [`source-declarative-m anifest`](https://github.com/airbytehq/airbyte/tree/master/airbyte-integrations/connectors/source-declarative-manifest)
281
+ and Connector Builder (in the platform repository).
282
+
283
+ > [!Note]: The workflow will handle the `CHANGELOG.md` entry for you. You should not add changelog
284
+ > lines in your PRs to the CDK itself.
285
+
286
+ > [!Warning]: The workflow bumps version on it's own, please don't change the CDK version in
287
+ > `pyproject.toml` manually.
288
+
289
+ 1. You only trigger the release workflow once all the PRs that you want to be included are already
290
+ merged into the `master` branch.
291
+ 2. The
292
+ [`Publish CDK Manually`](https://github.com/airbytehq/airbyte/actions/workflows/publish-cdk-command-manually.yml)
293
+ workflow from master using `release-type=major|manor|patch` and setting the changelog message.
294
+ 3. When the workflow runs, it will commit a new version directly to master branch.
295
+ 4. The workflow will bump the version of `source-declarative-manifest` according to the
296
+ `release-type` of the CDK, then commit these changes back to master. The commit to master will
297
+ kick off a publish of the new version of `source-declarative-manifest`.
298
+ 5. The workflow will also add a pull request to `airbyte-platform-internal` repo to bump the
299
+ dependency in Connector Builder.
300
+
@@ -0,0 +1,222 @@
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
+ ##### Autogenerated files
97
+
98
+ Low-code CDK models are generated from `sources/declarative/declarative_component_schema.yaml`. If
99
+ the iteration you are working on includes changes to the models or the connector generator, you
100
+ might want to regenerate them. In order to do that, you can run:
101
+
102
+ ```bash
103
+ poetry run poe build
104
+ ```
105
+
106
+ This will generate the code generator docker image and the component manifest files based on the
107
+ schemas and templates.
108
+
109
+ #### Testing
110
+
111
+ All tests are located in the `unit_tests` directory. Run `poetry run poe unit-test-with-cov` to run
112
+ them. This also presents a test coverage report. For faster iteration with no coverage report and
113
+ more options, `python -m pytest -s unit_tests` is a good place to start.
114
+
115
+ #### Building and testing a connector with your local CDK
116
+
117
+ When developing a new feature in the CDK, you may find it helpful to run a connector that uses that
118
+ new feature. You can test this in one of two ways:
119
+
120
+ - Running a connector locally
121
+ - Building and running a source via Docker
122
+
123
+ ##### Installing your local CDK into a local Python connector
124
+
125
+ Open the connector's `pyproject.toml` file and replace the line with `airbyte_cdk` with the
126
+ following:
127
+
128
+ ```toml
129
+ airbyte_cdk = { path = "../../../airbyte-cdk/python/airbyte_cdk", develop = true }
130
+ ```
131
+
132
+ Then, running `poetry update` should reinstall `airbyte_cdk` from your local working directory.
133
+
134
+ ##### Building a Python connector in Docker with your local CDK installed
135
+
136
+ _Pre-requisite: Install the
137
+ [`airbyte-ci` CLI](https://github.com/airbytehq/airbyte/blob/master/airbyte-ci/connectors/pipelines/README.md)_
138
+
139
+ You can build your connector image with the local CDK using
140
+
141
+ ```bash
142
+ # from the airbytehq/airbyte base directory
143
+ airbyte-ci connectors --use-local-cdk --name=<CONNECTOR> build
144
+ ```
145
+
146
+ Note that the local CDK is injected at build time, so if you make changes, you will have to run the
147
+ build command again to see them reflected.
148
+
149
+ ##### Running Connector Acceptance Tests for a single connector in Docker with your local CDK installed
150
+
151
+ _Pre-requisite: Install the
152
+ [`airbyte-ci` CLI](https://github.com/airbytehq/airbyte/blob/master/airbyte-ci/connectors/pipelines/README.md)_
153
+
154
+ To run acceptance tests for a single connectors using the local CDK, from the connector directory,
155
+ run
156
+
157
+ ```bash
158
+ airbyte-ci connectors --use-local-cdk --name=<CONNECTOR> test
159
+ ```
160
+
161
+ #### When you don't have access to the API
162
+
163
+ There may be a time when you do not have access to the API (either because you don't have the
164
+ credentials, network access, etc...) You will probably still want to do end-to-end testing at least
165
+ once. In order to do so, you can emulate the server you would be reaching using a server stubbing
166
+ tool.
167
+
168
+ For example, using [mockserver](https://www.mock-server.com/), you can set up an expectation file
169
+ like this:
170
+
171
+ ```json
172
+ {
173
+ "httpRequest": {
174
+ "method": "GET",
175
+ "path": "/data"
176
+ },
177
+ "httpResponse": {
178
+ "body": "{\"data\": [{\"record_key\": 1}, {\"record_key\": 2}]}"
179
+ }
180
+ }
181
+ ```
182
+
183
+ Assuming this file has been created at `secrets/mock_server_config/expectations.json`, running the
184
+ following command will allow to match any requests on path `/data` to return the response defined in
185
+ the expectation file:
186
+
187
+ ```bash
188
+ 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
189
+ ```
190
+
191
+ HTTP requests to `localhost:8113/data` should now return the body defined in the expectations file.
192
+ To test this, the implementer either has to change the code which defines the base URL for Python
193
+ source or update the `url_base` from low-code. With the Connector Builder running in docker, you
194
+ will have to use domain `host.docker.internal` instead of `localhost` as the requests are executed
195
+ within docker.
196
+
197
+ #### Publishing a new version to PyPi
198
+
199
+ Python CDK has a
200
+ [GitHub workflow](https://github.com/airbytehq/airbyte/actions/workflows/publish-cdk-command-manually.yml)
201
+ that manages the CDK changelog, making a new release for `airbyte_cdk`, publishing it to PyPI, and
202
+ then making a commit to update (and subsequently auto-release)
203
+ [`source-declarative-m anifest`](https://github.com/airbytehq/airbyte/tree/master/airbyte-integrations/connectors/source-declarative-manifest)
204
+ and Connector Builder (in the platform repository).
205
+
206
+ > [!Note]: The workflow will handle the `CHANGELOG.md` entry for you. You should not add changelog
207
+ > lines in your PRs to the CDK itself.
208
+
209
+ > [!Warning]: The workflow bumps version on it's own, please don't change the CDK version in
210
+ > `pyproject.toml` manually.
211
+
212
+ 1. You only trigger the release workflow once all the PRs that you want to be included are already
213
+ merged into the `master` branch.
214
+ 2. The
215
+ [`Publish CDK Manually`](https://github.com/airbytehq/airbyte/actions/workflows/publish-cdk-command-manually.yml)
216
+ workflow from master using `release-type=major|manor|patch` and setting the changelog message.
217
+ 3. When the workflow runs, it will commit a new version directly to master branch.
218
+ 4. The workflow will bump the version of `source-declarative-manifest` according to the
219
+ `release-type` of the CDK, then commit these changes back to master. The commit to master will
220
+ kick off a publish of the new version of `source-declarative-manifest`.
221
+ 5. The workflow will also add a pull request to `airbyte-platform-internal` repo to bump the
222
+ dependency in Connector Builder.