flowweave 2.0.0__tar.gz → 2.0.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: flowweave
3
- Version: 2.0.0
3
+ Version: 2.0.1
4
4
  Summary: YAML-based workflow runner for task orchestration
5
5
  Author: syatch
6
6
  License: MIT
@@ -1,4 +1,4 @@
1
- __version__ = "2.0.0"
1
+ __version__ = "2.0.1"
2
2
  __author__ = "syatch"
3
3
  __license__ = "MIT"
4
4
 
@@ -23,9 +23,9 @@ def serialize(obj) -> str:
23
23
  return obj.__name__
24
24
  raise TypeError(f"Type {type(obj)} not serializable")
25
25
 
26
- def show_flow_op(setting_path: str, flow_name: str) -> None:
26
+ def show_flow_op(setting_path: str, flow_name: str, info: bool = False) -> None:
27
27
  flow_data = FlowWeave.load_and_validate_schema(file=setting_path, schema="flow")
28
- op_dic = FlowWeave.get_op_dic(flow_data)
28
+ op_dic = FlowWeave.get_op_dic(flow_data, info=info)
29
29
  print_op_dic(op_dic, flow_name)
30
30
 
31
31
  def show_available_op() -> None:
@@ -75,7 +75,7 @@ def main() -> None:
75
75
  result = all(x == Result.SUCCESS for x in results)
76
76
  elif args.command == "info":
77
77
  if args.flow_file:
78
- show_flow_op(setting_path, args.flow_file)
78
+ show_flow_op(setting_path, args.flow_file, info=True)
79
79
  else:
80
80
  show_available_op()
81
81
  else:
@@ -171,7 +171,7 @@ class FlowWeave():
171
171
 
172
172
  return data
173
173
 
174
- def get_op_dic(flow_data: dict):
174
+ def get_op_dic(flow_data: dict, info: bool = False):
175
175
  return_dic = dict()
176
176
 
177
177
  op_source = flow_data.get("op_source")
@@ -179,7 +179,7 @@ class FlowWeave():
179
179
  for source in op_source_list:
180
180
  source_name = f"task/{source}"
181
181
  setting_file = f"{source_name.replace('.', '/')}/op_code.yml"
182
- return_dic |= FlowWeave._get_op_dic_from_setting_file(setting_file)
182
+ return_dic |= FlowWeave._get_op_dic_from_setting_file(setting_file, info=info)
183
183
 
184
184
  return return_dic
185
185
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: flowweave
3
- Version: 2.0.0
3
+ Version: 2.0.1
4
4
  Summary: YAML-based workflow runner for task orchestration
5
5
  Author: syatch
6
6
  License: MIT
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "flowweave"
3
- version = "2.0.0"
3
+ version = "2.0.1"
4
4
  description = "YAML-based workflow runner for task orchestration"
5
5
  authors = [{name = "syatch"}]
6
6
  readme = "README.md"
File without changes
File without changes
File without changes
File without changes