Tiny, stdlib-only DAG runner for Python.
Project description
slimflow
Tiny, stdlib-only DAG runner for Python.
Install
pip install slimflow
Usage
from slimflow import Task, Workflow, Runner
extract = Task(name="extract", func=fetch_data)
transform = Task(name="transform", func=clean, depends_on=[extract])
load = Task(name="load", func=write_to_db, depends_on=[transform], max_retries=3)
workflow = Workflow("my-pipeline", [extract, transform, load])
results = Runner(threads=4).run(workflow)
Run artifacts
Pass artifacts_dir= to Runner to persist run_results.json (one per run) at the end of each workflow. Failed or skipped tasks also get a sidecar log file. Below is the schema.
{
"schema_version": 1,
"run_id": "8c7a...",
"workflow_name": "my-pipeline",
"started_at": "2026-05-23T17:04:11.000000Z",
"ended_at": "2026-05-23T17:09:32.000000Z",
"duration_s": 321.4,
"python_version": "3.12.4",
"slimflow_version": "0.1.0",
"caller_path": "main.py",
"tasks": [
{
"name": "extract",
"status": "success",
"attempts": 1,
"started_at": "2026-05-23T17:04:11.000000Z",
"ended_at": "2026-05-23T17:07:55.000000Z",
"duration_s": 224.0,
"thread_name": "ThreadPoolExecutor-0_2",
"depends_on": [],
"func_module": "my_pipeline.tasks",
"func_qualname": "fetch_data",
"func_source_path": "my_pipeline/tasks.py",
"func_source_line": 12,
"error": null,
"traceback": null,
"log_path": null
}
]
}
Func metadata caveats
func_module / func_qualname / func_source_path are best-effort. Plain functions, functools.partial, and @functools.wraps-decorated functions all resolve cleanly. Lambdas show as "<lambda>". Callable objects fall back to their class name. None of this affects execution — only the BI-grouping tags.
Issues
Project details
Release history Release notifications | RSS feed
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 slimflow-0.1.0.tar.gz.
File metadata
- Download URL: slimflow-0.1.0.tar.gz
- Upload date:
- Size: 6.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0a499ab3e6a5a870091cf7f2d8c8e3843d9ecf831955c1afa13f7e8ef8a8f968
|
|
| MD5 |
4fddae84cbf4d9e37636b3cbc466e3ce
|
|
| BLAKE2b-256 |
69fe8064ff8e9e0bda7fa8f566e9ba36485f1501b166536f0c392fe295de096d
|
Provenance
The following attestation bundles were made for slimflow-0.1.0.tar.gz:
Publisher:
publish.yml on WhimsicalCode/slimflow
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
slimflow-0.1.0.tar.gz -
Subject digest:
0a499ab3e6a5a870091cf7f2d8c8e3843d9ecf831955c1afa13f7e8ef8a8f968 - Sigstore transparency entry: 1614984598
- Sigstore integration time:
-
Permalink:
WhimsicalCode/slimflow@a90643b95beedd8a91afdd4100d9ff0b00ab5c67 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/WhimsicalCode
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@a90643b95beedd8a91afdd4100d9ff0b00ab5c67 -
Trigger Event:
push
-
Statement type:
File details
Details for the file slimflow-0.1.0-py3-none-any.whl.
File metadata
- Download URL: slimflow-0.1.0-py3-none-any.whl
- Upload date:
- Size: 8.3 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 |
a35cd1b88351daae388dfc73192ee19c5d730a64c2be36f2287af1fd0bd7b7c1
|
|
| MD5 |
600dd4b75b4f24ef7e60d218ff029899
|
|
| BLAKE2b-256 |
c51440bed72cbf6e918e37191b2bec631e1bfb64eee8f6aa48b23dd8233e1be3
|
Provenance
The following attestation bundles were made for slimflow-0.1.0-py3-none-any.whl:
Publisher:
publish.yml on WhimsicalCode/slimflow
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
slimflow-0.1.0-py3-none-any.whl -
Subject digest:
a35cd1b88351daae388dfc73192ee19c5d730a64c2be36f2287af1fd0bd7b7c1 - Sigstore transparency entry: 1614984600
- Sigstore integration time:
-
Permalink:
WhimsicalCode/slimflow@a90643b95beedd8a91afdd4100d9ff0b00ab5c67 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/WhimsicalCode
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@a90643b95beedd8a91afdd4100d9ff0b00ab5c67 -
Trigger Event:
push
-
Statement type: