step of a pipeline.
Attributes
Name | Type | Description |
---|---|---|
step_id | uuid.UUID | id of pipeline step. |
step_type | StepType | step type. |
config | step configuration; request, script_config, model_config, ... | |
inputs | list of wizata_dsapi.PipelineIO | |
outputs | list of wizata_dsapi.PipelineIO |
Methods
api_id()
return current object id on Web API format.
endpoint()
return endpoint name used to contact backend.
from_json()
load the object from a dict originating of a JSON format.
Name | Type | Default | Description |
---|---|---|---|
obj | object to load information from. |
get_input()
get input dict based on value name.
Name | Type | Default | Description |
---|---|---|---|
name | str | value name to find. |
return: input dict
get_inputs()
get list of inputs, verified and transformed as PipelineIO
return: list of PipelineIO
get_output()
get output dict based on value name.
Name | Type | Default | Description |
---|---|---|---|
name | str | value name to find. |
return: input dict
get_outputs()
get list of inputs, verified and transformed as PipelineIO
return: list of PipelineIO
get_unique_input()
verify pipeline step as only one input and returns it, raise an error otherwise.
get_unique_output()
verify pipeline step as only one output and returns it, raise an error otherwise.
inputs_names()
get a list str representing inputs names
Name | Type | Default | Description |
---|---|---|---|
f_type | str | None | filter on a type |
return: list str
outputs_names()
get a list str representing outputs names
Name | Type | Default | Description |
---|---|---|---|
f_type | str | None | filter on a type |
return: list str
set_id()
specify the id_value neutrally
Name | Type | Default | Description |
---|---|---|---|
id_value |
return:
to_json()
transform current object into a dict that could be JSONIFY.
Name | Type | Default | Description |
---|---|---|---|
target | str | None |
return: dumpable dict.