Skip to main content

Versatile Data Kit Airflow provider

A set of Airflow operators, sensors and a connection hook intended to help schedule Versatile Data Kit jobs using Apache Airflow.

Usage

To install it simply run:

pip install airflow-provider-vdk

Then you can create a workflow of data jobs (deployed by VDK Control Service) like this:

from datetime import datetime

from airflow import DAG
from vdk_provider.operators.vdk import VDKOperator

with DAG(
    "airflow_example_vdk",
    schedule_interval=None,
    start_date=datetime(2022, 1, 1),
    catchup=False,
    tags=["example", "vdk"],
) as dag:
    trino_job1 = VDKOperator(
        conn_id="vdk-default",
        job_name="airflow-trino-job1",
        team_name="taurus",
        task_id="trino-job1",
    )

    trino_job2 = VDKOperator(
        conn_id="vdk-default",
        job_name="airflow-trino-job2",
        team_name="taurus",
        task_id="trino-job2",
    )

    transform_job = VDKOperator(
        conn_id="vdk-default",
        job_name="airflow-transform-job",
        team_name="taurus",
        task_id="transform-job",
    )

    [trino_job1, trino_job2] >> transform_job

Example

See full example here

Demo

You can see demo during one of the community meetings here: https://www.youtube.com/watch?v=c3j1aOALjVU&t=690s

Architecture

See the vdk enhancement proposal spec here

Metadata

Release files for airflow-provider-vdk 0.0.872432630

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for airflow-provider-vdk 0.0.872432630
File Size Uploaded
airflow-provider-vdk-0.0.872432630.tar.gz 9.5 kB Details

Release files / airflow-provider-vdk-0.0.872432630.tar.gz

Download URL airflow-provider-vdk-0.0.872432630.tar.gz
Size 9.5 kB
Tags Source
SHA-256 checksum
How to use checksums
f10ffb572154e7760fa48600534e33f92922ed1b3a2ad308f58ee2853f1fb6a8
BLAKE2b-256 checksum
How to use checksums
4f0ac3b161f77ac76ade8baa9808b68d59ab4080dd13ce5e3ccb28231a1359ef
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.7.16
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page