Skip to content
Merged
Show file tree
Hide file tree
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions airbyte/cli/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Copyright (c) 2024 Airbyte, Inc., all rights reserved.
"""CLI modules for PyAirbyte."""

from airbyte.cli.pyab import cli


__all__ = ["cli"]
8 changes: 8 additions & 0 deletions airbyte/cli/__main__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Copyright (c) 2024 Airbyte, Inc., all rights reserved.
"""Allow running the CLI via python -m airbyte.cli."""

from airbyte.cli.pyab import cli


if __name__ == "__main__":
cli()
2 changes: 1 addition & 1 deletion airbyte/cli.py → airbyte/cli/pyab.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ def _is_executable_path(connector_str: str) -> bool:

def _get_connector_name(connector: str) -> str:
if _is_docker_image(connector):
return connector.split(":")[0].split("/")[-1]
return connector.split(":", maxsplit=1)[0].rsplit("/", maxsplit=1)[-1]

return connector

Expand Down
18 changes: 18 additions & 0 deletions airbyte/cli/smoke_test_source/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Copyright (c) 2024 Airbyte, Inc., all rights reserved.
"""Smoke test source for destination regression testing.

This module provides a synthetic data source that generates test data
covering common edge cases that break destinations: type variations,
null handling, naming edge cases, schema variations, and batch sizes.

.. warning::
This module is experimental and subject to change without notice.
The APIs and behavior may be modified or removed in future versions.
"""

from airbyte.cli.smoke_test_source.source import SourceSmokeTest


__all__ = [
"SourceSmokeTest",
]
Loading
Loading