Apache Hamilton
Python framework for writing dataflows as regular functions that are assembled into an executable, visualizable DAG.
At a Glance
About Apache Hamilton
Apache Hamilton (incubating) is an open-source Python framework from the Apache Software Foundation for building dataflows out of plain Python functions. Each function defines a transformation, and its parameters declare its dependencies. Hamilton connects the functions into a directed acyclic graph that can be executed, visualized and reported on. It also comes with a companion UI to visualize, catalog and monitor dataflows.
What It Is
Hamilton is a general-purpose library for data, machine learning and LLM pipelines. Transformations are type-annotated Python functions organized into modules, and they hold no dependency on Hamilton, so they can be reused outside it. A Driver assembles a FunctionGraph from those modules. When specific outputs are requested, it builds an execution plan that computes only the required functions and returns the results.
How the Workflow Operates
The graph can be visualized without executing any code, so diagrams always match the source. The Driver can be configured to extend execution behavior, for example with remote execution, monitoring, webhooks and caching. Function modifiers (decorators) support parameterization, data quality checks, data loading and saving, and subdags. Documented guides cover Jupyter notebooks, feature engineering, model training, LLM workflows, lineage, testing and scaling computation.
Scaling and Integrations
The project says it separates transformation logic from execution, so work can scale through remote execution and engines such as Spark, Ray and duckdb. The docs list integrations and examples for dbt, FastAPI, Streamlit, Ibis, dlt, Airflow, Dagster, Prefect, Dask, Polars, MLflow, Feast, Pandera and OpenLineage. The ecosystem section also lists a Claude Code plugin and an MCP server. A VS Code extension and language server are available as well.
Current Status
The site states that Apache Hamilton is undergoing incubation at the Apache Software Foundation. It adds that incubation status does not necessarily reflect the completeness or stability of the code, but that the project has yet to be fully endorsed by the ASF.
Community Discussions
Be the first to start a conversation about Apache Hamilton
Share your experience with Apache Hamilton, ask questions, or help others learn from your insights.
Pricing
Apache Hamilton (open source)
Self-hosted open-source framework licensed under the Apache License, Version 2.0.
- Licensed under the Apache License, Version 2.0
- Install with pip, conda, or from source
- Try in browser at tryhamilton.dev
Capabilities
Key Features
- Dataflows defined as regular type-annotated Python functions
- Automatic DAG assembly via Driver and FunctionGraph
- Visualization without executing code
- Function modifiers/decorators such as parameterize, check_output, load_from and save_to
- Caching with data versioning
- Dynamic DAGs and parallel execution
- Lifecycle hooks and graph adapters
- Data loaders and savers
- Apache Hamilton UI for lineage, cataloging and monitoring
- VS Code extension and language server
- Command line interface and pre-commit hooks
- LLM workflow modeling
