sweepai-dev / airbyte

Airbyte is an open-source EL(T) platform that helps you replicate your data in your warehouses, lakes and databases.
https://airbyte.io
Other
0 stars 0 forks source link

Convert from argparse to Click for CLI parsing in airbyte-cdk/python #4

Open sweep-ai[bot] opened 1 year ago

sweep-ai[bot] commented 1 year ago

Description

This PR converts the CLI parsing in the airbyte-cdk/python/airbyte_cdk/entrypoint.py file from argparse to Click. Click is a more expressive and easier-to-use library for building command-line interfaces in Python. The parse_args method in the AirbyteEntrypoint class has been refactored to use Click decorators instead of argparse arguments. The run method has also been updated to handle the new Click context object. Additionally, the airbyte-cdk/python/setup.py file has been updated to include Click as a dependency.

Summary of Changes

Please review and merge this PR. Thank you!

Fixes #1.


To checkout this PR branch, run the following command in your terminal:

git checkout sweep/convert-argparse-to-click_1

To make tweaks to this pull request, leave a comment below or in the code.