Skip to main content

overture-airflow-provider: cloud-agnostic Spark for Apache Airflow

Test Lint PyPI Python Airflow 3.3+ uv Ruff License: MIT

An Apache Airflow provider for running PySpark or Scala/Spark jobs on AWS Glue, Databricks, or Wherobots Cloud from a single DAG-level API.

Write a DAG once and target any supported engine by switching one argument. Cluster shape, Iceberg catalog wiring, JAR and wheel distribution, and per-platform cluster init are handled by the provider.

Features

  • Single entry point: spark_agnostic_task_group runs the same job on any supported engine; only spark_impl_name and the platform config change.
  • Typed configuration: no org-specific defaults; every environment value is passed in.
  • Classified failures with safe retries and console links.
  • Local rendering of submission payloads, plus a Bundle Inspector Airflow UI plugin.

Contents

Install

pip install airflow-provider-overture

Optional extras for platforms that need additional SDKs:

pip install "airflow-provider-overture[databricks]"
pip install "airflow-provider-overture[wherobots]"
pip install "airflow-provider-overture[all]"

Requires Python >=3.11 and Apache Airflow >=3.3.

Quick start

from datetime import datetime

from airflow import DAG

from overture_airflow_provider import (
    ArtifactStoreConfig,
    AwsGlueClusterSize,
    GlueConfig,
    IcebergConfig,
    PackageRegistryConfig,
    spark_agnostic_task_group,
)

with DAG(
    dag_id="example_spark_agnostic",
    start_date=datetime(2025, 1, 1),
    schedule=None,
    catchup=False,
) as dag:
    spark_agnostic_task_group(
        group_id="my_spark_job",
        spark_impl_name="GLUE_v5",
        sedona_version="1.7.0",
        module_name="my_pkg.jobs",
        class_name="MyJob",
        python_packages="my-pkg==1.0.0",
        parameters={"s3_input": "s3://example-bucket/in/", "s3_output": "s3://example-bucket/out/"},
        spark_cluster_size=AwsGlueClusterSize.G_2X.name,
        artifact_store=ArtifactStoreConfig(
            s3_bucket="example-bucket",
            s3_root="spark-agnostic-operator",
        ),
        package_registry=PackageRegistryConfig(
            domain="my-domain",
            domain_owner="123456789012",
            repository="my-pypi",
            region="us-east-1",
        ),
        glue_config=GlueConfig(iam_role_name="AWSGlueServiceRole"),
        iceberg_config=IcebergConfig(spark_config="{}"),
    )

Switching to Databricks or Wherobots requires only a different spark_impl_name and the matching config dataclass. The surrounding DAG code does not change.

See examples/example_dag.py for a runnable DAG targeting all three platforms.

See SPEC.md for the full architecture.

The execute_spark_job task gets a "Spark Job" console link automatically, plus an opt-in, pluggable "Report Issue" link. See docs/operator-links.md.

Failure messages

Failures are classified (downstream-job, submit/config, trigger/polling, platform/infra, platform/capacity) with a reason, root-cause tail, hint, and console link. Submit and capacity faults are retryable via retries=; jobs that ran and failed never are. See docs/failure-messages.md.

Wherobots runtime selection

Set spark_cluster_size_name (for example "large-himem") to pick a specific Wherobots runtime; Glue and Databricks ignore it. See docs/wherobots-runtime-selection.md.

Databricks runner deployment

setup_cluster stages the runner notebook and init script into the workspace by default; stage_workspace_assets=False keeps deployment manual. See docs/databricks-runner-deployment.md.

Local rendering

python -m overture_airflow_provider.render produces the platform submission payload without running Airflow. See docs/local-rendering.md.

Bundle Inspector plugin

Installing the package also registers an Airflow UI plugin for browsing Overture bundles in S3. See docs/bundle-inspector.md.

Reference

Supported versions, the Spark platform matrix (GLUE_v4/GLUE_v5, DATABRICKS_v14/DATABRICKS_v15, WHEROBOTS_v1_5_0) and tested Apache Sedona pairings are in docs/reference.md.

Development

uv sync --all-extras --group dev
uv run pytest -v
uv run ruff check .
uv run ruff format --check .

Requires Airflow 3.x. _airflow_compat.py is the single import point for the airflow.sdk symbols the provider uses.

Windows: Apache Airflow does not officially support Windows (a warning is emitted at import time). Tests, lint, and the render module all work, but production deployments should run on Linux or macOS.

See CONTRIBUTING.md.

Metadata

Release files for airflow-provider-overture 1.4.0

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-overture 1.4.0
File Size Uploaded Provenance Actions
airflow_provider_overture-1.4.0.tar.gz 132.8 kB With provenance Details for airflow_provider_overture-1.4.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for airflow-provider-overture 1.4.0
File Interpreter ABI Platform Actions
airflow_provider_overture-1.4.0-py3-none-any.whl Python 3 none any Details for airflow_provider_overture-1.4.0-py3-none-any.whl

Total release size: 292.3 kB

Release files / airflow_provider_overture-1.4.0.tar.gz

Download URL airflow_provider_overture-1.4.0.tar.gz
Size 132.8 kB
Tags Source
SHA-256 checksum
How to use checksums
7576d097e889a8a4fde14b33486ad568faee34ce0fbfa281b340d018bb57133d
BLAKE2b-256 checksum
How to use checksums
076341863a307a5ea03073b1f05a485b3d4d9590671ac942242487362033f2d2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 24, 2026.

Transparency log

Release files / airflow_provider_overture-1.4.0-py3-none-any.whl

Download URL airflow_provider_overture-1.4.0-py3-none-any.whl
Size 159.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4d47102f9849b10dcaf16e21033811b27c76eba1e5a9e43ef50f6c3d7312d814
BLAKE2b-256 checksum
How to use checksums
79b1ecdc61c38aa0524fca873d6d9f368c170f44243929f3644db269f3c5d12e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 24, 2026.

Transparency log

Security for airflow-provider-overture 1.4.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for airflow_provider_overture-1.4.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 24, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.4.0 This release

2 release files Full provenance

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