MCPcopy Index your code
hub / github.com/pathwaycom/pathway / create_source

Function create_source

python/pathway/cli.py:576–586  ·  view source on GitHub ↗
(connection, image)

Source from the content-addressed store, hash-verified

574 '(see connectors list at: "https://hub.docker.com/search?q=airbyte%2Fsource-" )',
575)
576def 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
589def main() -> NoReturn:

Callers

nothing calls this directly

Calls 3

init_yaml_configMethod · 0.95
optional_importsFunction · 0.90
ConnectionFromFileClass · 0.90

Tested by

no test coverage detected