flytekit.remote.interface
class TypedInterface(
inputs,
outputs,
)
Please note that this model is slightly incorrect, but is more user-friendly. The underlying inputs and
outputs are represented directly as Python dicts, rather than going through the additional VariableMap layer.
| Parameter |
Type |
Description |
inputs |
|
|
outputs |
|
|
| Property |
Type |
Description |
inputs |
typing.Dict[str, flytekit.models.interface.Variable] |
|
is_empty |
None |
|
outputs |
typing.Dict[str, flytekit.models.interface.Variable] |
|
def from_flyte_idl(
proto: flyteidl.core.interface_pb2.TypedInterface,
) -> TypedInterface
| Parameter |
Type |
Description |
proto |
flyteidl.core.interface_pb2.TypedInterface |
|
def promote_from_model(
model,
)
| Parameter |
Type |
Description |
model |
|
|
Returns: TypedInterface
def serialize_to_string()
Returns: Text
def transform_interface_to_list(
bound_inputs: typing.Set[str],
excluded_inputs: typing.Set[str],
) -> TypedInterface
Takes a single task interface and interpolates it to an array interface - to allow performing distributed
python map like functions
| Parameter |
Type |
Description |
bound_inputs |
typing.Set[str] |
fixed inputs that should not be updated to a list and will be maintained as is |
excluded_inputs |
typing.Set[str] |
inputs that should be excluded from the new interface |