Skip to main content

Provider package airflow-provider-sifflet for Apache Airflow

Project description

Sifflet Provider for Apache Airflow

This package provides operators and hook that integrate Sifflet into Apache Airflow. All classes for this provider package are in the sifflet_provider Python package.

Installation

You can install this package on top of an existing Airflow 2.1+ installation

pip install airflow-provider-sifflet

The package supports the following python versions: 3.7, 3.8, 3.9, 3.10, 3.11, 3.12

Configuration

In the Airflow user interface, you can configure a Connection for Sifflet in Admin -> Connections -> Add a new record.

You will need to fill out the following:

Connection Id: sifflet_default
Connection Type: Sifflet
Sifflet Tenant: <your_tenant_name> (for SaaS deployment)
Sifflet Backend URL: <your_backend_url> (for Self-hosted deployment)
Sifflet Token: <your_sifflet_access_token>

<your_sifflet_access_token>: you can find more information on how to generate it here

One of these two parameters is required, depending on your type of Sifflet deployment:

  • SaaS deployments: Sifflet Tenant, if you access Sifflet with https://abcdef.siffletdata.com, then your tenant would be abcdef
  • Self-hosted deployments: Sifflet Backend URL, full URL to the Sifflet backend on your deployment, for instance: https://sifflet-backend.mycompany.com

Modules

Operators

SiffletDbtIngestOperator

SiffletDbtIngestOperator sends your DBT artifacts to the Sifflet application.

Example usage:

from sifflet_provider.operators.dbt import SiffletDbtIngestOperator

sifflet_dbt_ingest = SiffletDbtIngestOperator(
    task_id="sifflet_dbt_ingest",
    input_folder="<path to dbt project folder>",
    target="prod",
    project_name="<dbt project name>",
)

SiffletRunRuleOperator

SiffletRunRuleOperator Run one or several Sifflet rules - requires rule id(s).

Example usage:

from sifflet_provider.operators.rule import SiffletRunRuleOperator

sifflet_run_rule = SiffletRunRuleOperator(
    task_id="sifflet_run_rule",
    rule_ids=[
        "3e2e2687-cd20-11ec-b38b-06bb20181849",
        "3e19eb3e-cd20-11ec-b38b-06bb20181849",
        "3e1a86f1-cd20-11ec-b38b-06bb20181849",
        "3e2e1fc3-cd20-11ec-b38b-06bb20181849",
    ],
    error_on_rule_fail=True
)

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_sifflet-1.1.3.tar.gz (5.3 kB view details)

Uploaded Source

Built Distribution

airflow_provider_sifflet-1.1.3-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

File details

Details for the file airflow_provider_sifflet-1.1.3.tar.gz.

File metadata

  • Download URL: airflow_provider_sifflet-1.1.3.tar.gz
  • Upload date:
  • Size: 5.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.10

File hashes

Hashes for airflow_provider_sifflet-1.1.3.tar.gz
Algorithm Hash digest
SHA256 4381974603c99a15f87d59d479aecde1fec57e210a41fc2fbd86fb1a75718946
MD5 59a2448e8061f768f6e2d8ea4023068c
BLAKE2b-256 970f02443f8a3b9b5bf8acef4786b099630524e94b24c6448cdcf462139777b0

See more details on using hashes here.

File details

Details for the file airflow_provider_sifflet-1.1.3-py3-none-any.whl.

File metadata

File hashes

Hashes for airflow_provider_sifflet-1.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 0f9138b30497f0fdd3412e3538c4dc409d4acc51894ef7311a36140ad484c4b8
MD5 2e7416c3d6fc494d3a585c6d5b7c68a1
BLAKE2b-256 2f505a4efe8050b68468ed033620c2db47a085419d4ff7ad83075b4d1019128d

See more details on using hashes here.

Supported by

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