Menu
Introduction
Getting Started
Developer guide
Release
Architecture
CLI
Technical documentations
Version
Publication date

Mar 9, 2022

Confidentiality
Public
Reactions
1
Share

OutputSpec

Spec for an output task port

Attributes
human_name: str | Noneoptional: boolresource_types: listshort_description: str | Nonevalidators: list
Functions
__init__

summary

resource_types : type[gws_core.resource.resource.Resource] | collections.abc.Iterable[type[gws_core.resource.resource.Resource]]
_description_
optional : bool - False
tell that this output may return None or not being provided
is_optional : bool - False
Deprecated, use optional instead
sub_class : bool - False
When true, it tells that the resource_types are compatible with any child class of the provided resource type
constant : bool - False
When true, this tells the system that the output resource was not modified from the input resource and it does not need to create a new resource after the task
is_constant : bool - False
Deprecated, use constant instead
human_name : str | None
_description_
short_description : str | None
_description_
check_resource_types
constant_out
Return type : bool
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
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 : OutputSpec
Shine Logo
Technical bricks to reuse or customize

Have you developed a brick?

Share it to accelerate projects for the entire community.