Stardag
Declarative and composable DAGs for Python.
Stardag provides a clean Python API for representing persistently stored assets, the code that produces them, and their dependencies as a declarative Directed Acyclic Graph (DAG). It is a spiritual—but highly modernized—descendant of Luigi, designed for iterative data and ML workflows.
Built on Pydantic, Stardag uses expressive type annotations to reduce boilerplate and make task I/O contracts explicit—enabling composable tasks and pipelines while maintaining a fully declarative specification of every produced asset.
Quick Example
import stardag as sd
@sd.task
def get_range(limit: int) -> list[int]:
return list(range(limit))
@sd.task
def get_sum(integers: sd.Depends[list[int]]) -> int:
return sum(integers)
# Declarative DAG specification - no computation yet
sum_task = get_sum(integers=get_range(limit=4))
# Materialize all tasks' targets
sd.build(sum_task)
# Load results
assert sum_task.load() == 6
assert sum_task.integers.load() == [0, 1, 2, 3]
Installation
pip install stardag
Or with uv:
uv add stardag
Optional extras:
pip install stardag[s3] # S3 storage support
pip install stardag[prefect] # Prefect integration
pip install stardag[modal] # Modal integration
Documentation
Read the docs for tutorials, guides, and API reference.
- Getting Started — Installation and first steps
- Core Concepts — Tasks, targets, dependencies
- How-To Guides — Integrations with Prefect, Modal
- Configuration — Profiles, CLI reference
Stardag Cloud
Stardag Cloud provides optional services for team collaboration and monitoring:
- Web UI — Dashboard for build monitoring and task inspection
- API Service — Task tracking and coordination across distributed builds
The SDK works fully standalone—the platform adds value for teams needing shared visibility and coordination.
Why Stardag?
- Composability — Task instances as first-class parameters enable loose coupling and reusability
- Declarative — Full DAG specification before execution; inspect, serialize, and reason about pipelines
- Deterministic — Parameter hashing gives each task a unique, reproducible ID and output path
- Pydantic-native — Tasks are Pydantic models with full validation and serialization support
- Framework-agnostic — Integrate with Prefect, Modal, or run standalone
Links
Metadata
Release files for stardag 0.30.1
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 | Actions |
|---|---|---|---|---|
| stardag-0.30.1.tar.gz | 1.1 MB | With provenance | Details for stardag-0.30.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| stardag-0.30.1-py3-none-any.whl | Python 3 | none | any | Details for stardag-0.30.1-py3-none-any.whl |
Total release size: 1.7 MB
Release files / stardag-0.30.1.tar.gz
| Download URL | stardag-0.30.1.tar.gz |
|---|---|
| Size | 1.1 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8e3250cecf11c420a9436b9f3e4f5a8945198e4a1fd23a4b1f6eddb48ee66b39
|
|
BLAKE2b-256 checksum How to use checksums |
886f8c04fddd293c95ed0acff3c2d87b80b69096c5dc96e06234364ec3b93268
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Oct 30, 2026.
Transparency logRelease files / stardag-0.30.1-py3-none-any.whl
| Download URL | stardag-0.30.1-py3-none-any.whl |
|---|---|
| Size | 602.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
333880294c5a9146f6ff9d2b654b66c11f03e22e136b99750f0377ae78f37f94
|
|
BLAKE2b-256 checksum How to use checksums |
d92f972afc41781487e558619ecf39ce9d1c5eb3ba2582bbba3a5c907d4e1c6e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Oct 30, 2026.
Transparency logSecurity for stardag 0.30.1
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
Both files in this release have been uploaded with provenance metadata.
Attestation for stardag-0.30.1.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 Oct 30, 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.