airbyte-cdk 6.45.1.post46.dev14423672753__py3-none-any.whl → 6.45.1.post47.dev14456468218__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.
Files changed (45) hide show
  1. airbyte_cdk/connector_builder/connector_builder_handler.py +3 -12
  2. airbyte_cdk/connector_builder/test_reader/reader.py +0 -2
  3. airbyte_cdk/models/__init__.py +1 -0
  4. airbyte_cdk/models/airbyte_protocol.py +1 -3
  5. airbyte_cdk/sources/concurrent_source/concurrent_read_processor.py +1 -1
  6. airbyte_cdk/sources/declarative/concurrent_declarative_source.py +8 -0
  7. airbyte_cdk/sources/declarative/declarative_component_schema.yaml +36 -0
  8. airbyte_cdk/sources/declarative/extractors/record_selector.py +6 -1
  9. airbyte_cdk/sources/declarative/models/declarative_component_schema.py +31 -0
  10. airbyte_cdk/sources/declarative/parsers/model_to_component_factory.py +39 -1
  11. airbyte_cdk/sources/declarative/retrievers/file_uploader.py +89 -0
  12. airbyte_cdk/sources/declarative/stream_slicers/declarative_partition_generator.py +9 -4
  13. airbyte_cdk/sources/file_based/file_based_stream_reader.py +38 -16
  14. airbyte_cdk/sources/file_based/file_record_data.py +22 -0
  15. airbyte_cdk/sources/file_based/file_types/file_transfer.py +8 -15
  16. airbyte_cdk/sources/file_based/schema_helpers.py +10 -1
  17. airbyte_cdk/sources/file_based/stream/concurrent/adapters.py +3 -12
  18. airbyte_cdk/sources/file_based/stream/default_file_based_stream.py +15 -38
  19. airbyte_cdk/sources/file_based/stream/permissions_file_based_stream.py +1 -3
  20. airbyte_cdk/sources/streams/concurrent/default_stream.py +3 -0
  21. airbyte_cdk/sources/types.py +11 -2
  22. airbyte_cdk/sources/utils/files_directory.py +15 -0
  23. airbyte_cdk/sources/utils/record_helper.py +8 -8
  24. airbyte_cdk/test/entrypoint_wrapper.py +0 -4
  25. airbyte_cdk/test/mock_http/response_builder.py +8 -0
  26. {airbyte_cdk-6.45.1.post46.dev14423672753.dist-info → airbyte_cdk-6.45.1.post47.dev14456468218.dist-info}/METADATA +2 -3
  27. {airbyte_cdk-6.45.1.post46.dev14423672753.dist-info → airbyte_cdk-6.45.1.post47.dev14456468218.dist-info}/RECORD +31 -42
  28. airbyte_cdk/models/file_transfer_record_message.py +0 -13
  29. airbyte_cdk/test/declarative/__init__.py +0 -6
  30. airbyte_cdk/test/declarative/models/__init__.py +0 -7
  31. airbyte_cdk/test/declarative/models/scenario.py +0 -74
  32. airbyte_cdk/test/declarative/test_suites/__init__.py +0 -25
  33. airbyte_cdk/test/declarative/test_suites/connector_base.py +0 -223
  34. airbyte_cdk/test/declarative/test_suites/declarative_sources.py +0 -74
  35. airbyte_cdk/test/declarative/test_suites/destination_base.py +0 -12
  36. airbyte_cdk/test/declarative/test_suites/source_base.py +0 -128
  37. airbyte_cdk/test/declarative/utils/__init__.py +0 -0
  38. airbyte_cdk/test/declarative/utils/job_runner.py +0 -150
  39. airbyte_cdk/test/fixtures/__init__.py +0 -0
  40. airbyte_cdk/test/fixtures/auto.py +0 -14
  41. airbyte_cdk/test/pytest_config/plugin.py +0 -46
  42. {airbyte_cdk-6.45.1.post46.dev14423672753.dist-info → airbyte_cdk-6.45.1.post47.dev14456468218.dist-info}/LICENSE.txt +0 -0
  43. {airbyte_cdk-6.45.1.post46.dev14423672753.dist-info → airbyte_cdk-6.45.1.post47.dev14456468218.dist-info}/LICENSE_SHORT +0 -0
  44. {airbyte_cdk-6.45.1.post46.dev14423672753.dist-info → airbyte_cdk-6.45.1.post47.dev14456468218.dist-info}/WHEEL +0 -0
  45. {airbyte_cdk-6.45.1.post46.dev14423672753.dist-info → airbyte_cdk-6.45.1.post47.dev14456468218.dist-info}/entry_points.txt +0 -0
@@ -1,14 +0,0 @@
1
- """Auto-use fixtures for pytest.
2
-
3
- WARNING: Importing this module will automatically apply these fixtures. If you want to selectively
4
- enable fixtures in a different context, you can import directly from the `fixtures.general` module.
5
-
6
-
7
- Usage:
8
-
9
- ```python
10
- from airbyte_cdk.test.fixtures import auto
11
- # OR
12
- from airbyte_cdk.test.fixtures.auto import *
13
- ```
14
- """
@@ -1,46 +0,0 @@
1
- """Global pytest configuration for the Airbyte CDK tests."""
2
-
3
- from pathlib import Path
4
- from typing import cast
5
-
6
- import pytest
7
-
8
-
9
- def pytest_collect_file(parent: pytest.Module | None, path: Path) -> pytest.Module | None:
10
- """Collect test files based on their names."""
11
- if path.name == "test_connector.py":
12
- return cast(pytest.Module, pytest.Module.from_parent(parent, path=path))
13
-
14
- return None
15
-
16
-
17
- def pytest_configure(config: pytest.Config) -> None:
18
- config.addinivalue_line("markers", "connector: mark test as a connector test")
19
-
20
-
21
- def pytest_addoption(parser: pytest.Parser) -> None:
22
- parser.addoption(
23
- "--run-connector",
24
- action="store_true",
25
- default=False,
26
- help="run connector tests",
27
- )
28
-
29
-
30
- def pytest_collection_modifyitems(config: pytest.Config, items: list[pytest.Item]) -> None:
31
- if config.getoption("--run-connector"):
32
- return
33
- skip_connector = pytest.mark.skip(reason="need --run-connector option to run")
34
- for item in items:
35
- if "connector" in item.keywords:
36
- item.add_marker(skip_connector)
37
-
38
-
39
- def pytest_runtest_setup(item: pytest.Item) -> None:
40
- # This hook is called before each test function is executed
41
- print(f"Setting up test: {item.name}")
42
-
43
-
44
- def pytest_runtest_teardown(item: pytest.Item, nextitem: pytest.Item | None) -> None:
45
- # This hook is called after each test function is executed
46
- print(f"Tearing down test: {item.name}")