1
0
mirror of synced 2026-01-27 16:02:00 -05:00
Files
airbyte/airbyte-integrations/connector-templates/source-python/main_dev.py.hbs
Davin Chia f660b0a946 Add template generation for Santa aka CDK. (#3034)
Template generation for new Source using the Santa CDK - provide basic scaffolding for someone implementing a new source.

General approach is to buff up comments in the original SDK, and add TODOs with secondary comments in the generated stub methods, as well as links to existing examples (e.g. Stripe or ExchangeRate api) users can look at.

Checked in and added tests for the generated modules.
2021-04-25 18:02:33 +08:00

11 lines
222 B
Handlebars

import sys
from base_python.entrypoint import launch
from source_{{snakeCase name}} import Source{{properCase name}}
if __name__ == "__main__":
source = Source{{properCase name}}()
launch(source, sys.argv[1:])