robotframework-mind 0.1.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.
- robotframework_mind-0.1.1/NOTICE +9 -0
- robotframework_mind-0.1.1/PKG-INFO +123 -0
- robotframework_mind-0.1.1/README.md +109 -0
- robotframework_mind-0.1.1/pyproject.toml +28 -0
- robotframework_mind-0.1.1/robot_mind.py +442 -0
- robotframework_mind-0.1.1/robot_mind_app/__init__.py +2 -0
- robotframework_mind-0.1.1/robot_mind_app/__main__.py +105 -0
- robotframework_mind-0.1.1/robot_mind_app/community_panel.py +106 -0
- robotframework_mind-0.1.1/robot_mind_app/editors.py +59 -0
- robotframework_mind-0.1.1/robot_mind_app/engine.py +24 -0
- robotframework_mind-0.1.1/robot_mind_app/folders.py +52 -0
- robotframework_mind-0.1.1/robot_mind_app/graph.py +140 -0
- robotframework_mind-0.1.1/robot_mind_app/graph_layout.py +97 -0
- robotframework_mind-0.1.1/robot_mind_app/graph_view.py +244 -0
- robotframework_mind-0.1.1/robot_mind_app/icons.py +141 -0
- robotframework_mind-0.1.1/robot_mind_app/lucide.py +71 -0
- robotframework_mind-0.1.1/robot_mind_app/settings.py +84 -0
- robotframework_mind-0.1.1/robot_mind_app/theme.py +204 -0
- robotframework_mind-0.1.1/robot_mind_app/widgets.py +157 -0
- robotframework_mind-0.1.1/robot_mind_app/window.py +621 -0
- robotframework_mind-0.1.1/robot_mind_app/worker.py +100 -0
- robotframework_mind-0.1.1/robotframework_mind.egg-info/PKG-INFO +123 -0
- robotframework_mind-0.1.1/robotframework_mind.egg-info/SOURCES.txt +32 -0
- robotframework_mind-0.1.1/robotframework_mind.egg-info/dependency_links.txt +1 -0
- robotframework_mind-0.1.1/robotframework_mind.egg-info/entry_points.txt +2 -0
- robotframework_mind-0.1.1/robotframework_mind.egg-info/requires.txt +7 -0
- robotframework_mind-0.1.1/robotframework_mind.egg-info/top_level.txt +2 -0
- robotframework_mind-0.1.1/setup.cfg +4 -0
- robotframework_mind-0.1.1/tests/test_editors.py +27 -0
- robotframework_mind-0.1.1/tests/test_graph.py +106 -0
- robotframework_mind-0.1.1/tests/test_graph_layout.py +75 -0
- robotframework_mind-0.1.1/tests/test_query.py +45 -0
- robotframework_mind-0.1.1/tests/test_ui.py +353 -0
- robotframework_mind-0.1.1/tests/test_where.py +202 -0
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
robotframework-mind
|
|
2
|
+
|
|
3
|
+
Inspired by graphify (https://github.com/Graphify-Labs/graphify),
|
|
4
|
+
Copyright (c) 2026 Safi Shamsi, licensed under the Apache License 2.0.
|
|
5
|
+
|
|
6
|
+
The Robot Framework parsing approach (robot.api ModelVisitor over the
|
|
7
|
+
suite and resource models, keyword names normalized case-, space- and
|
|
8
|
+
underscore-insensitively) follows graphify's extractors/robot.py.
|
|
9
|
+
No source code from graphify is included in this repository.
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: robotframework-mind
|
|
3
|
+
Version: 0.1.1
|
|
4
|
+
Summary: Exact lookups over a Robot Framework test repo: CLI and desktop UI
|
|
5
|
+
Requires-Python: >=3.10
|
|
6
|
+
Description-Content-Type: text/markdown
|
|
7
|
+
License-File: NOTICE
|
|
8
|
+
Requires-Dist: robotframework>=7
|
|
9
|
+
Provides-Extra: gui
|
|
10
|
+
Requires-Dist: PySide6-Essentials>=6.12.0; extra == "gui"
|
|
11
|
+
Provides-Extra: dev
|
|
12
|
+
Requires-Dist: pytest>=9; extra == "dev"
|
|
13
|
+
Dynamic: license-file
|
|
14
|
+
|
|
15
|
+
# robotframework-mind
|
|
16
|
+
|
|
17
|
+
Exact lookups over a Robot Framework test repo, for people and scripts. Ask
|
|
18
|
+
which tests cover a ticket, who calls a keyword or where an endpoint is used,
|
|
19
|
+
and get one line per hit with its `file:line` instead of reading whole suites.
|
|
20
|
+
|
|
21
|
+
It indexes:
|
|
22
|
+
|
|
23
|
+
- tests: name, tags (`bug:PROJ-123`, `role:...`, `op:GET /api/...`), first doc line, keyword calls
|
|
24
|
+
- user keywords: name, arguments, first doc line, calls, variables used
|
|
25
|
+
- variables from `*** Variables ***` and inline `VAR` statements, with their values
|
|
26
|
+
- suite and test setup/teardown calls
|
|
27
|
+
- JSON files under `docs/`, one entry per object key
|
|
28
|
+
|
|
29
|
+
## Requirements
|
|
30
|
+
|
|
31
|
+
Python 3.10+ and `robotframework` (the repo's own venv already has it). No
|
|
32
|
+
other packages.
|
|
33
|
+
|
|
34
|
+
## Run
|
|
35
|
+
|
|
36
|
+
From the test repo's venv:
|
|
37
|
+
|
|
38
|
+
```bash
|
|
39
|
+
python path/to/robot_mind.py --root <repo> ticket PROJ-123
|
|
40
|
+
python path/to/robot_mind.py --root <repo> kw "Open Profile Browser"
|
|
41
|
+
python path/to/robot_mind.py --root <repo> callers "Open Profile Browser"
|
|
42
|
+
python path/to/robot_mind.py --root <repo> tag role:role_quality_control
|
|
43
|
+
python path/to/robot_mind.py --root <repo> find /api/items/query
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
| Command | Returns |
|
|
47
|
+
|---|---|
|
|
48
|
+
| `ticket KEY` | tests and keywords whose tags, name or doc mention the key |
|
|
49
|
+
| `kw NAME` | every definition, matched the way Robot matches names (case, spaces and underscores ignored) |
|
|
50
|
+
| `callers NAME` | each call site: keyword, test or suite fixture, at the call line; falls back to substring when no exact name matches |
|
|
51
|
+
| `tag TAG` | tests with that tag; `role:*` matches a prefix |
|
|
52
|
+
| `find TEXT` | names, tags, docs, args, values and JSON entries containing the text, then the keywords that use a matching variable |
|
|
53
|
+
|
|
54
|
+
`--limit N` caps the lines (default 20). No hit prints `no match`. `--json`
|
|
55
|
+
prints the hits as a JSON array (each with `kind`, `name`, `file`, `line`; a
|
|
56
|
+
`callers` hit also carries `call_line`).
|
|
57
|
+
|
|
58
|
+
## Desktop app
|
|
59
|
+
|
|
60
|
+
The same lookups in a window. Pick a repo (or a folder that holds several),
|
|
61
|
+
choose what to search for, and get the hits as a table or as a graph of what
|
|
62
|
+
they call, use and hit. Open takes you to the file at the line in your editor.
|
|
63
|
+
|
|
64
|
+

|
|
65
|
+
|
|
66
|
+

|
|
67
|
+
|
|
68
|
+
Download a build from the releases page, or run it from source:
|
|
69
|
+
|
|
70
|
+
```bash
|
|
71
|
+
pip install -e .[gui]
|
|
72
|
+
python -m robot_mind_app
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
## How it compares
|
|
76
|
+
|
|
77
|
+
Five questions on a real API test repo (553 Robot and JSON files, 9,930
|
|
78
|
+
indexed entries), answered three ways: this tool, a plain `grep -rn` over the
|
|
79
|
+
same files, and graphify 0.9.102 (`graphify update`, then `graphify query`
|
|
80
|
+
with the question in words). Sizes are characters of output; "files" is how
|
|
81
|
+
many of the files that hold the answer the output names.
|
|
82
|
+
|
|
83
|
+
| Question | robotframework-mind | grep | grep, then open the matched files | graphify query |
|
|
84
|
+
|---|---|---|---|---|
|
|
85
|
+
| tests for a ticket (7 hits in 2 files) | 1,570 chars, 2 of 2 files | 2,181, 2 of 2 | 18,611 | 17,328, 0 of 2 |
|
|
86
|
+
| where a keyword is defined (1) | 167, 1 of 1 | 3,290, 1 of 1 | 346,452 | 6,804, 1 of 1 |
|
|
87
|
+
| who calls that keyword (30 calls in 10 files) | 3,411, 10 of 10 | 3,290, 10 of 10 | 346,452 | 6,802, 3 of 10 |
|
|
88
|
+
| tests with a tag (60 in 27 files) | 41,107, 27 of 27 | 38,363, 27 of 27 | 136,226 | 6,704, 0 of 27 |
|
|
89
|
+
| where an endpoint is used (8 in 6 files) | 2,879, 6 of 6 | 1,935, 6 of 6 | 2,642,809 | 6,838, 0 of 6 |
|
|
90
|
+
|
|
91
|
+
grep finds the same files and its matched lines are about as short, but a
|
|
92
|
+
matched line is the tag or the call, not the test or keyword around it, so
|
|
93
|
+
the next step is opening the files: that is the third column. graphify's
|
|
94
|
+
`explain` does better on keywords (all 10 caller files in 3,564 characters)
|
|
95
|
+
but found nothing for the ticket, the tag or the endpoint.
|
|
96
|
+
|
|
97
|
+
Building the index took 2.3 s the first time and 0.25 s after that; the
|
|
98
|
+
graphify build of the same repo took 44.9 s.
|
|
99
|
+
|
|
100
|
+
## How it stays current
|
|
101
|
+
|
|
102
|
+
The index lives in `~/.cache/robotframework-mind/`, one file per repo, never
|
|
103
|
+
in the repo. Each call compares file times and sizes and parses only changed
|
|
104
|
+
files. It reads each `.gitignore` on the way down (and `.git/info/exclude`)
|
|
105
|
+
itself, without calling git, so ignored probes and results stay out; a nested
|
|
106
|
+
repo follows only its own rules. Hidden folders, `node_modules`, `results` and
|
|
107
|
+
virtualenvs are skipped too. A file git tracks but a rule ignores is left out
|
|
108
|
+
as well. Files over the size cap are skipped: 5 MB for `docs/` JSON, 50 MB for
|
|
109
|
+
`.robot` and `.resource`.
|
|
110
|
+
|
|
111
|
+
## Tests
|
|
112
|
+
|
|
113
|
+
```bash
|
|
114
|
+
python -m unittest tests.test_where
|
|
115
|
+
```
|
|
116
|
+
|
|
117
|
+
## Credits
|
|
118
|
+
|
|
119
|
+
The parsing approach follows the Robot Framework extractor in
|
|
120
|
+
[graphify](https://github.com/Graphify-Labs/graphify) by Safi Shamsi
|
|
121
|
+
(Apache-2.0): Robot's own `robot.api` parser with a `ModelVisitor`, and
|
|
122
|
+
keyword names normalized the way Robot resolves them. No graphify code is
|
|
123
|
+
copied. See `NOTICE`.
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
# robotframework-mind
|
|
2
|
+
|
|
3
|
+
Exact lookups over a Robot Framework test repo, for people and scripts. Ask
|
|
4
|
+
which tests cover a ticket, who calls a keyword or where an endpoint is used,
|
|
5
|
+
and get one line per hit with its `file:line` instead of reading whole suites.
|
|
6
|
+
|
|
7
|
+
It indexes:
|
|
8
|
+
|
|
9
|
+
- tests: name, tags (`bug:PROJ-123`, `role:...`, `op:GET /api/...`), first doc line, keyword calls
|
|
10
|
+
- user keywords: name, arguments, first doc line, calls, variables used
|
|
11
|
+
- variables from `*** Variables ***` and inline `VAR` statements, with their values
|
|
12
|
+
- suite and test setup/teardown calls
|
|
13
|
+
- JSON files under `docs/`, one entry per object key
|
|
14
|
+
|
|
15
|
+
## Requirements
|
|
16
|
+
|
|
17
|
+
Python 3.10+ and `robotframework` (the repo's own venv already has it). No
|
|
18
|
+
other packages.
|
|
19
|
+
|
|
20
|
+
## Run
|
|
21
|
+
|
|
22
|
+
From the test repo's venv:
|
|
23
|
+
|
|
24
|
+
```bash
|
|
25
|
+
python path/to/robot_mind.py --root <repo> ticket PROJ-123
|
|
26
|
+
python path/to/robot_mind.py --root <repo> kw "Open Profile Browser"
|
|
27
|
+
python path/to/robot_mind.py --root <repo> callers "Open Profile Browser"
|
|
28
|
+
python path/to/robot_mind.py --root <repo> tag role:role_quality_control
|
|
29
|
+
python path/to/robot_mind.py --root <repo> find /api/items/query
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
| Command | Returns |
|
|
33
|
+
|---|---|
|
|
34
|
+
| `ticket KEY` | tests and keywords whose tags, name or doc mention the key |
|
|
35
|
+
| `kw NAME` | every definition, matched the way Robot matches names (case, spaces and underscores ignored) |
|
|
36
|
+
| `callers NAME` | each call site: keyword, test or suite fixture, at the call line; falls back to substring when no exact name matches |
|
|
37
|
+
| `tag TAG` | tests with that tag; `role:*` matches a prefix |
|
|
38
|
+
| `find TEXT` | names, tags, docs, args, values and JSON entries containing the text, then the keywords that use a matching variable |
|
|
39
|
+
|
|
40
|
+
`--limit N` caps the lines (default 20). No hit prints `no match`. `--json`
|
|
41
|
+
prints the hits as a JSON array (each with `kind`, `name`, `file`, `line`; a
|
|
42
|
+
`callers` hit also carries `call_line`).
|
|
43
|
+
|
|
44
|
+
## Desktop app
|
|
45
|
+
|
|
46
|
+
The same lookups in a window. Pick a repo (or a folder that holds several),
|
|
47
|
+
choose what to search for, and get the hits as a table or as a graph of what
|
|
48
|
+
they call, use and hit. Open takes you to the file at the line in your editor.
|
|
49
|
+
|
|
50
|
+

|
|
51
|
+
|
|
52
|
+

|
|
53
|
+
|
|
54
|
+
Download a build from the releases page, or run it from source:
|
|
55
|
+
|
|
56
|
+
```bash
|
|
57
|
+
pip install -e .[gui]
|
|
58
|
+
python -m robot_mind_app
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
## How it compares
|
|
62
|
+
|
|
63
|
+
Five questions on a real API test repo (553 Robot and JSON files, 9,930
|
|
64
|
+
indexed entries), answered three ways: this tool, a plain `grep -rn` over the
|
|
65
|
+
same files, and graphify 0.9.102 (`graphify update`, then `graphify query`
|
|
66
|
+
with the question in words). Sizes are characters of output; "files" is how
|
|
67
|
+
many of the files that hold the answer the output names.
|
|
68
|
+
|
|
69
|
+
| Question | robotframework-mind | grep | grep, then open the matched files | graphify query |
|
|
70
|
+
|---|---|---|---|---|
|
|
71
|
+
| tests for a ticket (7 hits in 2 files) | 1,570 chars, 2 of 2 files | 2,181, 2 of 2 | 18,611 | 17,328, 0 of 2 |
|
|
72
|
+
| where a keyword is defined (1) | 167, 1 of 1 | 3,290, 1 of 1 | 346,452 | 6,804, 1 of 1 |
|
|
73
|
+
| who calls that keyword (30 calls in 10 files) | 3,411, 10 of 10 | 3,290, 10 of 10 | 346,452 | 6,802, 3 of 10 |
|
|
74
|
+
| tests with a tag (60 in 27 files) | 41,107, 27 of 27 | 38,363, 27 of 27 | 136,226 | 6,704, 0 of 27 |
|
|
75
|
+
| where an endpoint is used (8 in 6 files) | 2,879, 6 of 6 | 1,935, 6 of 6 | 2,642,809 | 6,838, 0 of 6 |
|
|
76
|
+
|
|
77
|
+
grep finds the same files and its matched lines are about as short, but a
|
|
78
|
+
matched line is the tag or the call, not the test or keyword around it, so
|
|
79
|
+
the next step is opening the files: that is the third column. graphify's
|
|
80
|
+
`explain` does better on keywords (all 10 caller files in 3,564 characters)
|
|
81
|
+
but found nothing for the ticket, the tag or the endpoint.
|
|
82
|
+
|
|
83
|
+
Building the index took 2.3 s the first time and 0.25 s after that; the
|
|
84
|
+
graphify build of the same repo took 44.9 s.
|
|
85
|
+
|
|
86
|
+
## How it stays current
|
|
87
|
+
|
|
88
|
+
The index lives in `~/.cache/robotframework-mind/`, one file per repo, never
|
|
89
|
+
in the repo. Each call compares file times and sizes and parses only changed
|
|
90
|
+
files. It reads each `.gitignore` on the way down (and `.git/info/exclude`)
|
|
91
|
+
itself, without calling git, so ignored probes and results stay out; a nested
|
|
92
|
+
repo follows only its own rules. Hidden folders, `node_modules`, `results` and
|
|
93
|
+
virtualenvs are skipped too. A file git tracks but a rule ignores is left out
|
|
94
|
+
as well. Files over the size cap are skipped: 5 MB for `docs/` JSON, 50 MB for
|
|
95
|
+
`.robot` and `.resource`.
|
|
96
|
+
|
|
97
|
+
## Tests
|
|
98
|
+
|
|
99
|
+
```bash
|
|
100
|
+
python -m unittest tests.test_where
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
## Credits
|
|
104
|
+
|
|
105
|
+
The parsing approach follows the Robot Framework extractor in
|
|
106
|
+
[graphify](https://github.com/Graphify-Labs/graphify) by Safi Shamsi
|
|
107
|
+
(Apache-2.0): Robot's own `robot.api` parser with a `ModelVisitor`, and
|
|
108
|
+
keyword names normalized the way Robot resolves them. No graphify code is
|
|
109
|
+
copied. See `NOTICE`.
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["setuptools>=80"]
|
|
3
|
+
build-backend = "setuptools.build_meta"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "robotframework-mind"
|
|
7
|
+
dynamic = ["version"]
|
|
8
|
+
description = "Exact lookups over a Robot Framework test repo: CLI and desktop UI"
|
|
9
|
+
readme = "README.md"
|
|
10
|
+
requires-python = ">=3.10"
|
|
11
|
+
dependencies = ["robotframework>=7"]
|
|
12
|
+
|
|
13
|
+
[project.optional-dependencies]
|
|
14
|
+
gui = ["PySide6-Essentials>=6.12.0"]
|
|
15
|
+
dev = ["pytest>=9"]
|
|
16
|
+
|
|
17
|
+
[project.gui-scripts]
|
|
18
|
+
robot-mind-gui = "robot_mind_app.__main__:main"
|
|
19
|
+
|
|
20
|
+
[tool.setuptools.dynamic]
|
|
21
|
+
version = { attr = "robot_mind_app.__version__" }
|
|
22
|
+
|
|
23
|
+
[tool.setuptools]
|
|
24
|
+
py-modules = ["robot_mind"]
|
|
25
|
+
packages = ["robot_mind_app"]
|
|
26
|
+
|
|
27
|
+
[tool.pytest.ini_options]
|
|
28
|
+
testpaths = ["tests"]
|