Skip to main content

minidag

PyPI - Python Version

Bare minimum DAG implementation for in-process sorting of jobs with dependency injection. Runs jobs in topological order.

Install: pip install minidag

Usage:

from minidag import MiniDAG

dag = MiniDAG()

@dag.job()
def job1():
    return 1

@dag.job()
def job2(job1):
    return job1 + 1

@dag.job()
def job3(job1, job2):
    return job1 + job2

@dag.job()
def job4(some_external_value, job3)
    return some_external_value + job3

dag.run(some_external_value=10)
# > {'job1': 1, 'job2': 2, 'job3': 3, 'job4': 13, 'some_external_value': 10}

Release files for minidag 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for minidag 0.1.1
File Size Uploaded
minidag-0.1.1.tar.gz 2.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for minidag 0.1.1
File Interpreter ABI Platform
minidag-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 5.0 kB

Release files / minidag-0.1.1.tar.gz

Download URL minidag-0.1.1.tar.gz
Size 2.4 kB
Tags Source
SHA-256 checksum
How to use checksums
af6f56e0f719b380b5e4c4928d1ef174f98df3d07949e0f30576a78a3128bb82
BLAKE2b-256 checksum
How to use checksums
58ad6ecebdbae35e18a5e162fc2006c6a0400d489cbf652e3db8aceefe0c428b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.4

Release files / minidag-0.1.1-py3-none-any.whl

Download URL minidag-0.1.1-py3-none-any.whl
Size 2.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e43e99825eed67ebee7a1a56bf53d1cd6ed4622657b528e0db40f4ab36235207
BLAKE2b-256 checksum
How to use checksums
70b737580a4c6a77f2edb8086dee582f87cb1e672cb5320792826b84d68ee351
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.4

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page