1.16.19

flytekit.remote.interface

Directory

Classes

Class Description
TypedInterface

flytekit.remote.interface.TypedInterface

Parameters

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

Properties

Property Type Description
inputs typing.Dict[str, flytekit.models.interface.Variable]
is_empty None
outputs typing.Dict[str, flytekit.models.interface.Variable]

Methods

Method Description
from_flyte_idl()
promote_from_model()
serialize_to_string()
short_string()
to_flyte_idl()
transform_interface_to_list() Takes a single task interface and interpolates it to an array interface - to allow performing distributed.

from_flyte_idl()

def from_flyte_idl(
    proto: flyteidl.core.interface_pb2.TypedInterface,
) -> TypedInterface
Parameter Type Description
proto flyteidl.core.interface_pb2.TypedInterface

promote_from_model()

def promote_from_model(
    model,
)
Parameter Type Description
model

Returns: TypedInterface

serialize_to_string()

def serialize_to_string()

short_string()

def short_string()

Returns: Text

to_flyte_idl()

def to_flyte_idl()

transform_interface_to_list()

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