pywebexec 1.9.5__py3-none-any.whl → 1.9.7__py3-none-any.whl
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.
- pywebexec/pywebexec.py +2 -2
- pywebexec/swagger.yaml +12 -0
- pywebexec/version.py +2 -2
- {pywebexec-1.9.5.dist-info → pywebexec-1.9.7.dist-info}/METADATA +2 -2
- {pywebexec-1.9.5.dist-info → pywebexec-1.9.7.dist-info}/RECORD +9 -9
- {pywebexec-1.9.5.dist-info → pywebexec-1.9.7.dist-info}/LICENSE +0 -0
- {pywebexec-1.9.5.dist-info → pywebexec-1.9.7.dist-info}/WHEEL +0 -0
- {pywebexec-1.9.5.dist-info → pywebexec-1.9.7.dist-info}/entry_points.txt +0 -0
- {pywebexec-1.9.5.dist-info → pywebexec-1.9.7.dist-info}/top_level.txt +0 -0
pywebexec/pywebexec.py
CHANGED
@@ -639,8 +639,7 @@ def get_executables():
|
|
639
639
|
with open(help_file, 'r') as hf:
|
640
640
|
help_text = hf.read()
|
641
641
|
executables_list.append({"command": f, "help": help_text})
|
642
|
-
return executables_list
|
643
|
-
|
642
|
+
return sorted(executables_list, key=lambda x: x["command"])
|
644
643
|
|
645
644
|
@app.route('/commands/<command_id>/stop', methods=['PATCH'])
|
646
645
|
def stop_command(command_id):
|
@@ -924,6 +923,7 @@ def swagger_yaml():
|
|
924
923
|
swagger_spec.setdefault("paths", {})[dynamic_path] = {
|
925
924
|
"post": {
|
926
925
|
"summary": f"Run command {exe["command"]}",
|
926
|
+
"tags": ["run_commands"],
|
927
927
|
"description": f"{exe["help"]}",
|
928
928
|
"consumes": ["application/json"],
|
929
929
|
"produces": ["application/json"],
|
pywebexec/swagger.yaml
CHANGED
@@ -6,6 +6,8 @@ paths:
|
|
6
6
|
/commands:
|
7
7
|
get:
|
8
8
|
summary: "List commands status"
|
9
|
+
tags:
|
10
|
+
- commands
|
9
11
|
responses:
|
10
12
|
"200":
|
11
13
|
description: "List of all commands status"
|
@@ -37,6 +39,8 @@ paths:
|
|
37
39
|
type: string
|
38
40
|
post:
|
39
41
|
summary: "Run a command"
|
42
|
+
tags:
|
43
|
+
- commands
|
40
44
|
consumes:
|
41
45
|
- application/json
|
42
46
|
produces:
|
@@ -77,6 +81,8 @@ paths:
|
|
77
81
|
/commands/{command_id}:
|
78
82
|
get:
|
79
83
|
summary: "Get command status"
|
84
|
+
tags:
|
85
|
+
- commands
|
80
86
|
parameters:
|
81
87
|
- in: path
|
82
88
|
name: command_id
|
@@ -122,6 +128,8 @@ paths:
|
|
122
128
|
/commands/{command_id}/output:
|
123
129
|
get:
|
124
130
|
summary: "Get command output"
|
131
|
+
tags:
|
132
|
+
- commands
|
125
133
|
parameters:
|
126
134
|
- in: path
|
127
135
|
name: command_id
|
@@ -167,6 +175,8 @@ paths:
|
|
167
175
|
/commands/{command_id}/stop:
|
168
176
|
patch:
|
169
177
|
summary: "Stop a running command"
|
178
|
+
tags:
|
179
|
+
- commands
|
170
180
|
parameters:
|
171
181
|
- in: path
|
172
182
|
name: command_id
|
@@ -183,6 +193,8 @@ paths:
|
|
183
193
|
/executables:
|
184
194
|
get:
|
185
195
|
summary: "List available executable commands"
|
196
|
+
tags:
|
197
|
+
- commands
|
186
198
|
produces:
|
187
199
|
- application/json
|
188
200
|
responses:
|
pywebexec/version.py
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.2
|
2
2
|
Name: pywebexec
|
3
|
-
Version: 1.9.
|
3
|
+
Version: 1.9.7
|
4
4
|
Summary: Simple Python HTTP Exec Server
|
5
5
|
Home-page: https://github.com/joknarf/pywebexec
|
6
6
|
Author: Franck Jouvanceau
|
@@ -213,7 +213,7 @@ The help message is displayed:
|
|
213
213
|
|
214
214
|
A swagger UI is available at `http[s]://<srv>/v0/documentation`
|
215
215
|
|
216
|
-
<img src="https://github.com/user-attachments/assets/
|
216
|
+
<img src="https://github.com/user-attachments/assets/60649510-4edb-4275-9339-181b451c603b" width="400"/>
|
217
217
|
|
218
218
|
## API reference
|
219
219
|
|
@@ -1,8 +1,8 @@
|
|
1
1
|
pywebexec/__init__.py,sha256=197fHJy0UDBwTTpGCGortZRr-w2kTaD7MxqdbVmTEi0,61
|
2
2
|
pywebexec/host_ip.py,sha256=Ud_HTflWVQ8789aoQ2RZdT1wGI-ccvrwSWGz_c7T3TI,1241
|
3
|
-
pywebexec/pywebexec.py,sha256=
|
4
|
-
pywebexec/swagger.yaml,sha256=
|
5
|
-
pywebexec/version.py,sha256=
|
3
|
+
pywebexec/pywebexec.py,sha256=Ow5vhzTfC74nFuA8Nc6JDjRPawegHIT046AHH55-8dE,37979
|
4
|
+
pywebexec/swagger.yaml,sha256=NaJ0CVXqHJyJ0Vm4_WAZGruW1eEnTy5ctcKgWglucTk,5690
|
5
|
+
pywebexec/version.py,sha256=T2LvI7xUHqs7nVg-NAymK8dr62YfyHOhBN3LG1nsnJg,511
|
6
6
|
pywebexec/static/css/style.css,sha256=M2zqrDSolDUxeVVeJ0e6NMTMM8B4_LUEmG-lWQwtUoI,9530
|
7
7
|
pywebexec/static/css/xterm.css,sha256=uo5phWaUiJgcz0DAzv46uoByLLbJLeetYosL1xf68rY,5559
|
8
8
|
pywebexec/static/fonts/CommitMonoNerdFontMono-Regular.ttf,sha256=v6nZdSx5cs_TIic8Fujrjzg9u9glWjorDIr7RlwNceM,2370228
|
@@ -42,9 +42,9 @@ pywebexec/static/js/xterm/xterm.js.map,sha256=Y7O2Pb-fIS7Z8AC1D5s04_aiW_Jf1f4mCf
|
|
42
42
|
pywebexec/templates/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
43
43
|
pywebexec/templates/index.html,sha256=66Oevi5umxCK81IoGoudx3vWp0ltdFMFsymXsnLQw-c,3209
|
44
44
|
pywebexec/templates/popup.html,sha256=3kpMccKD_OLLhJ4Y9KRw6Ny8wQWjVaRrUfV9y5-bDiQ,1580
|
45
|
-
pywebexec-1.9.
|
46
|
-
pywebexec-1.9.
|
47
|
-
pywebexec-1.9.
|
48
|
-
pywebexec-1.9.
|
49
|
-
pywebexec-1.9.
|
50
|
-
pywebexec-1.9.
|
45
|
+
pywebexec-1.9.7.dist-info/LICENSE,sha256=gRJf0JPT_wsZJsUGlWPTS8Vypfl9vQ1qjp6sNbKykuA,1064
|
46
|
+
pywebexec-1.9.7.dist-info/METADATA,sha256=O9oN7etjVy1paNdug5tmWq10kiSAa31v-IH2kvt9FV0,9450
|
47
|
+
pywebexec-1.9.7.dist-info/WHEEL,sha256=jB7zZ3N9hIM9adW7qlTAyycLYW9npaWKLRzaoVcLKcM,91
|
48
|
+
pywebexec-1.9.7.dist-info/entry_points.txt,sha256=l52GBkPCXRkmlHfEyoVauyfBdg8o-CAtC8qQpOIjJK0,55
|
49
|
+
pywebexec-1.9.7.dist-info/top_level.txt,sha256=vHoHyzngrfGdm_nM7Xn_5iLmaCrf10XO1EhldgNLEQ8,10
|
50
|
+
pywebexec-1.9.7.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|