Добавил модули
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
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
|
||||
Reference in New Issue
Block a user