InputSpec
Spec for an input task port
Attributes
human_name: Optionalis_optional: boolresource_types: Listshort_description: Optionalvalidators: ListFunctions
__init__
Initialize the IOSpec with resource types and optional parameters.
resource_types :
Union _description_
is_optional :
bool - False this input might not be connected to another task output and the task will still be executed.
If the input is connected, the system will wait for the input to be provided before running the task.
Also tells that None value is allowed as input.
human_name :
Optional _description_
short_description :
Optional _description_
check_resource_types
get_default_resource_type
return the first default type
Return type :
Type get_resource_type_tuples
Return type :
Tuple get_resources_human_names
Return type :
str is_compatible_with_in_spec
in_spec :
IOSpec Return type :
bool is_compatible_with_resource_type
resource_type :
Type Return type :
bool is_compatible_with_resource_types
return True if one of the resource_types is compatible with the this spec
resource_types :
Iterable Return type :
bool is_constant_out
Return type :
bool is_subclass_out
Return type :
bool to_dto
Return type :
IOSpecDTO validate_resource
Validate a resource with the validators
resource :
Resource from_dto @classmethod
dto :
IOSpecDTO Return type :
IOSpec