<@U04S8PLJWMT> are there any plans to deprecate th...
# ask-ai
j
@kapa.ai are there any plans to deprecate the Python CDK?
k
Based on the provided knowledge sources, there is no information indicating any plans to deprecate the Python CDK. The documentation and recent release notes continue to reference the Python CDK as a supported and actively maintained option for developing Airbyte connectors, especially for cases requiring more flexibility than the low-code or Connector Builder approaches. The Python CDK is still recommended for certain connector development scenarios and is being updated (e.g., with Pydantic 2.0 support and performance improvements) [July 2024 Release Notes](https://docs.airbyte.com/release_notes/july_2024#connector-improvements). If there were any plans to deprecate the Python CDK, they are not mentioned in the current documentation or recent communications.
j
@kapa.ai Tell me how deployment of a custom python CDK connector works. What are the steps? Do you have to deploy it as a Poetry package?
k
A message from kapa.ai
To deploy a custom Python CDK connector in Airbyte, you generally follow these steps: 1. Set Up Your Environment and Project - Clone the Airbyte repository. - Create a new directory for your connector. - Initialize the project with Poetry and add
airbyte-cdk
as a dependency. - Add a valid
metadata.yaml
file in the root of your connector directory. - Implement the required entrypoint scripts (
spec
,
check
,
discover
,
read
). Example commands:
Copy code
bash    git clone [email protected]:airbytehq/airbyte.git    cd airbyte    mkdir airbyte-integrations/connectors/source-your-connector    cd airbyte-integrations/connectors/source-your-connector    poetry init    poetry add airbyte-cdk
[Environment setup](https://docs.airbyte.com/platform/next/connector-development/tutorials/custom-python-connector/environment-setup) 2. Build and Test the Connector - Use Poetry to run and test your connector locally. - Make sure your connector passes the required Airbyte commands and QA checks. 3. Package and Deploy - Airbyte connectors must use Poetry for dependency management, but you do not have to deploy your connector as a standalone Poetry package to PyPI unless you want it to be available for PyAirbyte or public use. - For local or custom deployment, you can build the connector as a Docker image (using Airbyte’s base image for Python connectors) and reference it in your Airbyte instance. - If you want to contribute your connector to the Airbyte catalog, follow the [contribution guide](https://docs.airbyte.com/platform/contributing-to-airbyte/). 4. (Optional) PyPI Publishing - If you want your connector to be available via PyAirbyte, you must enable PyPI publishing by setting
remoteRegistries.pypi.enabled: true
in your
metadata.yaml
file. This is not required for local or custom deployments. [QA Checks - Packaging](https://docs.airbyte.com/platform/next/contributing-to-airbyte/resources/qa-checks#-packaging) Summary: You do not have to deploy your custom Python CDK connector as a Poetry package unless you want it published to PyPI. For most use cases, you build and test your connector locally (using Poetry for dependency management), then deploy it as a Docker image or as a custom connector in your Airbyte instance. [Environment setup](https://docs.airbyte.com/platform/next/connector-development/tutorials/custom-python-connector/environment-setup) | [QA Checks - Packaging](https://docs.airbyte.com/platform/next/contributing-to-airbyte/resources/qa-checks#-packaging)