(connection, image)
| 574 | '(see connectors list at: "https://hub.docker.com/search?q=airbyte%2Fsource-" )', |
| 575 | ) |
| 576 | def create_source(connection, image): |
| 577 | with optional_imports("airbyte"): |
| 578 | from pathway.third_party.airbyte_serverless.connections import ( |
| 579 | ConnectionFromFile, |
| 580 | ) |
| 581 | |
| 582 | connection = ConnectionFromFile(connection) |
| 583 | connection.init_yaml_config(image) |
| 584 | click.echo( |
| 585 | f"Connection `{connection.name}` with source `{image}` created successfully" |
| 586 | ) |
| 587 | |
| 588 | |
| 589 | def main() -> NoReturn: |
nothing calls this directly
no test coverage detected