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
Transformobject that maps onto the file in which the function is defined. The function maps onto an entrypoint of thetransform.A function execution creates a
Runobject that stores the function name inrun.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.