Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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"]
3 changes: 1 addition & 2 deletions airbyte/cli.py → airbyte/cli/pyab.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
These are equivalent:
```bash
python -m airbyte.cli --help
pyairbyte --help
pyab --help
```
Expand Down Expand Up @@ -170,7 +169,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