<@U04S8PLJWMT> i'm using airbyte Version 1.4.1 , h...
# ask-ai
h
@kapa.ai i'm using airbyte Version 1.4.1 , how to setup CDK for this Airbyte Version
k
To set up the Airbyte Connector Development Kit (CDK) for Airbyte version 1.4.1, you should use the Python CDK, which is the main developer kit for building connectors. The documentation for Airbyte 1.6 provides relevant instructions that are also applicable to earlier 1.x versions, including 1.4.1. ### Steps to Set Up the Python CDK 1. Install the Python CDK CLI: - First, install
uv
(a Python package manager). The specific instructions for installing
uv
are not included in the provided sources, so please refer to the official [uv documentation](https://github.com/astral-sh/uv) for installation steps. - Once
uv
is installed, run the following command to install or upgrade the Airbyte CDK CLI:
Copy code
bash      uv tool install --upgrade 'airbyte-cdk[dev]'
- This will install the CLI and development dependencies for the Airbyte Python CDK. 2. Verify Installation: - To see available commands and verify your installation, run:
Copy code
bash      airbyte-cdk --help
3. Development Approach: - The Python CDK provides the foundation for low-code and no-code connectors, as well as other Python-based implementations. - For most connectors, you can start with the [Connector Builder](https://docs.airbyte.com/platform/connector-development/connector-builder-ui/overview) or the [Low Code CDK](https://docs.airbyte.com/platform/connector-development/config-based/low-code-cdk-overview). If you need more customization, use the Python CDK directly in your Python project by adding
airbyte_cdk
as a dependency. 4. Reference Documentation: - The [Airbyte Python CDK reference documentation](https://airbytehq.github.io/airbyte-python-cdk/airbyte_cdk.html) is available for more details on classes and methods. > Note: The instructions above are based on the Airbyte 1.6 documentation, but the Python CDK and its CLI are compatible with earlier 1.x versions, including 1.4.1, unless otherwise specified in the release notes. If you encounter compatibility issues, check the [Airbyte GitHub repository](https://github.com/airbytehq/airbyte) for the specific version of the CDK that matches your Airbyte version. For more details, see the official documentation: [Airbyte Connector Development Kits (CDKs)](https://docs.airbyte.com/platform/1.6/connector-development/local-connector-development#airbyte-connector-development-kits-cdks)
h
@kapa.ai how to create CDK connector from this path hari@DESKTOP-LLCDLOC:~/airbyte/airbyte-integrations/connector-templates$
k
A message from kapa.ai
To create a new CDK connector from the
airbyte/airbyte-integrations/connector-templates
path, you should use the generator script provided by Airbyte. Here’s how you can do it: 1. Navigate to the generator directory:
Copy code
bash    cd airbyte/airbyte-integrations/connector-templates/generator
2. Run the generator script:
Copy code
bash    ./generate.sh
This script will prompt you to select the type of connector (e.g., Python HTTP API Source, Python Destination, etc.) and to provide a name for your new connector. 3. Follow the prompts: - Choose the appropriate connector template (for example, "Python HTTP API Source" for a Python CDK source connector). - Enter the desired name for your connector. 4. Result: - The script will create a new directory for your connector under
airbyte/airbyte-integrations/connectors/
, containing all the necessary files and structure to start development. 5. Next steps: - Navigate to your new connector directory and follow the README or Airbyte documentation to set up your development environment (e.g., create a Python virtual environment, install dependencies, etc.)[Creating a Python Destination (DuckDB)](https://airbyte.com/tutorials/creating-duckdb-destination-with-python), [Build a connector to extract data from the Webflow API](https://airbyte.com/tutorials/extract-data-from-the-webflow-api#step-4). Example commands:
Copy code
bash cd airbyte/airbyte-integrations/connector-templates/generator ./generate.sh # Follow the interactive prompts
> Note: The generator script is interactive and will guide you through the process. If you are on Windows, you may need to use WSL or adapt the script for your environment, as the scripts are tailored towards Unix systems [Connector development on Windows](https://github.com/airbytehq/airbyte/issues/13674). If you need to automate or bypass the interactive prompts, the knowledge sources do not provide a direct method for this; you would need to adapt the script yourself. Let me know if you need the next steps after the connector is scaffolded!