lamindb.flow

lamindb.flow(uid=None)

Use @flow() to track a function as a workflow.

You will be able to see inputs, outputs, and parameters of the function in the data lineage graph.

The decorator creates a Transform object that maps onto the file in which the function is defined. The function maps onto an entrypoint of the transform.

A function execution creates a Run object that stores the function name in run.entrypoint.

Parameters:

uid (str | None, default: None) – Persist the uid to identify a transform across renames.

Return type:

Callable[[Callable[[ParamSpec(P, bound= None)], TypeVar(R)]], Callable[[ParamSpec(P, bound= None)], TypeVar(R)]]

Examples

To sync a workflow with a file in a git repo, see: sync-code-with-git.

For an extensive guide, see: manage-workflows. Here follow some examples.