22 lines
665 B
Python
22 lines
665 B
Python
from modules.pipelines.pipes.pipe_base import ToString
|
|
from modules.handlers.base.handler_base import HandlerBase
|
|
|
|
class GetPipes(HandlerBase):
|
|
def __init__(self):
|
|
super().__init__("get_pipes")
|
|
|
|
def do(self, context, parameters):
|
|
result = []
|
|
|
|
for pipe_name, pipe in context.pipe_manager.pipes.items():
|
|
item = {
|
|
"name": pipe.name,
|
|
"description": pipe.description,
|
|
"input_data_type": ToString(pipe.input_data_type),
|
|
"output_data_type": ToString(pipe.output_data_type)
|
|
}
|
|
|
|
result.append(item)
|
|
|
|
return result
|