flytekit.clis package

Submodules

flytekit.clis.helpers module

flytekit.clis.helpers.construct_literal_map_from_parameter_map(parameter_map, text_args)[source]

Take a dictionary of Text to Text and construct a literal map using a ParameterMap as guidance. Required input parameters must have an entry in the text arguments given. Parameters with defaults will have those defaults filled in if missing from the text arguments.

Parameters
Return type

flytekit.models.literals.LiteralMap

flytekit.clis.helpers.construct_literal_map_from_variable_map(variable_dict, text_args)[source]

This function produces a map of Literals to use when creating an execution. It reads the required values from a Variable map (presumably obtained from a launch plan), and then fills in the necessary inputs from the click args. Click args will be strings, which will be parsed into their SDK types with each SDK type’s parse string method.

Parameters
  • flytekit.models.interface.Variable] variable_dict (dict[Text,) –

  • Text] text_args (dict[Text,) –

Return type

flytekit.models.literals.LiteralMap

flytekit.clis.helpers.parse_args_into_dict(input_arguments)[source]

Takes a tuple like (u’input_b=mystr’, u’input_c=18’) and returns a dictionary of input name to the original string value

Parameters

input_arguments (Tuple[Text]) –

Return type

dict[Text, Text]

flytekit.clis.helpers.str2bool(str)[source]

bool(‘False’) is True in Python, so we need to do some string parsing. Use the same words in ConfigParser :param Text str: :rtype: bool

Module contents