fastflowtransform.decorators¶
model ¶
model(name=None, deps=None, require=None, *, tags=None, kind='python', materialized=None, meta=None)
Decorator to register a Python model.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
name
|
str | None
|
Logical node name in the DAG (defaults to function name). |
None
|
deps
|
Sequence[str] | None
|
Upstream node names (e.g., ['users.ff']). |
None
|
require
|
Any | None
|
|
None
|
tags
|
Sequence[str] | None
|
Optional tags for selection (e.g. ['demo','env']). |
None
|
kind
|
str
|
Logical kind; defaults to 'python' (useful for selectors kind:python). |
'python'
|
materialized
|
str | None
|
Shorthand for meta['materialized']; mirrors config(materialized='...'). |
None
|
meta
|
Mapping[str, Any] | None
|
Arbitrary metadata for executors/docs (merged with materialized if provided). |
None
|
Source code in src/fastflowtransform/decorators.py
54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 | |