{"id":21324084,"url":"https://github.com/mcejp/goeiedag","last_synced_at":"2026-03-10T05:03:15.330Z","repository":{"id":56899534,"uuid":"478275529","full_name":"mcejp/goeieDAG","owner":"mcejp","description":"It's like a Makefile, but you define it in Python","archived":false,"fork":false,"pushed_at":"2024-07-07T12:57:30.000Z","size":2965,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-28T17:15:26.576Z","etag":null,"topics":["build-system","dag","make","makefile","ninja","ninja-build"],"latest_commit_sha":null,"homepage":"https://goeiedag.readthedocs.io/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mcejp.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-04-05T19:39:18.000Z","updated_at":"2024-07-07T12:59:39.000Z","dependencies_parsed_at":"2024-11-21T20:39:51.726Z","dependency_job_id":null,"html_url":"https://github.com/mcejp/goeieDAG","commit_stats":{"total_commits":14,"total_committers":1,"mean_commits":14.0,"dds":0.0,"last_synced_commit":"3fa5323a21b2d870dbb5ee435b443f3582a87940"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mcejp%2FgoeieDAG","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mcejp%2FgoeieDAG/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mcejp%2FgoeieDAG/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mcejp%2FgoeieDAG/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mcejp","download_url":"https://codeload.github.com/mcejp/goeieDAG/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241976081,"owners_count":20051574,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["build-system","dag","make","makefile","ninja","ninja-build"],"created_at":"2024-11-21T20:28:37.772Z","updated_at":"2026-03-10T05:03:15.176Z","avatar_url":"https://github.com/mcejp.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# goeieDAG\n\n_/ɣu.jə.ˈdɑx/: hello, good day (Dutch greeting used during daytime)_\n\ngoeieDAG provides a unified Python API to Ninja and Make (_TODO_) build systems, aiming to\nmake it extremely easy to benefit from parallel processing in any graph-like workflow.\n\n\n## Installation\n\n    pip install goeieDAG==0.0.2\n\n## Usage\n\n```python\nfrom pathlib import Path\n\nimport goeiedag\nfrom goeiedag import ALL_INPUTS, INPUT, OUTPUT\n\nworkdir = Path(\"output\")\n\ngraph = goeiedag.Graph()\n\n# Extract OS name from /etc/os-release\ngraph.add([\"grep\", \"^NAME=\", INPUT, \"\u003e\", OUTPUT],\n          inputs=[\"/etc/os-release\"],\n          outputs=[\"os-name.txt\"])\n# Get username\ngraph.add([\"whoami\", \"\u003e\", OUTPUT],\n          inputs=[],\n          outputs=[\"username.txt\"])\n# Glue together to produce output\ngraph.add([\"cat\", ALL_INPUTS, \"\u003e\", OUTPUT.result],\n          inputs=[\"os-name.txt\", \"username.txt\"],\n          outputs=dict(result=\"result.txt\"))  # can also use a dictionary and refer to inputs/outputs by name\n\ngoeiedag.build_all(graph, workdir)\n\n# Print output\nprint((workdir / \"result.txt\").read_text())\n```\n\n\n## Q\u0026A\n\n### Why use the _files and commands_ model rather than _Python objects and functions_?\n\n- It is a tested and proven paradigm (`make` traces back to _1976_!)\n- It provides an obvious way of evaluating which products need rebuilding (subject to an\n  accurate dependency graph)\n- It naturally isolates and parallelizes individual build tasks\n- It is agnostic as to how data objects are serialized (convenient for the library author...)\n- Graph edges are implicitly defined by input/output file names\n- A high-quality executor (Ninja) is available and installable via a Python package\n\n### How is this different from using the Ninja package directly?\n\n- Simpler mental model \u0026 usage: no need to separately define build rules or think about implicit/explicit inputs and\n  outputs\n- API accepts Paths; no need to cast everything to `str`!\n- Higher-level API in general (for example, the output directory is created automatically)\n\n### Why is Python 3.10+ required?\n\nThe code makes use of [PEP-604](https://peps.python.org/pep-0604/).\n\n\n## Similar projects\n\n- [Ninja](https://pypi.org/project/ninja/) (Python package) -- provides a lower-level API,\n  used by goeieDAG as back-end\n- [TaskGraph](https://github.com/natcap/taskgraph/) -- similar project, but centered around\n  Python functions and in-process parallelism\n- [Snakemake](https://snakemake.github.io/) -- similar goals, but a stand-alone tool rather\n  than a library\n- [Dask](https://dask.org/) -- different execution model; caching of intermediate results\n  is left up to the user\n- [doit](https://pydoit.org/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmcejp%2Fgoeiedag","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmcejp%2Fgoeiedag","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmcejp%2Fgoeiedag/lists"}