Phlo
A plug-and-play lakehouse framework for Python. Phlo's core is small. Orchestration, ingestion, storage, catalog, query, quality, transformation, serving and observability each come from a phlo-* package that you install, swap or leave out. Install a package and its CLI commands, services and Observatory panels appear. You don't wire anything by hand.
Your pipelines are decorated Python functions that ask for a capability, such as a table store or a catalog, rather than a specific product. The default stack is Dagster, dlt, dbt, Pandera, Iceberg, Nessie, Trino, MinIO and Postgres. Switch Iceberg for Delta, Nessie for Polaris or dbt for phlo-transform, or add Sling, Kafka, ClickHouse, Hasura, Superset or Grafana. phlo services init regenerates the stack from whatever is installed.
Phlo is alpha and not production-ready. See Status.
What it looks like
import dlt
import pandas as pd
import pandera.pandas as pa
import phlo
class EventsSchema(pa.DataFrameModel):
id: int
name: str
value: int = pa.Field(gt=0)
@phlo.ingest.dlt(
table_name="events", # lands as raw.events; asset key dlt_events
unique_key="id", # merge key for re-runs
validation_schema=EventsSchema,
group="csv",
freshness_hours=(1, 24), # warn after 1h, error after 24h
)
def csv_events(partition_date: str) -> object:
rows = pd.read_csv("data/events.csv").to_dict(orient="records")
return dlt.resource(rows, name="events")
That one function becomes a daily-partitioned Dagster asset. On each run Phlo extracts the rows with dlt, stages them, validates them against EventsSchema, and only then merges them on unique_key into an Iceberg table registered in Nessie. Validation is strict by default: one failing row fails the run and the table is left as it was. The function never names Dagster, Iceberg or Nessie, so changing a provider doesn't change this code.
Quick start
You need Python 3.12 or 3.13, uv, and Docker with Compose v2. On Windows, use WSL 2.
uv venv && source .venv/bin/activate
uv pip install "phlo[defaults]"
phlo init my-lakehouse --template csv-batch
cd my-lakehouse
uv sync
uv run phlo services init # render the stack into .phlo/
uv run phlo services start
uv run phlo doctor # every check should pass
uv run phlo materialize dlt_events --partition 2025-01-15
uv run phlo catalog tables # raw.events is there
uv run phlo trino --catalog iceberg # query it
uv run phlo services stop
While the stack is running, Observatory is at http://localhost:3001 and Dagster at http://localhost:10006. phlo services ports lists the rest.
phlo services init generates a random password for every service into .phlo/.env.local. There are no default credentials.
The first pipeline tutorial walks through the same steps, including breaking the schema on purpose to watch a run get blocked. phlo init --list-templates shows the other starters: minimal (the default), api-ingestion, basic and dbt-medallion (dbt), sling-replication, and observability-demo.
What you get
- One decorator family per stage.
phlo.ingest,phlo.quality,phlo.publishandphlo.export, with behaviour set by arguments (merge strategy, schema policy, strictness, freshness) rather than by separate decorators. - Write-audit-publish. Set
wap.enabled: trueinphlo.yamland everyphlo materializeandphlo backfillruns on its own Nessie branch, which is merged only after its checks pass.phlo branchlets you list, diff and merge branches yourself. - Generated runtime.
phlo servicesrenders, starts, upgrades and inspects the Compose stack from the packages you have installed. You don't hand-write Compose files. - Schema change control.
phlo schema-migrateplans and applies table changes against your Pandera schemas;phlo contractschecks compatibility between snapshots. - Operations as planned commands.
phlo operations backup,restore,maintenanceandupgradeshow a plan before they change anything. - Run evidence and audit. Each run stores versioned evidence of its stages, lineage, quality results and catalog changes.
phlo auditqueries it andphlo compliance export-evidencepackages it. - Observatory. A web UI for assets, tables, lineage, quality results, services and logs.
Swap any piece
Each part of the stack is a named capability. Phlo resolves it to an installed provider, set project-wide or per asset.
| Capability | Default | Alternatives |
|---|---|---|
| Orchestration | phlo-dagster |
|
| Ingestion | phlo-dlt |
phlo-sling, phlo-airbyte, phlo-kafka |
| Quality | phlo-pandera |
|
| Transformation | phlo-dbt |
phlo-transform |
| Table format | phlo-iceberg |
phlo-delta |
| Catalog | phlo-nessie |
phlo-polaris, phlo-openmetadata (metadata sync) |
| Object storage | phlo-minio |
phlo-rustfs |
| Query | phlo-trino |
phlo-clickhouse |
| Serving and BI | phlo-postgrest, phlo-hasura, phlo-superset, phlo-pgweb |
|
| Observability | phlo-observatory, phlo-observe-plugin |
phlo-otel, phlo-prometheus, phlo-loki, phlo-grafana, phlo-alloy, phlo-clickstack, phlo-alerting |
| Access and ingress | phlo-oauth2-proxy, phlo-traefik |
|
| Agents | phlo-mcp |
uv add phlo-polaris # Iceberg tables on a Polaris catalog instead of Nessie
export PHLO_DEFAULT_CAPABILITIES='{"catalog":"polaris"}'
uv run phlo services init && uv run phlo services start
You can also override one asset with capabilities={"table_store": "iceberg"} on its decorator. Choose your stack covers the details, and the polaris-streaming and delta-portability examples show non-default stacks end to end. Your own code plugs in the same way. A plugin can add a provider, a CLI command, a service or an Observatory panel through Python entry points, and phlo plugin create scaffolds one.
Support levels
The packages don't all carry the same promise. phlo[defaults] installs the core.
| Support level | Packages |
|---|---|
Core (phlo[defaults], the v1 target) |
phlo-dagster, phlo-dlt, phlo-dbt, phlo-pandera, phlo-iceberg, phlo-nessie, phlo-trino, phlo-minio, phlo-postgres, phlo-api, phlo-observatory, phlo-observe-plugin, phlo-core-plugins |
| Supported optional | phlo-sling, phlo-hasura, phlo-postgrest, phlo-lineage, phlo-alerting, phlo-otel, phlo-oauth2-proxy, phlo-traefik |
| Preview (works, no v1 guarantee) | phlo-airbyte, phlo-kafka, phlo-delta, phlo-polaris, phlo-clickhouse, phlo-clickstack, phlo-rustfs, phlo-openmetadata, phlo-superset, phlo-grafana, phlo-loki, phlo-prometheus, phlo-alloy, phlo-mcp |
| Development only | phlo-testing, phlo-transform, phlo-pgweb, phlo-observatory-example |
The support matrix and the machine-readable support manifest are the source of truth. phlo support status compares what you have installed against it.
Status
Phlo is alpha and is not production-ready. APIs, provider contracts and the project layout can still change. It has one maintainer.
The path to 1.0 is set out in ADR 0053:
- 0.19.0 is the last alpha and completes the scheduled removals.
- 0.20.0 removes the legacy
/api/observatoryroutes and starts the 1.0 candidate line. - 1.0.0 ships only when the five release gates (security, run evidence, maintenance, upgrade and restore, golden path) pass on a live deployment, and the candidate has run that deployment for seven days without intervention.
Deployment support boundary
Scope for 1.0 is one project and one tenant on Docker Compose, on Linux (macOS for local use, Windows via WSL 2). Kubernetes, high availability and multi-region are out of scope.
Phlo is not validated for GxP or other regulated use. Regulated mode and evidence packs exist, but no part of Phlo has been qualified against a regulatory standard.
Documentation
- Install and build your first pipeline
- How Phlo works and write-audit-publish
- Guides: ingest data, add quality checks, transform with dbt, choose your stack, secure the stack, back up and recover, upgrade Phlo
- Example lakehouses covering seventeen source and architecture patterns
- Reference: CLI, Python API, configuration, errors
Related projects
- phlo-transform: a Rust SQL build engine with structural lineage and planning. It is not dbt-compatible, and it can translate a dbt project.
- phlo-observe: structured, wide-event observability for Phlo runs.
- stencil: map cells in an Excel template once, then extract typed data from every copy of it.
Development
You need Python 3.12, uv, and Node.js 24 or later.
make setup # Python env plus Observatory dependencies
make check # lint, types, tests, docs links, support manifest
Issues and pull requests are welcome. Open an issue before a large change. CONTRIBUTING.md has the workflow and the contribution terms.
Licence
AGPL-3.0-or-later. See LICENSE. If you want to use Phlo in a proprietary product or service without complying with the AGPL, contact us about commercial licensing.
Metadata
Release files for phlo 0.19.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| phlo-0.19.0.tar.gz | 616.0 kB | Without provenance | Details for phlo-0.19.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| phlo-0.19.0-py3-none-any.whl | Python 3 | none | any | Details for phlo-0.19.0-py3-none-any.whl |
Total release size: 1.4 MB
Release files / phlo-0.19.0.tar.gz
| Download URL | phlo-0.19.0.tar.gz |
|---|---|
| Size | 616.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
658633ab7b30539f083a8689b33ef75b9d164aa72672de42acdec15f991438ba
|
|
BLAKE2b-256 checksum How to use checksums |
cf879341ef2fe3df3b4fb7bec00812c4b6669479f216aa734caa089ea0a06f59
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.12.1 {"installer":{"name":"uv","version":"0.12.1","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / phlo-0.19.0-py3-none-any.whl
| Download URL | phlo-0.19.0-py3-none-any.whl |
|---|---|
| Size | 765.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
054003831ddda4dffc8a719f7df05845bdd3b01b0ff829556a500419c994f651
|
|
BLAKE2b-256 checksum How to use checksums |
79dea6ddd667e2f1440f61ef66179c9da4616df0f177f6427cc60b24139e1bf6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.12.1 {"installer":{"name":"uv","version":"0.12.1","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Security for phlo 0.19.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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
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.