A flexible DAG workflow library for researchers, with persistent results and easy parallel execution.
Project description
Dagreon
Dagreon is a flexible DAG workflow library for researchers, with persistent results and easy parallel execution.
It lets you define typed task classes, connect them through Python 3.12 type aliases, and compute only the dependencies required for a requested result.
from dagreon import Workflow, task
type Samples = list[float]
type Mean = float
@task
class LoadSamples:
values: tuple[float, ...]
def __call__(self) -> Samples:
return list(self.values)
@task
class ComputeMean:
def __call__(self, samples: Samples) -> Mean:
return sum(samples) / len(samples)
workflow = Workflow([
LoadSamples(values=(1.0, 2.0, 3.0)),
ComputeMean(),
])
result = workflow.run(Mean)
Features
- Typed task graphs built from Python 3.12 type aliases.
- Target-driven execution of only the subgraph needed for a result.
- Per-run task overrides for variants and experiments.
- Optional LMDB-backed result persistence for final requested targets.
- Optional Ray execution through
pip install dagreon[ray]. - Progress bars for variant runs.
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 dagreon-0.2.0.tar.gz.
File metadata
- Download URL: dagreon-0.2.0.tar.gz
- Upload date:
- Size: 45.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d563c496fbe4ff954e0d6f4ef7396e6fac07875475417e342163505fc3404090
|
|
| MD5 |
b80e85d7e8bc443a2beacb3859e95742
|
|
| BLAKE2b-256 |
5b8518b296c2ef087b768130d0008d7a6651af75d55cb46918b364061f1247ef
|
Provenance
The following attestation bundles were made for dagreon-0.2.0.tar.gz:
Publisher:
python-publish.yml on LPSchulz/dagreon
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
dagreon-0.2.0.tar.gz -
Subject digest:
d563c496fbe4ff954e0d6f4ef7396e6fac07875475417e342163505fc3404090 - Sigstore transparency entry: 2060516156
- Sigstore integration time:
-
Permalink:
LPSchulz/dagreon@e4d5dfedaf9c5e292d3ef5ba3c6567878874a771 -
Branch / Tag:
refs/tags/v0.2.0 - Owner: https://github.com/LPSchulz
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@e4d5dfedaf9c5e292d3ef5ba3c6567878874a771 -
Trigger Event:
release
-
Statement type:
File details
Details for the file dagreon-0.2.0-py3-none-any.whl.
File metadata
- Download URL: dagreon-0.2.0-py3-none-any.whl
- Upload date:
- Size: 12.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 |
b004c3b5dee984a2ef6f7ec2fcade26273bc1529d5d052b3fe3edd9d9fa46783
|
|
| MD5 |
722efc794ff0efb0216568972b180f54
|
|
| BLAKE2b-256 |
32f41d306d5ecc26033bf8b55f77ca746b778b895027345b3ad5f95eb45e566c
|
Provenance
The following attestation bundles were made for dagreon-0.2.0-py3-none-any.whl:
Publisher:
python-publish.yml on LPSchulz/dagreon
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
dagreon-0.2.0-py3-none-any.whl -
Subject digest:
b004c3b5dee984a2ef6f7ec2fcade26273bc1529d5d052b3fe3edd9d9fa46783 - Sigstore transparency entry: 2060516236
- Sigstore integration time:
-
Permalink:
LPSchulz/dagreon@e4d5dfedaf9c5e292d3ef5ba3c6567878874a771 -
Branch / Tag:
refs/tags/v0.2.0 - Owner: https://github.com/LPSchulz
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@e4d5dfedaf9c5e292d3ef5ba3c6567878874a771 -
Trigger Event:
release
-
Statement type: