Skip to main content

Airflow provider for Versatile Data Kit.

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

airflow-provider-vdk-0.0.602273476.tar.gz (9.5 kB view details)

Uploaded Source

File details

Details for the file airflow-provider-vdk-0.0.602273476.tar.gz.

File metadata

File hashes

Hashes for airflow-provider-vdk-0.0.602273476.tar.gz
Algorithm Hash digest
SHA256 b0e8cfd9006a5f6ae0f640f3d187d2f191ea1bfa9f7a0aad0745c0c03075406d
MD5 e1d05d7e83ae925755f2ba468de102fd
BLAKE2b-256 aec334fd3fa14128dcf8cce0e6e75d2638a76e535f9549db75f1000b881a72c6

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page