airbyte-cdk 6.8.1.dev1__py3-none-any.whl → 6.8.1rc2__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- airbyte_cdk/cli/source_declarative_manifest/_run.py +5 -11
- airbyte_cdk/config_observation.py +1 -1
- airbyte_cdk/connector_builder/main.py +1 -1
- airbyte_cdk/connector_builder/message_grouper.py +10 -10
- airbyte_cdk/destinations/destination.py +1 -1
- airbyte_cdk/destinations/vector_db_based/embedder.py +2 -2
- airbyte_cdk/destinations/vector_db_based/writer.py +4 -12
- airbyte_cdk/entrypoint.py +6 -7
- airbyte_cdk/logger.py +2 -2
- airbyte_cdk/sources/abstract_source.py +1 -1
- airbyte_cdk/sources/config.py +1 -1
- airbyte_cdk/sources/connector_state_manager.py +4 -9
- airbyte_cdk/sources/declarative/auth/oauth.py +1 -1
- airbyte_cdk/sources/declarative/auth/selective_authenticator.py +1 -6
- airbyte_cdk/sources/declarative/concurrent_declarative_source.py +1 -1
- airbyte_cdk/sources/declarative/datetime/min_max_datetime.py +4 -10
- airbyte_cdk/sources/declarative/declarative_component_schema.yaml +17 -16
- airbyte_cdk/sources/declarative/decoders/noop_decoder.py +1 -4
- airbyte_cdk/sources/declarative/incremental/datetime_based_cursor.py +6 -8
- airbyte_cdk/sources/declarative/interpolation/jinja.py +3 -3
- airbyte_cdk/sources/declarative/interpolation/macros.py +1 -1
- airbyte_cdk/sources/declarative/parsers/model_to_component_factory.py +6 -5
- airbyte_cdk/sources/declarative/partition_routers/substream_partition_router.py +7 -13
- airbyte_cdk/sources/declarative/requesters/error_handlers/default_error_handler.py +1 -1
- airbyte_cdk/sources/declarative/requesters/error_handlers/http_response_filter.py +6 -8
- airbyte_cdk/sources/declarative/requesters/paginators/default_paginator.py +1 -1
- airbyte_cdk/sources/declarative/requesters/request_options/datetime_based_request_options_provider.py +2 -2
- airbyte_cdk/sources/declarative/requesters/request_options/interpolated_request_options_provider.py +1 -1
- airbyte_cdk/sources/declarative/retrievers/async_retriever.py +2 -5
- airbyte_cdk/sources/declarative/spec/spec.py +1 -1
- airbyte_cdk/sources/embedded/base_integration.py +2 -3
- airbyte_cdk/sources/file_based/availability_strategy/abstract_file_based_availability_strategy.py +4 -12
- airbyte_cdk/sources/file_based/availability_strategy/default_file_based_availability_strategy.py +7 -18
- airbyte_cdk/sources/file_based/file_types/avro_parser.py +11 -14
- airbyte_cdk/sources/file_based/file_types/csv_parser.py +3 -3
- airbyte_cdk/sources/file_based/file_types/excel_parser.py +5 -11
- airbyte_cdk/sources/file_based/file_types/jsonl_parser.py +1 -1
- airbyte_cdk/sources/file_based/stream/abstract_file_based_stream.py +2 -2
- airbyte_cdk/sources/file_based/stream/concurrent/adapters.py +3 -6
- airbyte_cdk/sources/file_based/stream/cursor/default_file_based_cursor.py +1 -1
- airbyte_cdk/sources/http_logger.py +3 -3
- airbyte_cdk/sources/streams/concurrent/abstract_stream.py +2 -5
- airbyte_cdk/sources/streams/concurrent/adapters.py +3 -6
- airbyte_cdk/sources/streams/concurrent/availability_strategy.py +3 -9
- airbyte_cdk/sources/streams/concurrent/cursor.py +1 -1
- airbyte_cdk/sources/streams/concurrent/state_converters/datetime_stream_state_converter.py +2 -2
- airbyte_cdk/sources/streams/core.py +14 -17
- airbyte_cdk/sources/streams/http/http.py +19 -19
- airbyte_cdk/sources/streams/http/http_client.py +41 -3
- airbyte_cdk/sources/streams/http/requests_native_auth/abstract_token.py +1 -2
- airbyte_cdk/sources/streams/http/requests_native_auth/oauth.py +33 -62
- airbyte_cdk/sources/utils/record_helper.py +1 -1
- airbyte_cdk/sources/utils/schema_helpers.py +1 -1
- airbyte_cdk/sources/utils/transform.py +15 -34
- airbyte_cdk/test/entrypoint_wrapper.py +6 -11
- airbyte_cdk/test/mock_http/response_builder.py +1 -1
- airbyte_cdk/utils/airbyte_secrets_utils.py +1 -1
- airbyte_cdk/utils/event_timing.py +10 -10
- airbyte_cdk/utils/message_utils.py +3 -4
- airbyte_cdk/utils/spec_schema_transformations.py +2 -3
- airbyte_cdk/utils/traced_exception.py +12 -14
- {airbyte_cdk-6.8.1.dev1.dist-info → airbyte_cdk-6.8.1rc2.dist-info}/METADATA +2 -1
- {airbyte_cdk-6.8.1.dev1.dist-info → airbyte_cdk-6.8.1rc2.dist-info}/RECORD +66 -67
- airbyte_cdk/test/utils/manifest_only_fixtures.py +0 -40
- {airbyte_cdk-6.8.1.dev1.dist-info → airbyte_cdk-6.8.1rc2.dist-info}/LICENSE.txt +0 -0
- {airbyte_cdk-6.8.1.dev1.dist-info → airbyte_cdk-6.8.1rc2.dist-info}/WHEEL +0 -0
- {airbyte_cdk-6.8.1.dev1.dist-info → airbyte_cdk-6.8.1rc2.dist-info}/entry_points.txt +0 -0
@@ -1,40 +0,0 @@
|
|
1
|
-
# Copyright (c) 2024 Airbyte, Inc., all rights reserved.
|
2
|
-
|
3
|
-
|
4
|
-
import importlib.util
|
5
|
-
from pathlib import Path
|
6
|
-
from types import ModuleType
|
7
|
-
from typing import Any, Optional
|
8
|
-
|
9
|
-
import pytest
|
10
|
-
|
11
|
-
|
12
|
-
@pytest.fixture(scope="session")
|
13
|
-
def connector_dir(request: pytest.FixtureRequest) -> Path:
|
14
|
-
"""Return the connector's root directory, which should always be the unit_tests folder's parent directory."""
|
15
|
-
return Path(request.config.rootpath).parent
|
16
|
-
|
17
|
-
|
18
|
-
@pytest.fixture(scope="session")
|
19
|
-
def components_module(connector_dir: Path) -> Optional[ModuleType]:
|
20
|
-
"""Load and return the components module from the connector directory."""
|
21
|
-
components_path = connector_dir / "components.py"
|
22
|
-
if not components_path.exists():
|
23
|
-
return None
|
24
|
-
|
25
|
-
spec = importlib.util.spec_from_file_location("components", components_path)
|
26
|
-
if spec is None:
|
27
|
-
return None
|
28
|
-
|
29
|
-
module = importlib.util.module_from_spec(spec)
|
30
|
-
if spec.loader is None:
|
31
|
-
return None
|
32
|
-
|
33
|
-
spec.loader.exec_module(module)
|
34
|
-
return module
|
35
|
-
|
36
|
-
|
37
|
-
@pytest.fixture(scope="session")
|
38
|
-
def manifest_path(connector_dir: Path) -> Path:
|
39
|
-
"""Return the path to the connector's manifest file."""
|
40
|
-
return connector_dir / "manifest.yaml"
|
File without changes
|
File without changes
|
File without changes
|