Skip to main content

Python API — overview

The reference is generated automatically from the sources of the dagstack-plugin-system package via pydoc-markdown and refreshed on every release.

:::info Generation deferred at launch The first version of the documentation site does not include the rendered reference yet. The pipeline configuration lives in pydoc-markdown.yaml at the repository root; the entry point is make api-python. Content lands in subsequent commits. :::

What the reference covers (planned)

ModuleContents
dagstack.plugin_systemPublic top level — discover, PluginRegistry, PluginManifest, errors.
dagstack.plugin_system.contractContract tests — run_contract_suite, assert_* checks, report types.
dagstack.plugin_system.dispatchDispatchers — BroadcastCollectDispatcher, ChainDispatcher, CapabilityDispatcher.
dagstack.plugin_system.resourcesStandard resources plus their real and test injection forms.
dagstack.plugin_system.adaptersMCP adapters for out-of-process plugins.
dagstack.plugin_system.sinksProgressSink, CheckpointStore reference implementations.

Generating locally

Requires Python 3.11+ and pydoc-markdown installed:

pip install pydoc-markdown
cd <repo-root>
make api-python

The generated .mdx files land in site/docs/api/python/. Run this either by hand before a commit, or from a CI job that automatically opens a PR with the refreshed reference after a Python-package release.

While the reference is not generated

Use: