References¶
Import-independent resource lookups for Python declarations.
FunctionReference
dataclass
¶
A function location normalized without importing or executing its module.
signature
class-attribute
instance-attribute
¶
ProfileGrainReference
dataclass
¶
Reference
dataclass
¶
A portable selector and its binding value kind.
function
¶
function(function: Callable[..., object] | str, *, returns: ReturnRole | None = None, args: dict[str, str] | None = None, category: str | None = None, validate_signature: bool | None = None, description: str | None = None) -> FunctionReference
Reference a callable or a module.path:qualname entrypoint string.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
function
|
Callable[..., object] | str
|
A named Python callable such as |
required |
returns
|
ReturnRole | None
|
Explicit independent return role when annotations are ambiguous. |
None
|
args
|
dict[str, str] | None
|
Explicit reusable argument types. |
None
|
category
|
str | None
|
Optional free-form grouping label stored in the Spec. |
None
|
validate_signature
|
bool | None
|
Whether compilation and documentation should inspect the Python signature and validate implementation contracts. |
None
|
description
|
str | None
|
Optional explicit function description. Defaults to the docstring summary line when a callable is given. |
None
|
Returns:
| Type | Description |
|---|---|
FunctionReference
|
A reference containing the module location, function name, and |
FunctionReference
|
description. |
Raises:
| Type | Description |
|---|---|
TypeError
|
If the argument is neither callable nor a string, category is not a string, or validate_signature is not a boolean. |
ValueError
|
If the entrypoint is invalid or the callable has no valid module and function name, or if contracts conflict or are missing. |
input
¶
Reference an input feature by ID, defaulting to its column identifier.
output
¶
Reference a feature returned by an operator.
key
¶
Reference a dataframe key column by its resolution column ID.
profile
¶
Reference a named profile, or the current profile when omitted.
dataset
¶
Select a named profile's runtime dataset, or the current profile's dataset.
fragment
¶
Select the current operator's computed fragment dataframe.
row_context
¶
Select a scalar attribute of the current operator's row context.
params
¶
Reference a required configuration value without reading configuration.
paths
¶
Reference a configured project path without resolving it during authoring.