Airflow connector for Floe CLI (manifest-first orchestration)
Project description
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
Contents
INTEGRATION_SPEC.md: contract between Airflow and Floe CLIschemas/: JSON Schemas for XCom payloads and manifest contractsrc/airflow_floe/manifest.py: manifest loader (floe.manifest.v1)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 demodags/floe_example_operator_dag.py: example DAG usingFloeRunOperator
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.manifest.v1 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_CONFIGwithout a validFLOE_MANIFESTdoes not guarantee "no assets". WhenFLOE_MANIFESTis 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 pointFLOE_MANIFESTto 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
-
Make sure
floeis available in PATH (or setFLOE_CMD). -
(Optional but recommended) install the connector package:
python -m pip install -e orchestrators/airflow-floe
-
Point Airflow DAGs folder to
orchestrators/airflow-floe/dags. -
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"
-
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
-
Trigger DAG
floe_example_operator. In multi-manifest mode (FLOE_MANIFEST_DIR), DAGs are generated asfloe_<manifest_name>.
Notes
- The DAG uses Floe CLI contracts directly and expects:
- run log schema:
floe.log.v1 - terminal event:
run_finished
- run log schema:
- Assets are created at parse time from
FLOE_MANIFESTand materialized when run tasks finish. floe_example_operatoralso 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.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file airflow_floe-0.1.6.tar.gz.
File metadata
- Download URL: airflow_floe-0.1.6.tar.gz
- Upload date:
- Size: 34.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3bf55eafcbd9395dcd071a5b7b22f1f3c8125ccc118c499b52884e7be44c03f3
|
|
| MD5 |
8e208a88d56af8925321b904b1e7c378
|
|
| BLAKE2b-256 |
381965b6fcfbbd93eb2d86fa31d317b1f22967c197fcd7ea7fbfedba5e3265f7
|
Provenance
The following attestation bundles were made for airflow_floe-0.1.6.tar.gz:
Publisher:
release-airflow-floe.yml on malon64/floe
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
airflow_floe-0.1.6.tar.gz -
Subject digest:
3bf55eafcbd9395dcd071a5b7b22f1f3c8125ccc118c499b52884e7be44c03f3 - Sigstore transparency entry: 2034276322
- Sigstore integration time:
-
Permalink:
malon64/floe@baa42c79ca430df594ed7e8c9e1f8e65c984078b -
Branch / Tag:
refs/tags/airflow-floe-v0.1.6 - Owner: https://github.com/malon64
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release-airflow-floe.yml@baa42c79ca430df594ed7e8c9e1f8e65c984078b -
Trigger Event:
push
-
Statement type:
File details
Details for the file airflow_floe-0.1.6-py3-none-any.whl.
File metadata
- Download URL: airflow_floe-0.1.6-py3-none-any.whl
- Upload date:
- Size: 24.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cfa28db405a5ce137c634f2732e3bf4a84df6eb2474b0fb71991474c0305f855
|
|
| MD5 |
40dcbf308f9459dafc0a1a1de3314d1c
|
|
| BLAKE2b-256 |
1bdbd307bf3b24d645dc5c0f6d57a6d84aca578c626e0eb990caddf3149ea5cb
|
Provenance
The following attestation bundles were made for airflow_floe-0.1.6-py3-none-any.whl:
Publisher:
release-airflow-floe.yml on malon64/floe
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
airflow_floe-0.1.6-py3-none-any.whl -
Subject digest:
cfa28db405a5ce137c634f2732e3bf4a84df6eb2474b0fb71991474c0305f855 - Sigstore transparency entry: 2034276689
- Sigstore integration time:
-
Permalink:
malon64/floe@baa42c79ca430df594ed7e8c9e1f8e65c984078b -
Branch / Tag:
refs/tags/airflow-floe-v0.1.6 - Owner: https://github.com/malon64
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release-airflow-floe.yml@baa42c79ca430df594ed7e8c9e1f8e65c984078b -
Trigger Event:
push
-
Statement type: