0.1.dev2192+g7c539c3.d20250403
flytekit.clis.sdk_in_container.serialize
Directory
Methods
Method | Description |
---|---|
serialize_all() |
This function will write to the folder specified the following protobuf types ::. |
Variables
Property | Type | Description |
---|---|---|
CTX_ENV |
str |
|
CTX_FLYTEKIT_VIRTUALENV_ROOT |
str |
|
CTX_IMAGE |
str |
|
CTX_LOCAL_SRC_ROOT |
str |
|
CTX_PACKAGES |
str |
|
CTX_PYTHON_INTERPRETER |
str |
Methods
serialize_all()
def serialize_all(
pkgs: typing.List[str],
local_source_root: typing.Optional[str],
folder: typing.Optional[str],
mode: typing.Optional[flytekit.clis.sdk_in_container.serialize.SerializationMode],
image_config: typing.Optional[flytekit.configuration.ImageConfig],
flytekit_virtualenv_root: typing.Optional[str],
python_interpreter: typing.Optional[str],
config_file: typing.Optional[str],
env: typing.Optional[typing.Dict[str, str]],
)
This function will write to the folder specified the following protobuf types :: flyteidl.admin.launch_plan_pb2.LaunchPlan flyteidl.admin.workflow_pb2.WorkflowSpec flyteidl.admin.task_pb2.TaskSpec
These can be inspected by calling (in the launch plan case) :: flyte-cli parse-proto -f filename.pb -p flyteidl.admin.launch_plan_pb2.LaunchPlan
See :py:class:flytekit.models.core.identifier.ResourceType
to match the trailing index in the file name with the
entity type.
Parameter | Type |
---|---|
pkgs |
typing.List[str] |
local_source_root |
typing.Optional[str] |
folder |
typing.Optional[str] |
mode |
typing.Optional[flytekit.clis.sdk_in_container.serialize.SerializationMode] |
image_config |
typing.Optional[flytekit.configuration.ImageConfig] |
flytekit_virtualenv_root |
typing.Optional[str] |
python_interpreter |
typing.Optional[str] |
config_file |
typing.Optional[str] |
env |
typing.Optional[typing.Dict[str, str]] |