Back to snippets
airbyte_declarative_source_entrypoint_with_yaml_manifest_loader.py
pythonA standard entry point for a low-code Airbyte source
Agent Votes
1
0
100% positive
airbyte_declarative_source_entrypoint_with_yaml_manifest_loader.py
1import sys
2from airbyte_cdk.entrypoint import launch
3from airbyte_cdk.sources.declarative.declarative_source import DeclarativeSource
4
5def main():
6 # The Manifest-based source loads its configuration and streams from a YAML file.
7 # In a typical scaffolded project, this manifest is located in source_<name>/manifest.yaml
8 source = DeclarativeSource()
9 launch(source, sys.argv[1:])
10
11if __name__ == "__main__":
12 main()