koode-taskgraph 0.1.0__tar.gz → 0.2.0__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.
Files changed (32) hide show
  1. koode_taskgraph-0.2.0/LICENSE +21 -0
  2. {koode_taskgraph-0.1.0 → koode_taskgraph-0.2.0}/PKG-INFO +3 -1
  3. {koode_taskgraph-0.1.0 → koode_taskgraph-0.2.0}/README.md +11 -5
  4. {koode_taskgraph-0.1.0 → koode_taskgraph-0.2.0}/koode_taskgraph.egg-info/PKG-INFO +3 -1
  5. {koode_taskgraph-0.1.0 → koode_taskgraph-0.2.0}/koode_taskgraph.egg-info/SOURCES.txt +1 -0
  6. koode_taskgraph-0.2.0/koode_taskgraph.egg-info/entry_points.txt +3 -0
  7. {koode_taskgraph-0.1.0 → koode_taskgraph-0.2.0}/pyproject.toml +3 -3
  8. {koode_taskgraph-0.1.0 → koode_taskgraph-0.2.0}/taskgraph/cli.py +5 -5
  9. {koode_taskgraph-0.1.0 → koode_taskgraph-0.2.0}/tests/test_gui_plugins.py +42 -0
  10. koode_taskgraph-0.1.0/koode_taskgraph.egg-info/entry_points.txt +0 -3
  11. {koode_taskgraph-0.1.0 → koode_taskgraph-0.2.0}/koode_taskgraph.egg-info/dependency_links.txt +0 -0
  12. {koode_taskgraph-0.1.0 → koode_taskgraph-0.2.0}/koode_taskgraph.egg-info/requires.txt +0 -0
  13. {koode_taskgraph-0.1.0 → koode_taskgraph-0.2.0}/koode_taskgraph.egg-info/top_level.txt +0 -0
  14. {koode_taskgraph-0.1.0 → koode_taskgraph-0.2.0}/setup.cfg +0 -0
  15. {koode_taskgraph-0.1.0 → koode_taskgraph-0.2.0}/taskgraph/__init__.py +0 -0
  16. {koode_taskgraph-0.1.0 → koode_taskgraph-0.2.0}/taskgraph/__main__.py +0 -0
  17. {koode_taskgraph-0.1.0 → koode_taskgraph-0.2.0}/taskgraph/app.py +0 -0
  18. {koode_taskgraph-0.1.0 → koode_taskgraph-0.2.0}/taskgraph/core/__init__.py +0 -0
  19. {koode_taskgraph-0.1.0 → koode_taskgraph-0.2.0}/taskgraph/core/executor.py +0 -0
  20. {koode_taskgraph-0.1.0 → koode_taskgraph-0.2.0}/taskgraph/core/model.py +0 -0
  21. {koode_taskgraph-0.1.0 → koode_taskgraph-0.2.0}/taskgraph/core/registry.py +0 -0
  22. {koode_taskgraph-0.1.0 → koode_taskgraph-0.2.0}/taskgraph/core/serialization.py +0 -0
  23. {koode_taskgraph-0.1.0 → koode_taskgraph-0.2.0}/taskgraph/nodes/__init__.py +0 -0
  24. {koode_taskgraph-0.1.0 → koode_taskgraph-0.2.0}/taskgraph/nodes/builtin.py +0 -0
  25. {koode_taskgraph-0.1.0 → koode_taskgraph-0.2.0}/taskgraph/ui/__init__.py +0 -0
  26. {koode_taskgraph-0.1.0 → koode_taskgraph-0.2.0}/taskgraph/ui/items.py +0 -0
  27. {koode_taskgraph-0.1.0 → koode_taskgraph-0.2.0}/taskgraph/ui/main_window.py +0 -0
  28. {koode_taskgraph-0.1.0 → koode_taskgraph-0.2.0}/taskgraph/ui/plugins.py +0 -0
  29. {koode_taskgraph-0.1.0 → koode_taskgraph-0.2.0}/taskgraph/ui/properties.py +0 -0
  30. {koode_taskgraph-0.1.0 → koode_taskgraph-0.2.0}/taskgraph/ui/scene.py +0 -0
  31. {koode_taskgraph-0.1.0 → koode_taskgraph-0.2.0}/taskgraph/ui/theme.py +0 -0
  32. {koode_taskgraph-0.1.0 → koode_taskgraph-0.2.0}/tests/test_core.py +0 -0
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 koodelabs
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -1,7 +1,9 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: koode-taskgraph
3
- Version: 0.1.0
3
+ Version: 0.2.0
4
4
  Summary: An extensible process node graph built with QtPy and PySide6
5
5
  Requires-Python: >=3.10
6
+ License-File: LICENSE
6
7
  Requires-Dist: PySide6>=6.7
7
8
  Requires-Dist: QtPy>=2.4
9
+ Dynamic: license-file
@@ -3,13 +3,15 @@
3
3
  TaskGraph is a small, extensible process graph editor built from scratch with
4
4
  Python, QtPy, and PySide6.
5
5
 
6
+ ![Koode TaskGraph demo](images/demo-koode-taskgraph.png)
7
+
6
8
  ## Run
7
9
 
8
10
  ```bash
9
11
  python -m venv .venv
10
12
  source .venv/bin/activate
11
13
  python -m pip install koode-taskgraph
12
- taskgraph
14
+ koode-taskgraph
13
15
  ```
14
16
 
15
17
  For local development from this repository, use `python -m pip install -e .`.
@@ -19,13 +21,13 @@ For local development from this repository, use `python -m pip install -e .`.
19
21
  Execute a saved graph without starting Qt or opening a window:
20
22
 
21
23
  ```bash
22
- taskgraphcli --file /path/to/workflow.taskgraph
24
+ koode-taskgraph-cli --file /path/to/workflow.taskgraph
23
25
  ```
24
26
 
25
27
  Select the worker count and load external node locations when needed:
26
28
 
27
29
  ```bash
28
- taskgraphcli \
30
+ koode-taskgraph-cli \
29
31
  --file /path/to/workflow.taskgraph \
30
32
  --workers 8 \
31
33
  --node-path /path/to/custom_nodes
@@ -77,7 +79,7 @@ directories with the platform path separator (`:` on macOS/Linux and `;` on
77
79
  Windows):
78
80
 
79
81
  ```bash
80
- TASKGRAPH_NODE_PATH="/path/to/company_nodes:/path/to/my_nodes" taskgraph
82
+ TASKGRAPH_NODE_PATH="/path/to/company_nodes:/path/to/my_nodes" koode-taskgraph
81
83
  ```
82
84
 
83
85
  Files beginning with `_` are ignored. Importing a custom node module executes
@@ -129,9 +131,13 @@ TaskGraph reloads saved plugin locations automatically. Alternatively, set
129
131
  `TASKGRAPH_PLUGIN_PATH` before launching, using the same platform path
130
132
  separator rules as `TASKGRAPH_NODE_PATH`.
131
133
 
134
+ This repository includes minimal example plugins in `examples/gui_plugins`.
135
+ Load that directory, then run **Examples → Create Hello World Print Graph** or
136
+ **Examples → Create Bingooo Print Graph**.
137
+
132
138
  GUI plugins are intentionally separate from custom node locations. The
133
139
  headless CLI loads `TASKGRAPH_NODE_PATH` only, so UI plugin code can safely
134
- import Qt widgets without breaking `taskgraphcli`.
140
+ import Qt widgets without breaking `koode-taskgraph-cli`.
135
141
 
136
142
  ## Controls
137
143
 
@@ -1,7 +1,9 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: koode-taskgraph
3
- Version: 0.1.0
3
+ Version: 0.2.0
4
4
  Summary: An extensible process node graph built with QtPy and PySide6
5
5
  Requires-Python: >=3.10
6
+ License-File: LICENSE
6
7
  Requires-Dist: PySide6>=6.7
7
8
  Requires-Dist: QtPy>=2.4
9
+ Dynamic: license-file
@@ -1,3 +1,4 @@
1
+ LICENSE
1
2
  README.md
2
3
  pyproject.toml
3
4
  koode_taskgraph.egg-info/PKG-INFO
@@ -0,0 +1,3 @@
1
+ [console_scripts]
2
+ koode-taskgraph = taskgraph.app:main
3
+ koode-taskgraph-cli = taskgraph.cli:main
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "koode-taskgraph"
7
- version = "0.1.0"
7
+ version = "0.2.0"
8
8
  description = "An extensible process node graph built with QtPy and PySide6"
9
9
  requires-python = ">=3.10"
10
10
  dependencies = [
@@ -13,8 +13,8 @@ dependencies = [
13
13
  ]
14
14
 
15
15
  [project.scripts]
16
- taskgraph = "taskgraph.app:main"
17
- taskgraphcli = "taskgraph.cli:main"
16
+ koode-taskgraph = "taskgraph.app:main"
17
+ koode-taskgraph-cli = "taskgraph.cli:main"
18
18
 
19
19
  [tool.setuptools.packages.find]
20
20
  include = ["taskgraph*"]
@@ -35,7 +35,7 @@ def worker_count(value: str) -> int:
35
35
 
36
36
  def build_parser() -> argparse.ArgumentParser:
37
37
  parser = argparse.ArgumentParser(
38
- prog="taskgraphcli",
38
+ prog="koode-taskgraph-cli",
39
39
  description="Execute a TaskGraph file without starting the Qt UI.",
40
40
  )
41
41
  parser.add_argument(
@@ -65,7 +65,7 @@ def main(argv: list[str] | None = None) -> int:
65
65
  args = build_parser().parse_args(argv)
66
66
  graph_path = args.file.expanduser()
67
67
  if not graph_path.is_file():
68
- print(f"taskgraphcli: graph file not found: {graph_path}", file=sys.stderr)
68
+ print(f"koode-taskgraph-cli: graph file not found: {graph_path}", file=sys.stderr)
69
69
  return 2
70
70
 
71
71
  try:
@@ -79,7 +79,7 @@ def main(argv: list[str] | None = None) -> int:
79
79
  load_custom_node_directory(location)
80
80
  graph = load_graph(graph_path)
81
81
  except Exception as exc:
82
- print(f"taskgraphcli: could not load graph: {exc}", file=sys.stderr)
82
+ print(f"koode-taskgraph-cli: could not load graph: {exc}", file=sys.stderr)
83
83
  return 2
84
84
 
85
85
  cancel_event = Event()
@@ -101,10 +101,10 @@ def main(argv: list[str] | None = None) -> int:
101
101
  cancel_event=cancel_event,
102
102
  )
103
103
  except GraphExecutionCancelled as exc:
104
- print(f"taskgraphcli: {exc}", file=sys.stderr)
104
+ print(f"koode-taskgraph-cli: {exc}", file=sys.stderr)
105
105
  return 130
106
106
  except GraphExecutionError as exc:
107
- print(f"taskgraphcli: execution failed:\n{exc}", file=sys.stderr)
107
+ print(f"koode-taskgraph-cli: execution failed:\n{exc}", file=sys.stderr)
108
108
  return 1
109
109
  finally:
110
110
  signal.signal(signal.SIGINT, previous_handler)
@@ -8,9 +8,12 @@ os.environ.setdefault("QT_QPA_PLATFORM", "offscreen")
8
8
  from qtpy.QtWidgets import QApplication
9
9
 
10
10
  from taskgraph.nodes import load_builtin_nodes
11
+ from taskgraph.core.model import Graph
11
12
  from taskgraph.ui.main_window import MainWindow
12
13
  from taskgraph.ui.plugins import load_gui_plugin_directory
13
14
 
15
+ PROJECT_ROOT = Path(__file__).resolve().parents[1]
16
+
14
17
 
15
18
  class GuiPluginTests(unittest.TestCase):
16
19
  @classmethod
@@ -83,6 +86,45 @@ class GuiPluginTests(unittest.TestCase):
83
86
  self.assertEqual(len(backdrops), 1)
84
87
  self.assertEqual(backdrops[0].title, "Plugin Notes")
85
88
 
89
+ def test_example_print_plugins(self):
90
+ plugin_directory = PROJECT_ROOT / "examples" / "gui_plugins"
91
+ loaded = load_gui_plugin_directory(plugin_directory, self.window)
92
+ self.assertIn(plugin_directory / "hello_world_print.py", loaded)
93
+ self.assertIn(plugin_directory / "bingooo_print.py", loaded)
94
+
95
+ self._trigger_example_and_assert_graph(
96
+ action_text="Create Hello World Print Graph",
97
+ node_names=["Hello World Text", "Print Hello World"],
98
+ text_value="hello world",
99
+ )
100
+ self.window.scene.set_graph(Graph())
101
+ self.window.dirty = False
102
+ self._trigger_example_and_assert_graph(
103
+ action_text="Create Bingooo Print Graph",
104
+ node_names=["Bingooo Text", "Print Bingooo"],
105
+ text_value="Bingooo!!",
106
+ )
107
+
108
+ def _trigger_example_and_assert_graph(self, action_text, node_names, text_value):
109
+ examples_menu = self.window.menus["examples"]
110
+ actions = [
111
+ action for action in examples_menu.actions()
112
+ if action.text() == action_text
113
+ ]
114
+ self.assertEqual(len(actions), 1)
115
+ actions[0].trigger()
116
+
117
+ nodes = list(self.window.scene.graph.nodes.values())
118
+ self.assertEqual([node.display_name for node in nodes], node_names)
119
+ self.assertEqual(nodes[0].type_id, "input.text")
120
+ self.assertEqual(nodes[0].values["text"], text_value)
121
+ self.assertEqual(nodes[1].type_id, "output.print")
122
+ self.assertEqual(len(self.window.scene.graph.connections), 2)
123
+ self.assertEqual(
124
+ {connection.kind for connection in self.window.scene.graph.connections},
125
+ {"attribute", "dependency"},
126
+ )
127
+
86
128
 
87
129
  if __name__ == "__main__":
88
130
  unittest.main()
@@ -1,3 +0,0 @@
1
- [console_scripts]
2
- taskgraph = taskgraph.app:main
3
- taskgraphcli = taskgraph.cli:main