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
Metadata
Release files for slimflow 0.1.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 | |
|---|---|---|---|---|
| slimflow-0.1.0.tar.gz | 6.7 kB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| slimflow-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 15.0 kB
Release files / slimflow-0.1.0.tar.gz
| Download URL | slimflow-0.1.0.tar.gz |
|---|---|
| Size | 6.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0a499ab3e6a5a870091cf7f2d8c8e3843d9ecf831955c1afa13f7e8ef8a8f968
|
|
BLAKE2b-256 checksum How to use checksums |
69fe8064ff8e9e0bda7fa8f566e9ba36485f1501b166536f0c392fe295de096d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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 May 23, 2026.
Transparency logRelease files / slimflow-0.1.0-py3-none-any.whl
| Download URL | slimflow-0.1.0-py3-none-any.whl |
|---|---|
| Size | 8.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a35cd1b88351daae388dfc73192ee19c5d730a64c2be36f2287af1fd0bd7b7c1
|
|
BLAKE2b-256 checksum How to use checksums |
c51440bed72cbf6e918e37191b2bec631e1bfb64eee8f6aa48b23dd8233e1be3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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 May 23, 2026.
Transparency logSecurity for slimflow 0.1.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.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for slimflow-0.1.0.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 May 23, 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.