lib-explorer 1.1.0__tar.gz → 1.1.2__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. lib_explorer-1.1.2/PKG-INFO +164 -0
  2. lib_explorer-1.1.2/README.md +123 -0
  3. lib_explorer-1.1.2/lib_explorer.egg-info/PKG-INFO +164 -0
  4. {lib_explorer-1.1.0 → lib_explorer-1.1.2}/lib_explorer.egg-info/SOURCES.txt +10 -1
  5. {lib_explorer-1.1.0 → lib_explorer-1.1.2}/lib_explorer.egg-info/requires.txt +2 -0
  6. {lib_explorer-1.1.0 → lib_explorer-1.1.2}/pyproject.toml +3 -1
  7. lib_explorer-1.1.2/rf_explorer/__init__.py +7 -0
  8. lib_explorer-1.1.2/rf_explorer/audit/__init__.py +1 -0
  9. lib_explorer-1.1.2/rf_explorer/audit/cli.py +92 -0
  10. lib_explorer-1.1.2/rf_explorer/audit/core.py +30 -0
  11. lib_explorer-1.1.2/rf_explorer/audit/exporters/__init__.py +5 -0
  12. lib_explorer-1.1.2/rf_explorer/audit/exporters/excel.py +113 -0
  13. lib_explorer-1.1.2/rf_explorer/audit/exporters/html.py +544 -0
  14. lib_explorer-1.1.2/rf_explorer/audit/exporters/json.py +38 -0
  15. lib_explorer-1.1.2/rf_explorer/audit/scanner/__init__.py +3 -0
  16. lib_explorer-1.1.2/rf_explorer/audit/scanner/project_scanners.py +228 -0
  17. {lib_explorer-1.1.0 → lib_explorer-1.1.2}/rf_explorer/cli.py +17 -14
  18. {lib_explorer-1.1.0 → lib_explorer-1.1.2}/rf_explorer/scanner.py +45 -22
  19. {lib_explorer-1.1.0 → lib_explorer-1.1.2}/rf_explorer/utils.py +10 -15
  20. lib_explorer-1.1.0/PKG-INFO +0 -84
  21. lib_explorer-1.1.0/README.md +0 -46
  22. lib_explorer-1.1.0/lib_explorer.egg-info/PKG-INFO +0 -84
  23. lib_explorer-1.1.0/rf_explorer/__init__.py +0 -7
  24. {lib_explorer-1.1.0 → lib_explorer-1.1.2}/LICENSE +0 -0
  25. {lib_explorer-1.1.0 → lib_explorer-1.1.2}/lib_explorer.egg-info/dependency_links.txt +0 -0
  26. {lib_explorer-1.1.0 → lib_explorer-1.1.2}/lib_explorer.egg-info/entry_points.txt +0 -0
  27. {lib_explorer-1.1.0 → lib_explorer-1.1.2}/lib_explorer.egg-info/top_level.txt +0 -0
  28. {lib_explorer-1.1.0 → lib_explorer-1.1.2}/rf_explorer/core.py +0 -0
  29. {lib_explorer-1.1.0 → lib_explorer-1.1.2}/rf_explorer/python_doc.py +0 -0
  30. {lib_explorer-1.1.0 → lib_explorer-1.1.2}/rf_explorer/rf_doc_show.py +0 -0
  31. {lib_explorer-1.1.0 → lib_explorer-1.1.2}/rf_explorer/robot_doc.py +0 -0
  32. {lib_explorer-1.1.0 → lib_explorer-1.1.2}/setup.cfg +0 -0
@@ -0,0 +1,164 @@
1
+ Metadata-Version: 2.4
2
+ Name: lib-explorer
3
+ Version: 1.1.2
4
+ Summary: A CLI tool for exploring Python modules and Robot Framework libraries
5
+ Author: Khaled LIMAM
6
+ License: MIT License
7
+
8
+ Copyright (c) 2026 Khaled
9
+
10
+ Permission is hereby granted, free of charge, to any person obtaining a copy
11
+ of this software and associated documentation files (the “Software”), to deal
12
+ in the Software without restriction, including without limitation the rights
13
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
14
+ copies of the Software, and to permit persons to whom the Software is
15
+ furnished to do so, subject to the following conditions:
16
+
17
+ The above copyright notice and this permission notice shall be included in
18
+ all copies or substantial portions of the Software.
19
+
20
+ THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
21
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
22
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
23
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
24
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
25
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
26
+ THE SOFTWARE.
27
+ Project-URL: Homepage, https://github.com/khaledlim/rf-explorer
28
+ Project-URL: Source, https://github.com/khaledlim/rf-explorer
29
+ Project-URL: Issues, https://github.com/khaledlim/rf-explorer/issues
30
+ Keywords: robotframework,documentation,interactive,cli,python
31
+ Requires-Python: >=3.9
32
+ Description-Content-Type: text/markdown
33
+ License-File: LICENSE
34
+ Requires-Dist: rich>=13.0
35
+ Requires-Dist: InquirerPy>=0.3.4
36
+ Requires-Dist: robotframework>=6.0
37
+ Requires-Dist: Pygments>=2.15
38
+ Requires-Dist: openpyxl>=3.0
39
+ Requires-Dist: PyYAML>=6.0
40
+ Dynamic: license-file
41
+
42
+ # RF Explorer
43
+
44
+ ![Python Version](https://img.shields.io/badge/python-3.9%2B-blue)
45
+ ![License](https://img.shields.io/badge/license-MIT-green)
46
+ ![Status](https://img.shields.io/badge/status-stable-brightgreen)
47
+
48
+ PyPI: https://pypi.org/project/lib-explorer/
49
+ GitHub: https://github.com/khaledlim/rf-explorer
50
+
51
+ RF Explorer is an interactive command-line tool to explore Python modules and Robot Framework libraries.
52
+ It renders readable, syntax-highlighted documentation directly in the terminal using Rich.
53
+
54
+ ## Audit Report Preview
55
+
56
+ ![RF Explorer Audit Report Preview](docs/images/audit-report-preview.png)
57
+
58
+ ## Highlights
59
+
60
+ - Interactive terminal mode (menu-driven UI with InquirerPy)
61
+ - Direct CLI mode for quick commands
62
+ - Python module exploration: functions, classes, methods, and docstrings
63
+ - Robot Framework library exploration: keywords, arguments, documentation, and examples
64
+ - Installed package listing with filtering
65
+ - Environment scan (Python, Robot Framework, or full)
66
+ - Global Robot keyword search
67
+
68
+ ## Installation
69
+
70
+ ```bash
71
+ pip install lib-explorer
72
+ ```
73
+
74
+ ## Quick Start
75
+
76
+ ```bash
77
+ # Interactive mode
78
+ rf-explorer
79
+
80
+ # Help and version
81
+ rf-explorer --help
82
+ rf-explorer --version
83
+ ```
84
+
85
+ ## CLI Usage
86
+
87
+ ```text
88
+ rf-explorer
89
+ rf-explorer --help
90
+ rf-explorer --version
91
+
92
+ rf-explorer python <module> [regex|--all]
93
+ rf-explorer robot <library> [regex|--all]
94
+
95
+ rf-explorer --list
96
+ rf-explorer --list --filter <text>
97
+
98
+ rf-explorer --scan robot
99
+ rf-explorer --scan python
100
+ rf-explorer --scan --all
101
+
102
+ rf-explorer --search <keyword-or-regex>
103
+
104
+ rf-explorer audit --path <folder-path> --all
105
+ rf-explorer audit --path <folder-path> --all --export-html report.html
106
+ rf-explorer audit --path <folder-path> --tests --keywords --variables
107
+
108
+ ```
109
+
110
+ ## Examples
111
+
112
+ ### Explore a Python module
113
+
114
+ ```bash
115
+ rf-explorer python requests
116
+ rf-explorer python requests get
117
+ rf-explorer python requests --all
118
+ ```
119
+
120
+ ### Explore a Robot Framework library
121
+
122
+ ```bash
123
+ rf-explorer robot JSONLibrary
124
+ rf-explorer robot JSONLibrary Convert
125
+ rf-explorer robot JSONLibrary --all
126
+ ```
127
+
128
+ ### List installed packages
129
+
130
+ ```bash
131
+ rf-explorer --list
132
+ rf-explorer --list --filter py
133
+ ```
134
+
135
+ ### Scan environment
136
+
137
+ ```bash
138
+ rf-explorer --scan robot
139
+ rf-explorer --scan python
140
+ rf-explorer --scan --all
141
+ ```
142
+
143
+ ### Search Robot keywords globally
144
+
145
+ ```bash
146
+ rf-explorer --search browser
147
+ ```
148
+
149
+ ### Audit Robot project content
150
+
151
+ ```bash
152
+ rf-explorer audit --path <folder-path> --all --export-html report.html
153
+ rf-explorer audit --path <folder-path> --all --export-json audit.json
154
+ rf-explorer audit --path <folder-path> --all --export-excell export.xlsx
155
+ ```
156
+
157
+ ## Notes
158
+
159
+ - Requires Python 3.9+
160
+ - Works best in a terminal that supports colors
161
+
162
+ ## License
163
+
164
+ MIT (see LICENSE)
@@ -0,0 +1,123 @@
1
+ # RF Explorer
2
+
3
+ ![Python Version](https://img.shields.io/badge/python-3.9%2B-blue)
4
+ ![License](https://img.shields.io/badge/license-MIT-green)
5
+ ![Status](https://img.shields.io/badge/status-stable-brightgreen)
6
+
7
+ PyPI: https://pypi.org/project/lib-explorer/
8
+ GitHub: https://github.com/khaledlim/rf-explorer
9
+
10
+ RF Explorer is an interactive command-line tool to explore Python modules and Robot Framework libraries.
11
+ It renders readable, syntax-highlighted documentation directly in the terminal using Rich.
12
+
13
+ ## Audit Report Preview
14
+
15
+ ![RF Explorer Audit Report Preview](docs/images/audit-report-preview.png)
16
+
17
+ ## Highlights
18
+
19
+ - Interactive terminal mode (menu-driven UI with InquirerPy)
20
+ - Direct CLI mode for quick commands
21
+ - Python module exploration: functions, classes, methods, and docstrings
22
+ - Robot Framework library exploration: keywords, arguments, documentation, and examples
23
+ - Installed package listing with filtering
24
+ - Environment scan (Python, Robot Framework, or full)
25
+ - Global Robot keyword search
26
+
27
+ ## Installation
28
+
29
+ ```bash
30
+ pip install lib-explorer
31
+ ```
32
+
33
+ ## Quick Start
34
+
35
+ ```bash
36
+ # Interactive mode
37
+ rf-explorer
38
+
39
+ # Help and version
40
+ rf-explorer --help
41
+ rf-explorer --version
42
+ ```
43
+
44
+ ## CLI Usage
45
+
46
+ ```text
47
+ rf-explorer
48
+ rf-explorer --help
49
+ rf-explorer --version
50
+
51
+ rf-explorer python <module> [regex|--all]
52
+ rf-explorer robot <library> [regex|--all]
53
+
54
+ rf-explorer --list
55
+ rf-explorer --list --filter <text>
56
+
57
+ rf-explorer --scan robot
58
+ rf-explorer --scan python
59
+ rf-explorer --scan --all
60
+
61
+ rf-explorer --search <keyword-or-regex>
62
+
63
+ rf-explorer audit --path <folder-path> --all
64
+ rf-explorer audit --path <folder-path> --all --export-html report.html
65
+ rf-explorer audit --path <folder-path> --tests --keywords --variables
66
+
67
+ ```
68
+
69
+ ## Examples
70
+
71
+ ### Explore a Python module
72
+
73
+ ```bash
74
+ rf-explorer python requests
75
+ rf-explorer python requests get
76
+ rf-explorer python requests --all
77
+ ```
78
+
79
+ ### Explore a Robot Framework library
80
+
81
+ ```bash
82
+ rf-explorer robot JSONLibrary
83
+ rf-explorer robot JSONLibrary Convert
84
+ rf-explorer robot JSONLibrary --all
85
+ ```
86
+
87
+ ### List installed packages
88
+
89
+ ```bash
90
+ rf-explorer --list
91
+ rf-explorer --list --filter py
92
+ ```
93
+
94
+ ### Scan environment
95
+
96
+ ```bash
97
+ rf-explorer --scan robot
98
+ rf-explorer --scan python
99
+ rf-explorer --scan --all
100
+ ```
101
+
102
+ ### Search Robot keywords globally
103
+
104
+ ```bash
105
+ rf-explorer --search browser
106
+ ```
107
+
108
+ ### Audit Robot project content
109
+
110
+ ```bash
111
+ rf-explorer audit --path <folder-path> --all --export-html report.html
112
+ rf-explorer audit --path <folder-path> --all --export-json audit.json
113
+ rf-explorer audit --path <folder-path> --all --export-excell export.xlsx
114
+ ```
115
+
116
+ ## Notes
117
+
118
+ - Requires Python 3.9+
119
+ - Works best in a terminal that supports colors
120
+
121
+ ## License
122
+
123
+ MIT (see LICENSE)
@@ -0,0 +1,164 @@
1
+ Metadata-Version: 2.4
2
+ Name: lib-explorer
3
+ Version: 1.1.2
4
+ Summary: A CLI tool for exploring Python modules and Robot Framework libraries
5
+ Author: Khaled LIMAM
6
+ License: MIT License
7
+
8
+ Copyright (c) 2026 Khaled
9
+
10
+ Permission is hereby granted, free of charge, to any person obtaining a copy
11
+ of this software and associated documentation files (the “Software”), to deal
12
+ in the Software without restriction, including without limitation the rights
13
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
14
+ copies of the Software, and to permit persons to whom the Software is
15
+ furnished to do so, subject to the following conditions:
16
+
17
+ The above copyright notice and this permission notice shall be included in
18
+ all copies or substantial portions of the Software.
19
+
20
+ THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
21
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
22
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
23
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
24
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
25
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
26
+ THE SOFTWARE.
27
+ Project-URL: Homepage, https://github.com/khaledlim/rf-explorer
28
+ Project-URL: Source, https://github.com/khaledlim/rf-explorer
29
+ Project-URL: Issues, https://github.com/khaledlim/rf-explorer/issues
30
+ Keywords: robotframework,documentation,interactive,cli,python
31
+ Requires-Python: >=3.9
32
+ Description-Content-Type: text/markdown
33
+ License-File: LICENSE
34
+ Requires-Dist: rich>=13.0
35
+ Requires-Dist: InquirerPy>=0.3.4
36
+ Requires-Dist: robotframework>=6.0
37
+ Requires-Dist: Pygments>=2.15
38
+ Requires-Dist: openpyxl>=3.0
39
+ Requires-Dist: PyYAML>=6.0
40
+ Dynamic: license-file
41
+
42
+ # RF Explorer
43
+
44
+ ![Python Version](https://img.shields.io/badge/python-3.9%2B-blue)
45
+ ![License](https://img.shields.io/badge/license-MIT-green)
46
+ ![Status](https://img.shields.io/badge/status-stable-brightgreen)
47
+
48
+ PyPI: https://pypi.org/project/lib-explorer/
49
+ GitHub: https://github.com/khaledlim/rf-explorer
50
+
51
+ RF Explorer is an interactive command-line tool to explore Python modules and Robot Framework libraries.
52
+ It renders readable, syntax-highlighted documentation directly in the terminal using Rich.
53
+
54
+ ## Audit Report Preview
55
+
56
+ ![RF Explorer Audit Report Preview](docs/images/audit-report-preview.png)
57
+
58
+ ## Highlights
59
+
60
+ - Interactive terminal mode (menu-driven UI with InquirerPy)
61
+ - Direct CLI mode for quick commands
62
+ - Python module exploration: functions, classes, methods, and docstrings
63
+ - Robot Framework library exploration: keywords, arguments, documentation, and examples
64
+ - Installed package listing with filtering
65
+ - Environment scan (Python, Robot Framework, or full)
66
+ - Global Robot keyword search
67
+
68
+ ## Installation
69
+
70
+ ```bash
71
+ pip install lib-explorer
72
+ ```
73
+
74
+ ## Quick Start
75
+
76
+ ```bash
77
+ # Interactive mode
78
+ rf-explorer
79
+
80
+ # Help and version
81
+ rf-explorer --help
82
+ rf-explorer --version
83
+ ```
84
+
85
+ ## CLI Usage
86
+
87
+ ```text
88
+ rf-explorer
89
+ rf-explorer --help
90
+ rf-explorer --version
91
+
92
+ rf-explorer python <module> [regex|--all]
93
+ rf-explorer robot <library> [regex|--all]
94
+
95
+ rf-explorer --list
96
+ rf-explorer --list --filter <text>
97
+
98
+ rf-explorer --scan robot
99
+ rf-explorer --scan python
100
+ rf-explorer --scan --all
101
+
102
+ rf-explorer --search <keyword-or-regex>
103
+
104
+ rf-explorer audit --path <folder-path> --all
105
+ rf-explorer audit --path <folder-path> --all --export-html report.html
106
+ rf-explorer audit --path <folder-path> --tests --keywords --variables
107
+
108
+ ```
109
+
110
+ ## Examples
111
+
112
+ ### Explore a Python module
113
+
114
+ ```bash
115
+ rf-explorer python requests
116
+ rf-explorer python requests get
117
+ rf-explorer python requests --all
118
+ ```
119
+
120
+ ### Explore a Robot Framework library
121
+
122
+ ```bash
123
+ rf-explorer robot JSONLibrary
124
+ rf-explorer robot JSONLibrary Convert
125
+ rf-explorer robot JSONLibrary --all
126
+ ```
127
+
128
+ ### List installed packages
129
+
130
+ ```bash
131
+ rf-explorer --list
132
+ rf-explorer --list --filter py
133
+ ```
134
+
135
+ ### Scan environment
136
+
137
+ ```bash
138
+ rf-explorer --scan robot
139
+ rf-explorer --scan python
140
+ rf-explorer --scan --all
141
+ ```
142
+
143
+ ### Search Robot keywords globally
144
+
145
+ ```bash
146
+ rf-explorer --search browser
147
+ ```
148
+
149
+ ### Audit Robot project content
150
+
151
+ ```bash
152
+ rf-explorer audit --path <folder-path> --all --export-html report.html
153
+ rf-explorer audit --path <folder-path> --all --export-json audit.json
154
+ rf-explorer audit --path <folder-path> --all --export-excell export.xlsx
155
+ ```
156
+
157
+ ## Notes
158
+
159
+ - Requires Python 3.9+
160
+ - Works best in a terminal that supports colors
161
+
162
+ ## License
163
+
164
+ MIT (see LICENSE)
@@ -14,4 +14,13 @@ rf_explorer/python_doc.py
14
14
  rf_explorer/rf_doc_show.py
15
15
  rf_explorer/robot_doc.py
16
16
  rf_explorer/scanner.py
17
- rf_explorer/utils.py
17
+ rf_explorer/utils.py
18
+ rf_explorer/audit/__init__.py
19
+ rf_explorer/audit/cli.py
20
+ rf_explorer/audit/core.py
21
+ rf_explorer/audit/exporters/__init__.py
22
+ rf_explorer/audit/exporters/excel.py
23
+ rf_explorer/audit/exporters/html.py
24
+ rf_explorer/audit/exporters/json.py
25
+ rf_explorer/audit/scanner/__init__.py
26
+ rf_explorer/audit/scanner/project_scanners.py
@@ -2,3 +2,5 @@ rich>=13.0
2
2
  InquirerPy>=0.3.4
3
3
  robotframework>=6.0
4
4
  Pygments>=2.15
5
+ openpyxl>=3.0
6
+ PyYAML>=6.0
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "lib-explorer"
7
- version = "1.1.0"
7
+ version = "1.1.2"
8
8
  description = "A CLI tool for exploring Python modules and Robot Framework libraries"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.9"
@@ -20,6 +20,8 @@ dependencies = [
20
20
  "InquirerPy>=0.3.4",
21
21
  "robotframework >=6.0",
22
22
  "Pygments>=2.15",
23
+ "openpyxl>=3.0",
24
+ "PyYAML>=6.0",
23
25
  ]
24
26
 
25
27
  keywords = ["robotframework", "documentation", "interactive", "cli", "python"]
@@ -0,0 +1,7 @@
1
+
2
+ """
3
+ RF Explorer package initialization.
4
+ """
5
+
6
+ __version__ = "1.1.2"
7
+ __author__ = "Khaledlim"
@@ -0,0 +1 @@
1
+ __version__ = "1.1.2"
@@ -0,0 +1,92 @@
1
+
2
+ import argparse, os
3
+ from rf_explorer.audit.core import AuditResult, Collector
4
+ from rf_explorer.audit.scanner import RobotScanner, PythonKeywordScanner, VariableScanner
5
+ from rf_explorer.audit.exporters import export_json, export_html, export_excel
6
+ from rf_explorer.audit import __version__
7
+
8
+
9
+ def build_parser(prog=None):
10
+ parser = argparse.ArgumentParser(description="RF Audit Tool", prog=prog)
11
+ parser.add_argument("--path", help="Path file or folder", required=False)
12
+ parser.add_argument("--version", action="store_true")
13
+
14
+ parser.add_argument("--all", action="store_true")
15
+ parser.add_argument("--tests", action="store_true")
16
+ parser.add_argument("--keywords", action="store_true")
17
+ parser.add_argument("--variables", action="store_true")
18
+
19
+ parser.add_argument("--export-json")
20
+ parser.add_argument("--export-html")
21
+ parser.add_argument("--export-excel")
22
+
23
+ return parser
24
+
25
+
26
+ def execute_audit(args):
27
+ if args.version:
28
+ print(__version__)
29
+ return 0
30
+
31
+ if not args.path:
32
+ print("Error: --path is required")
33
+ return 2
34
+
35
+ if not os.path.exists(args.path):
36
+ print("Error: path not found")
37
+ return 2
38
+
39
+ if not any([args.all, args.tests, args.keywords, args.variables]):
40
+ print("No scan option provided")
41
+ return 2
42
+
43
+ if args.all:
44
+ args.tests = args.keywords = args.variables = True
45
+
46
+ result = AuditResult()
47
+
48
+ scanners = []
49
+
50
+ if args.tests:
51
+ scanners.append(RobotScanner())
52
+
53
+ if args.keywords:
54
+ scanners.append(PythonKeywordScanner())
55
+
56
+ if args.variables:
57
+ scanners.append(VariableScanner())
58
+
59
+ Collector(scanners).run(args.path, result)
60
+
61
+ summary = result.summary.copy()
62
+ libs = len(getattr(result, "libraries", []))
63
+ ress = len(getattr(result, "resources", []))
64
+ tags = getattr(result, "tags", {})
65
+
66
+ ordered = {"libraries": libs, "resources": ress}
67
+ ordered.update(summary)
68
+ ordered["tags"] = len(tags)
69
+ print("SUMMARY:", ordered)
70
+
71
+ if args.export_json:
72
+ export_json(result, args.export_json)
73
+
74
+ if args.export_html:
75
+ export_html(result, args.export_html, scanned_path=args.path)
76
+
77
+ if args.export_excel:
78
+ export_excel(result, args.export_excel)
79
+
80
+ return 0
81
+
82
+
83
+ def run_cli(argv=None, prog=None):
84
+ parser = build_parser(prog=prog)
85
+ args = parser.parse_args(argv)
86
+ return execute_audit(args)
87
+
88
+ def main():
89
+ raise SystemExit(run_cli())
90
+
91
+ if __name__ == "__main__":
92
+ main()
@@ -0,0 +1,30 @@
1
+
2
+ class Collector:
3
+ def __init__(self, scanners):
4
+ self.scanners = scanners
5
+
6
+ def run(self, path, result):
7
+ for scanner in self.scanners:
8
+ scanner.scan(path, result)
9
+
10
+ class AuditResult:
11
+ def __init__(self):
12
+ self.files = []
13
+ self.summary = {
14
+ "suites": 0,
15
+ "tests": 0,
16
+ "keywords": 0,
17
+ "variables": 0
18
+ }
19
+ self.tags = {}
20
+ self.libraries = []
21
+ self.resources = []
22
+ self.libraries_set = set()
23
+ self.resources_set = set()
24
+
25
+ class Issue:
26
+ def __init__(self, severity, rule, message, file):
27
+ self.severity = severity
28
+ self.rule = rule
29
+ self.message = message
30
+ self.file = file
@@ -0,0 +1,5 @@
1
+ from .excel import export_excel
2
+ from .html import export_html
3
+ from .json import export_json
4
+
5
+ __all__ = ["export_json", "export_html", "export_excel"]