Skip to main content

Python SDK Reference

Auto-generated reference for the michelangelo Python package — task and workflow decorators, compute-backend plugins, trainer utilities, and workflow variable types. Start here if you're authoring pipelines with the Python SDK.

New to Michelangelo AI? See Core Concepts and Key Terms for what a task, a workflow, and Uniflow actually are before diving into the raw signatures below.

Some modules below aren't linked yet — coming soon. Two modules referenced elsewhere in this reference, the XGBoost trainer and LightningTrainer itself, aren't in the current generator config and have no page yet either; the Trainer section covers only the Torch collate-function and memory-estimation utilities so far.

Uniflow — Tasks & Workflows​

The core authoring surface for pipeline tasks and workflows.

ModuleDescription
uniflow.core.decorator@task and @workflow decorators
uniflow.core.task_configBase task configuration types
uniflow.core.contextExecution context passed into tasks
uniflow.core.image_specImageSpec for per-task container images
uniflow.core.io_registryDataset IO type registry

Uniflow — Plugins​

Compute-backend plugins that extend @task with Ray, Spark, or Pandas execution.

ModuleDescription
uniflow.plugins.ray.taskRayTask config for Ray-backed tasks
uniflow.plugins.ray.run_configRay run configuration
uniflow.plugins.ray.ioRay dataset IO
uniflow.plugins.spark.taskSparkTask config for Spark-backed tasks
uniflow.plugins.spark.ioSpark dataset IO
uniflow.plugins.pandas.ioPandas dataset IO

CanvasFlex — Pusher​

The pusher component for CanvasFlex template-driven workflows.

ModuleDescription
workflow.tasks.pusher.taskPusher task definition
workflow.tasks.pusher.registryPusher plugin registry
workflow.tasks.pusher.exceptionsPusher exception types

Trainer​

PyTorch training utilities used with LightningTrainer (LightningTrainer itself isn't generated into this reference yet — see the note above).

ModuleDescription
lib.trainer.torch.data_collate_functionsCollate functions for data loading
lib.trainer.torch.utilsTrainer utilities

Native Transform​

TorchScript- and ONNX-exportable transform layers for train/serve parity.

ModuleDescription
lib.native_transform.torch.base_layersBase transform layer classes
lib.native_transform.torch.id_hash_tokenizerID hashing tokenizer layer
lib.native_transform.torch.utilsTransform utilities

Workflow Variables​

Typed dataset and metadata variables for pipeline IO.

ModuleDescription
workflow.variables.typesDatasetVariable and related types
workflow.variables.metadataVariable metadata types

Regenerating this reference​

This section is generated from source docstrings via pydoc-markdown, configured by pydoc-markdown.yml at the repo root. If you're updating docstrings, regenerate the pages above by running bun run docs:api from the website/ directory.

pydoc-markdown isn't currently declared as a project dependency, so on a fresh checkout you may need to install it yourself (pip install pydoc-markdown) before the script succeeds.