<@ULVA73B9P> I’m new to Prefect and Data Engineeri...
# ask-marvin
j
@Marvin I’m new to Prefect and Data Engineering. How can I integrate Airbyte with Prefect? The
prefect_airbyte
package is not maintained anymore.
m
It seems that the
prefect_airbyte
package isn't maintained anymore, which might complicate direct integration with Airbyte. However, Prefect 3.x has other integrations that might help you indirectly connect with Airbyte by orchestrating your data flows effectively. Unfortunately, I couldn't fetch any specific GitHub issues related to this topic, but here are a couple of general steps you can consider for integrating Airbyte with Prefect: 1. Custom Scripts: Write custom Python scripts that use Airbyte's API to trigger your data pipelines, and manage these scripts within a Prefect Flow. Prefect's core ability to run and orchestrate Python scripts will be useful here. 2. Docker: If you're using Docker for Airbyte, you can use Prefect to manage Docker containers and orchestrate your flows that involve Airbyte as one of the stages. 3. API Module in Prefect: Leverage Prefect's capabilities to interact with external APIs. You could write a flow that interacts with Airbyte through its REST API. For more on Prefect's integrations and capabilities, you can check the Prefect 3.x Integrations page. Remember, while Prefect might not have a specific Airbyte integration at the moment, its flexibility allows you to creatively use its tools for such purposes. Imagine it as a "make your own adventure" game, but with data pipelines!
n
hi @Joeri Smits! are you wanting to trigger Airbyte connection syncs with prefect?
(I am the author of
prefect_airbyte
, which I wrote before the Airbyte Cloud API existed)
if so, it should just be a matter of writing a python function that calls out to the airbyte API and then poll for completion of the sync job (and then you can wrap that function in
@task
or
@flow
if you want to add prefect features like retries or caching etc) and then you could continue with downstream tasks, e.g. using
prefect-dbt
to transform your freshly synced data
j
Hi @Nate, thanks for reaching out! Will take a look at the AirByte API to develop a client myself as you suggest. Do you have any example code snippets by any chance? šŸ™‚
n
unfortunately I haven't spent a lot of time with Airbyte since

2022ā–¾

😬 ! so I'm not sure how much the API has changed, but I imagine if you started from here, it might save you some time even if you need to make some updates
j
Thanks šŸ™Œ