fnloom
Write plain Python functions. Get a fast, strict, deterministic dataflow graph.
The Apache Hamilton (incubating) model you already know, with the planner and
executor rebuilt in Rust.
Docs · Get started · Coming from Hamilton · Benchmarks
You write a module of ordinary, typed functions. fnloom reads the graph straight from them: a function's name is a node, and its parameter names are the edges. Ask for the outputs you want, and fnloom runs exactly the functions needed to produce them, in a fixed order, with your mistakes caught before anything runs.
Highlights
- 🧵 Your functions are the graph. No decorators, no registration, no config objects. Delete fnloom tomorrow and your code is still plain Python you can call and test directly.
- ⚡ Up to 24× faster repeat runs than Hamilton on plain graphs. Compile a request once with
prepare, then run it as often as you like. A 1,000-node graph runs in about 0.2 ms. - 🛡️ Mistakes fail loudly, and early. A misspelled input, a dependency cycle, a type mismatch between two functions
or an
async defnode in a sync build raises a clear error naming the culprit. Hamilton accepts several of these silently. - 🎯 The same order, every run. Nodes run in topological order with ties broken by name, so logs and side effects never shuffle between runs.
- 🏔️ No depth limit. Nothing recurses over the graph, so a 50,000-node chain builds and runs. Hamilton
hits
RecursionErrorat around 1,000. - 🦀 A Rust core you can embed.
fnloom-corehas no dependencies and nounsafe, and it doesn't care what a node runs.
A graph in one screen
# file: pricing.py
def total(price: float, quantity: int) -> float:
"""What the line costs before any discount."""
return price * quantity
def discounted(total: float, discount: float = 0.0) -> float:
"""The total after the discount, if one is given."""
return total * (1 - discount)
def label(discounted: float, currency: str = "EUR") -> str:
"""The price as shown to a customer."""
return f"{discounted:.2f} {currency}"
That module is this graph. price and quantity aren't the name of any function, so they're inputs. discount and
currency have defaults, so they're optional:
flowchart TD
price([price]) --> total
quantity([quantity]) --> total
total --> discounted
discount([discount?]) -.-> discounted
discounted --> label
currency([currency?]) -.-> label
Build a driver and ask for what you need:
import fnloom
import pricing
driver = fnloom.build(pricing)
driver.execute(["label"], inputs={"price": 2.5, "quantity": 4})
# -> {'label': '10.00 EUR'}
# Running the same request in a loop? Compile it once.
plan = driver.prepare(["label"], inputs={"price": 0.0, "quantity": 0})
plan.run(inputs={"price": 4.0, "quantity": 3})
# -> {'label': '12.00 EUR'}
Next, the guides cover which functions become nodes, overrides, prepared plans, type checks, lineage and every error message.
fnloom vs. Hamilton
fnloom uses Hamilton's model, so a module of Hamilton functions is already a module of fnloom nodes. The difference is in what happens when you run it.
| Hamilton 1.90.0 | fnloom | |
|---|---|---|
| A chain of 1,000+ nodes | RecursionError |
✅ Runs at any depth |
| A dependency cycle | RecursionError when executed |
✅ ValueError naming the cycle, at build |
| A misspelled input or override | Silently ignored | ✅ ValueError naming it |
An async def node |
The un-awaited coroutine is the value | ✅ ValueError at build(); build_async() awaits it |
| Execution order | Depends on how you list outputs | ✅ Always the same |
| Running a request again | Re-planned on every call | ✅ prepare once, run many times |
| Runtime dependencies | numpy, pandas and more | ✅ None |
Hamilton is fnloom's test oracle: the shared behaviour runs through both, and every deliberate difference is a row in the register. Most rows have a test that checks Hamilton and fnloom side by side. Moving over? Read Coming from Hamilton.
Performance
Milliseconds on an Apple M2 Pro, lower is better, from the full benchmarks:
| Graph | Build (Hamilton → fnloom) | Repeat run (Hamilton → fnloom) |
|---|---|---|
| 1,000 nodes, layered | 21.6 → 7.2 | 4.35 → 0.21 (21×) |
| 1,000-input fan-in | 3.02 → 1.47 | 2.73 → 0.31 (9×) |
| 10,000-node chain | 207.5 → 63.4 | RecursionError → 1.34 |
10,000 @parameterize rows |
5,285 → 128 | RecursionError → 1.35 |
Your node functions still run at Python speed. fnloom removes the overhead around them: planning, validation and dispatch.
Is fnloom a good fit?
Yes, if you compute many derived values from a few inputs (features, metrics, pricing, signals), want each step to be a small function you can test on its own, and run the same graph many times in one process.
Not yet, if you need dynamic execution, or an adapter that wraps how a node is called, such
as GracefulErrorAdapter. They're on the roadmap. fnloom is also not a scheduler. It doesn't retry,
distribute or schedule work, so pair it with an orchestrator if you need that.
Install
fnloom isn't on PyPI yet. Build it from source with Python 3.14 or newer, uv and a stable Rust toolchain:
git clone https://github.com/kelsayed17/fnloom.git
cd fnloom
uv sync
uv run maturin develop --release
Status
Pre-alpha. Done so far:
- ✅ The Rust core and the native Python path
- ✅
@parameterizeand its sugar,@tag,@exclude, graph inspection,validateand type checks - ✅ Graphs from plain functions, namespaces,
rebuild(), and one driver shared between threads - ✅ Result caching, in memory or on disk
- ✅
@config.when*,@extract_fields,@extract_columns, and an async driver that caches too - ✅ Hooks before and after a run and each node, result builders, output checks and custom value checks
- ✅ Drawing as DOT or Mermaid text, export as JSON, and the
fnloomcommand - ✅
@check_outputvalidators, steps,@inject,@resolveand node wrappers - ✅ Namespaces with
bind=, and a written recipe for each Hamilton feature left out - 🔜 Dynamic execution
The design has the full plan. The name is provisional, pending a trademark check before the first release.
Contributing
CONTRIBUTING.md covers the setup and the one check script. Please report security problems privately, as SECURITY.md describes.
Licensed under Apache-2.0. Not affiliated with or endorsed by the Apache Software Foundation or the Apache Hamilton (incubating) project.
Metadata
Release files for fnloom 0.3.1
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 |
|---|---|---|---|---|
| fnloom-0.3.1.tar.gz | 240.9 kB | With provenance | Details for fnloom-0.3.1.tar.gz |
Built distributions (wheels)
Total release size: 10.0 MB
Release files / fnloom-0.3.1.tar.gz
| Download URL | fnloom-0.3.1.tar.gz |
|---|---|
| Size | 240.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9575c1e0938923091aa1917b9e804cf65877f5f44864511659f0fb0520ab9153
|
|
BLAKE2b-256 checksum How to use checksums |
7bdd0d880e535f47572d8f58ad431a6d7331b444f2d96c1b1ec9c36dd2d55206
|
| 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 9, 2026.
Transparency logRelease files / fnloom-0.3.1-cp314-cp314t-win_amd64.whl
| Download URL | fnloom-0.3.1-cp314-cp314t-win_amd64.whl |
|---|---|
| Size | 527.6 kB |
| Tags | CPython 3.14 CPython 3.14 free-threading Windows x86-64 |
|
SHA-256 checksum How to use checksums |
f1234734cc8c85a22dfe86207c6b98a2b4e2f26a849d752ed29281fa10cd48b1
|
|
BLAKE2b-256 checksum How to use checksums |
0e0dd89b01d4a8eea16cd251c3982fb6325f95f6d36a844c3c26039d02d53e87
|
| 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 9, 2026.
Transparency logRelease files / fnloom-0.3.1-cp314-cp314t-musllinux_1_2_x86_64.whl
| Download URL | fnloom-0.3.1-cp314-cp314t-musllinux_1_2_x86_64.whl |
|---|---|
| Size | 892.0 kB |
| Tags | CPython 3.14 CPython 3.14 free-threading Linux musl 1.2+ x86-64 |
|
SHA-256 checksum How to use checksums |
16c4a9dd0e434e1f48191c4186e94db7708595309b4312a16765f863987967da
|
|
BLAKE2b-256 checksum How to use checksums |
a520a8c0c1f773b4589c4500e5c3dffa795cc27b153880bf0a4e1e3f7208cf6a
|
| 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 9, 2026.
Transparency logRelease files / fnloom-0.3.1-cp314-cp314t-musllinux_1_2_aarch64.whl
| Download URL | fnloom-0.3.1-cp314-cp314t-musllinux_1_2_aarch64.whl |
|---|---|
| Size | 839.6 kB |
| Tags | CPython 3.14 CPython 3.14 free-threading Linux musl 1.2+ ARM64 |
|
SHA-256 checksum How to use checksums |
7aeff9ba4ca22be55be73a85dacd0eb65ff3a15f1387aa4e89616edcbbabc0aa
|
|
BLAKE2b-256 checksum How to use checksums |
9aefd80658f66dcac829d0a8341ffe268f5f776d3701841f752a0330c234d121
|
| 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 9, 2026.
Transparency logRelease files / fnloom-0.3.1-cp314-cp314t-manylinux_2_28_x86_64.whl
| Download URL | fnloom-0.3.1-cp314-cp314t-manylinux_2_28_x86_64.whl |
|---|---|
| Size | 685.0 kB |
| Tags | CPython 3.14 CPython 3.14 free-threading Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
2d7cb5051f1b092eca9db549912537e87bcb631f47f8738fcb680bcc009e3067
|
|
BLAKE2b-256 checksum How to use checksums |
1e94e6779a59508bf93e744ce92dca34dc26dd02a5d53b2003b9bfd425376b6b
|
| 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 9, 2026.
Transparency logRelease files / fnloom-0.3.1-cp314-cp314t-manylinux_2_28_aarch64.whl
| Download URL | fnloom-0.3.1-cp314-cp314t-manylinux_2_28_aarch64.whl |
|---|---|
| Size | 660.3 kB |
| Tags | CPython 3.14 CPython 3.14 free-threading Linux glibc 2.28+ ARM64 |
|
SHA-256 checksum How to use checksums |
724288c17ffe2d4dd42194d5e063018b1ad0f0720d2f404e9a98c1760ed2e839
|
|
BLAKE2b-256 checksum How to use checksums |
a6a46f1079ae5316081e0ef74bca4723df2ccacb6558d25f560043b86ef343f9
|
| 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 9, 2026.
Transparency logRelease files / fnloom-0.3.1-cp314-cp314t-macosx_11_0_arm64.whl
| Download URL | fnloom-0.3.1-cp314-cp314t-macosx_11_0_arm64.whl |
|---|---|
| Size | 622.1 kB |
| Tags | CPython 3.14 CPython 3.14 free-threading macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
aecb09e81de740efdcf42a028b9038d449497a0e2f46332f6cc590c02b8f28e1
|
|
BLAKE2b-256 checksum How to use checksums |
c0ec60c295b1235031486fd2a0bde1b29ea7ec8d133221068fc17a0b577edb11
|
| 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 9, 2026.
Transparency logRelease files / fnloom-0.3.1-cp314-cp314t-macosx_10_12_x86_64.whl
| Download URL | fnloom-0.3.1-cp314-cp314t-macosx_10_12_x86_64.whl |
|---|---|
| Size | 647.2 kB |
| Tags | CPython 3.14 CPython 3.14 free-threading macOS 10.12+ x86-64 |
|
SHA-256 checksum How to use checksums |
834b00a12507a0fc27ed79c84946f7265b79f3dfb71aea66bdc82ec284206055
|
|
BLAKE2b-256 checksum How to use checksums |
0c4142087efaea88a36fc0d4bf14cbbdaec75e3e8b05824ae33a240f02b2c0ae
|
| 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 9, 2026.
Transparency logRelease files / fnloom-0.3.1-cp314-cp314-win_amd64.whl
| Download URL | fnloom-0.3.1-cp314-cp314-win_amd64.whl |
|---|---|
| Size | 529.3 kB |
| Tags | CPython 3.14 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
0e2f07552f0b49cff2422ca0f671d649a477983fbbe62173c40518d8ee5e71cf
|
|
BLAKE2b-256 checksum How to use checksums |
33cf7910fe7d8b0e9c07feb3acbc68697db070213ee5d6ea82e10b991bc672b5
|
| 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 9, 2026.
Transparency logRelease files / fnloom-0.3.1-cp314-cp314-musllinux_1_2_x86_64.whl
| Download URL | fnloom-0.3.1-cp314-cp314-musllinux_1_2_x86_64.whl |
|---|---|
| Size | 894.8 kB |
| Tags | CPython 3.14 Linux musl 1.2+ x86-64 |
|
SHA-256 checksum How to use checksums |
6f88351815e49789b89f1262f866aa979a88b5b0b876ce94fce450555ba1e760
|
|
BLAKE2b-256 checksum How to use checksums |
f7deee83cdf038eec9356f6188941b354627873bdf84615b09343f48e418bd88
|
| 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 9, 2026.
Transparency logRelease files / fnloom-0.3.1-cp314-cp314-musllinux_1_2_aarch64.whl
| Download URL | fnloom-0.3.1-cp314-cp314-musllinux_1_2_aarch64.whl |
|---|---|
| Size | 842.7 kB |
| Tags | CPython 3.14 Linux musl 1.2+ ARM64 |
|
SHA-256 checksum How to use checksums |
bc0de6386fbf172985f7e716272bdc63f79038b26939ae6748d66a65716bb738
|
|
BLAKE2b-256 checksum How to use checksums |
671fccf828ff503a3c15fc238785451e45bf8ff1793dbdc10ef1866ae3862d0f
|
| 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 9, 2026.
Transparency logRelease files / fnloom-0.3.1-cp314-cp314-manylinux_2_28_x86_64.whl
| Download URL | fnloom-0.3.1-cp314-cp314-manylinux_2_28_x86_64.whl |
|---|---|
| Size | 686.8 kB |
| Tags | CPython 3.14 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
04487eb487b3c6ec094ec33d9865e61300190680773bc36fc885aae0f7d2643d
|
|
BLAKE2b-256 checksum How to use checksums |
aa0d26b69632fabe1f6be30e413a8c493f2c5cb718507ff96d1177295bd72079
|
| 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 9, 2026.
Transparency logRelease files / fnloom-0.3.1-cp314-cp314-manylinux_2_28_aarch64.whl
| Download URL | fnloom-0.3.1-cp314-cp314-manylinux_2_28_aarch64.whl |
|---|---|
| Size | 664.5 kB |
| Tags | CPython 3.14 Linux glibc 2.28+ ARM64 |
|
SHA-256 checksum How to use checksums |
66774387cd911672d03da32e81f44d97139c71ee98e8152ca57ce8c83ad525d7
|
|
BLAKE2b-256 checksum How to use checksums |
5e7ea0a1a80b727a01999c53382e4f86b17384c53ea8a787637bcef7e624e8b7
|
| 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 9, 2026.
Transparency logRelease files / fnloom-0.3.1-cp314-cp314-macosx_11_0_arm64.whl
| Download URL | fnloom-0.3.1-cp314-cp314-macosx_11_0_arm64.whl |
|---|---|
| Size | 624.7 kB |
| Tags | CPython 3.14 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
fee9016fb4c1eb64758badea9d183fcbc530ad9f8090bcef60e110930f9b9a65
|
|
BLAKE2b-256 checksum How to use checksums |
0b79bb37d293e81e0a329cf829d3c0049ea7b848a58ce3ef9af6e7a4d8dfa92e
|
| 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 9, 2026.
Transparency logRelease files / fnloom-0.3.1-cp314-cp314-macosx_10_12_x86_64.whl
| Download URL | fnloom-0.3.1-cp314-cp314-macosx_10_12_x86_64.whl |
|---|---|
| Size | 648.5 kB |
| Tags | CPython 3.14 macOS 10.12+ x86-64 |
|
SHA-256 checksum How to use checksums |
d8e9052a3217b2eee7d9ee3550d5c9f7dbe4b769eb946d2d0aab3bd6b8554299
|
|
BLAKE2b-256 checksum How to use checksums |
b7c65f97e844240ce1037371fae65f5bade5f6c0c01c060a3f91a5ef0dcba410
|
| 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 9, 2026.
Transparency logSecurity for fnloom 0.3.1
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 15 files in this release have been uploaded with provenance metadata.
Attestation for fnloom-0.3.1.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 9, 2026.
Transparency logA 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.