Skip to main content

Floe + Airflow (MVP example)

This folder contains:

  • a reusable Python connector package (src/airflow_floe)
  • example DAGs (dags/) that consume the package

For local setup of both Dagster and Airflow with isolated virtual environments, see:

  • orchestrators/LOCAL_DEV.md

Supported Floe versions

airflow-floe Floe
0.3.x 0.8 or 0.9 (pip install floe-python, or the ghcr.io/openlakeforge/floe image)
0.2.x 0.8 (pip install floe-python, or the ghcr.io/openlakeforge/floe image)
0.1.x 0.7 and earlier

Contents

  • INTEGRATION_SPEC.md: contract between Airflow and Floe CLI
  • schemas/: JSON Schemas for XCom payloads and manifest contract
  • src/airflow_floe/manifest.py: manifest loader (spec_version "0.8" or "0.9")
  • src/airflow_floe/runtime.py: shared runtime helpers (manifest context, run event parsing, summary loading)
  • src/airflow_floe/hooks.py: reusable manifest hook (FloeManifestHook)
  • src/airflow_floe/operators.py: reusable run hook/operator (FloeRunHook, FloeRunOperator)
  • example/config.yml: small Floe config for demo
  • dags/floe_example_operator_dag.py: example DAG using FloeRunOperator

Configuration

The connector is driven entirely by environment variables. No code changes are needed to switch between single-manifest, multi-manifest, or fallback mode.

Env var What it does
FLOE_MANIFEST Primary: path to a Floe 0.8 or 0.9 manifest JSON — enables asset registration at parse time
FLOE_MANIFEST_DIR Multi-manifest mode: directory of *.manifest.json files; one DAG per file
FLOE_CONFIG Fallback run config used when manifest loading fails — DAG still executes floe run, but no assets are registered
FLOE_CMD Override the floe binary path (default: floe on $PATH)

Manifest loading failure: If FLOE_MANIFEST points to a path that cannot be loaded (file not found, invalid JSON, schema error), build_dag_manifest_context_or_empty catches the exception and returns an empty asset context — the DAG still runs floe run using FLOE_CONFIG as the config path, but no assets are registered or materialized.

Note: Setting only FLOE_CONFIG without a valid FLOE_MANIFEST does not guarantee "no assets". When FLOE_MANIFEST is unset, the example DAG defaults to the bundled example manifest (example/manifest.airflow.json), which registers its own assets. To run with no assets, either point FLOE_MANIFEST to a path that does not exist, or remove the default fallback from your DAG code.

Multi-manifest mode: Each JSON file in FLOE_MANIFEST_DIR becomes a separate DAG. The DAG ID is derived from the manifest file name — for example orders.manifest.json → DAG floe_orders. Entity tasks within the DAG are generated from the manifest's entities[] list.

Quick usage

  1. Make sure floe is available in PATH (or set FLOE_CMD).

  2. (Optional but recommended) install the connector package:

    python -m pip install -e orchestrators/airflow-floe
    
  3. Point Airflow DAGs folder to orchestrators/airflow-floe/dags.

  4. Set env vars:

    export FLOE_CMD="floe"
    export FLOE_MANIFEST="/absolute/path/to/orchestrators/airflow-floe/example/manifest.airflow.json"
    # optional multi-manifest mode (1 manifest => 1 DAG):
    # export FLOE_MANIFEST_DIR="/absolute/path/to/orchestrators/airflow-floe/example/manifests"
    # optional fallback (no assets registered):
    # export FLOE_CONFIG="/absolute/path/to/orchestrators/airflow-floe/example/config.yml"
    
  5. Generate manifest from Floe config:

    floe manifest generate \
      -c orchestrators/airflow-floe/example/config.yml \
      --output orchestrators/airflow-floe/example/manifest.airflow.json
    

    For multi-manifest mode (one DAG per manifest), generate domain manifests:

    floe manifest generate \
      -c orchestrators/airflow-floe/example/config.hr.yml \
      --output orchestrators/airflow-floe/example/manifests/hr.manifest.json
    
    floe manifest generate \
      -c orchestrators/airflow-floe/example/config.sales.yml \
      --output orchestrators/airflow-floe/example/manifests/sales.manifest.json
    
  6. Trigger DAG floe_example_operator. In multi-manifest mode (FLOE_MANIFEST_DIR), DAGs are generated as floe_<manifest_name>.

Notes

  • The DAG uses Floe CLI contracts directly and expects:
    • run log schema: floe.log.v1
    • terminal event: run_finished
  • Assets are created at parse time from FLOE_MANIFEST and materialized when run tasks finish.
  • floe_example_operator also publishes asset events when manifest assets are available.
  • The returned task payload shape follows floe.airflow.run.v1.
  • Local run summaries emitted as local://... are resolved and loaded by the connector runtime helpers.
  • Floe NDJSON stdout/stderr are streamed into task logs (Audit/Task Log view) and still parsed for run_finished.

Metadata

Release files for airflow-floe 0.3.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-floe 0.3.0
File Size Uploaded Provenance Actions
airflow_floe-0.3.0.tar.gz 36.0 kB With provenance Details for airflow_floe-0.3.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for airflow-floe 0.3.0
File Interpreter ABI Platform Actions
airflow_floe-0.3.0-py3-none-any.whl Python 3 none any Details for airflow_floe-0.3.0-py3-none-any.whl

Total release size: 60.7 kB

Release files / airflow_floe-0.3.0.tar.gz

Download URL airflow_floe-0.3.0.tar.gz
Size 36.0 kB
Tags Source
SHA-256 checksum
How to use checksums
4133f84f9f05d07c69859841f3ea3e0c62ab19a29197a119c3f9ba1fa541bd6d
BLAKE2b-256 checksum
How to use checksums
e18ec2c3910729b27fab5f766a49c60359a15fd913aff7aabe7ef8e920bae67f
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 2, 2026.

Transparency log

Release files / airflow_floe-0.3.0-py3-none-any.whl

Download URL airflow_floe-0.3.0-py3-none-any.whl
Size 24.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
63a1a34cba0e3b578f09bb62034d63d429b0ca1d446566b776e536a4e11e141f
BLAKE2b-256 checksum
How to use checksums
83bc5765b265b4b0278a51f76c9096e542fdc59a93e3c0ff1a8173f4dca53500
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 2, 2026.

Transparency log

Security for airflow-floe 0.3.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

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for airflow_floe-0.3.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 2, 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.

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