Is it possible to use pyairbyte with connector tha...
# ask-ai
w
Is it possible to use pyairbyte with connector that is stored locally?
u
Yes, it is possible to use PyAirbyte with a connector that is stored locally. You can use the Airbyte Python SDK to interact with a self-hosted Airbyte setup running locally on your machine. Here are the steps you can follow: 1. Make sure that
abctl
is running correctly with the following command
abctl local status
. Verify the status check was successful. 2. Build the connector image: - Verify the
airbyte-ci
tool is installed by running
airbyte-ci --help
, install the command with the instructions in the Prerequisites if the command is not found. - Run
airbyte-ci connectors --name source-<source-name> build
will build your connector image. - Once the command is done, you will find your connector image in your local docker host:
airbyte/source-<source-name>:dev
. 3. Verify the image was published locally by running:
Copy code
docker images ls | grep airbyte/source-<source-name>:dev
4. You can then load the newly built image into the
abctl
instance using:
Copy code
kind load docker-image airbyte/source-<source-name>:dev -n airbyte-abctl
5. In your browser, visit http://localhost:8000/ - Log in - Go to
Settings
(gear icon in lower left corner) - Go to
Sources
or
Destinations
(depending on which connector you are testing) - Update the version number to use your docker image tag (default is
dev
) - Click
Change
to save the changes Now when you run a sync with that connector, it will use your local docker image. For more details, you can refer to the [Connector Contributions](https://docs.airbyte.com/contributing-to-airbyte/developing-locally#connector-contributions) section in the Airbyte documentation.