pywebexec 1.9.8__py3-none-any.whl → 1.9.10__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/static/css/style.css +20 -12
- pywebexec/version.py +2 -2
- {pywebexec-1.9.8.dist-info → pywebexec-1.9.10.dist-info}/METADATA +4 -3
- {pywebexec-1.9.8.dist-info → pywebexec-1.9.10.dist-info}/RECORD +8 -8
- {pywebexec-1.9.8.dist-info → pywebexec-1.9.10.dist-info}/LICENSE +0 -0
- {pywebexec-1.9.8.dist-info → pywebexec-1.9.10.dist-info}/WHEEL +0 -0
- {pywebexec-1.9.8.dist-info → pywebexec-1.9.10.dist-info}/entry_points.txt +0 -0
- {pywebexec-1.9.8.dist-info → pywebexec-1.9.10.dist-info}/top_level.txt +0 -0
pywebexec/static/css/style.css
CHANGED
@@ -99,6 +99,9 @@ form {
|
|
99
99
|
vertical-align: bottom;
|
100
100
|
padding-left: 35px;
|
101
101
|
}
|
102
|
+
code {
|
103
|
+
font-family: "CommitMono Nerd Font Mono", Consolas, "Courier New", monospace;
|
104
|
+
}
|
102
105
|
#paramsHelp {
|
103
106
|
position: absolute;
|
104
107
|
background-color: #e0e0ff;
|
@@ -126,9 +129,16 @@ form {
|
|
126
129
|
td, th{
|
127
130
|
margin: 0;
|
128
131
|
padding: 4px 6px;
|
129
|
-
border-bottom: 1px solid #
|
132
|
+
border-bottom: 1px solid #ccc;
|
133
|
+
}
|
134
|
+
ul, ol{
|
135
|
+
margin: 0;
|
136
|
+
padding: 0;
|
137
|
+
padding-left: 30px;
|
138
|
+
}
|
139
|
+
p {
|
140
|
+
margin-bottom: 4px;
|
130
141
|
}
|
131
|
-
|
132
142
|
th:last-child {
|
133
143
|
border-top-right-radius: 10px;
|
134
144
|
}
|
@@ -147,9 +157,15 @@ form {
|
|
147
157
|
tr > td:last-child {
|
148
158
|
border-right: 1px solid #aaa;
|
149
159
|
}
|
150
|
-
code {
|
151
|
-
font-family: "CommitMono Nerd Font Mono", Consolas, "Courier New", monospace;
|
160
|
+
code, pre {
|
152
161
|
font-size: 14px;
|
162
|
+
background-color: #d5d5fe;
|
163
|
+
}
|
164
|
+
pre {
|
165
|
+
padding: 5px 10px;
|
166
|
+
border-radius: 10px;
|
167
|
+
overflow-x: auto;
|
168
|
+
box-shadow: 0 0 10px rgba(0, 0, 0, 0.40);
|
153
169
|
}
|
154
170
|
}
|
155
171
|
#thStatus {
|
@@ -320,14 +336,6 @@ body.dimmed * {
|
|
320
336
|
left: 50%;
|
321
337
|
transform: translate(-50%, -50%);
|
322
338
|
}
|
323
|
-
/* allow wide chars in terminal */
|
324
|
-
/*
|
325
|
-
span {
|
326
|
-
letter-spacing: 0px !important;
|
327
|
-
margin-right: -0.17px;
|
328
|
-
margin-left: -0.09px
|
329
|
-
}
|
330
|
-
*/
|
331
339
|
.slider-container {
|
332
340
|
display: flex;
|
333
341
|
align-items: center;
|
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.10
|
4
4
|
Summary: Simple Python HTTP Exec Server
|
5
5
|
Home-page: https://github.com/joknarf/pywebexec
|
6
6
|
Author: Franck Jouvanceau
|
@@ -207,7 +207,7 @@ The help message is displayed:
|
|
207
207
|
* in the response when calling the API `/executables`
|
208
208
|
* in the swagger-ui in the `/commands/<command>` route.
|
209
209
|
|
210
|
-
<img src="https://github.com/user-attachments/assets/
|
210
|
+
<img src="https://github.com/user-attachments/assets/ecdeb890-5018-498f-872a-57dd4bf542cf" width="400"/>
|
211
211
|
|
212
212
|
## Swagger UI
|
213
213
|
|
@@ -220,7 +220,7 @@ A swagger UI is available at `http[s]://<srv>/v0/documentation`
|
|
220
220
|
|
221
221
|
| method | route | params/payload | returns
|
222
222
|
|-----------|-----------------------------|--------------------|---------------------|
|
223
|
-
| GET | /commands/exposed | |
|
223
|
+
| GET | /commands/exposed | | commands: [<br> {<br> command: str,<br> help: str<br> },<br>] |
|
224
224
|
| GET | /commands | | commands: [<br> {<br> command_id: uuid<br> command: str<br> start_time: isotime<br> end_time: isotime<br> status: str<br> exit_code: int<br> last_output_line: str<br> },<br>] |
|
225
225
|
| GET | /commands/{id} | | command_id: uuid<br>command: str<br>params: array[str]<br>start_time: isotime<br>end_time: isotime<br>status: str<br>exit_code: int<br>last_output_line: str |
|
226
226
|
| GET | /commands/{id}/output | offset: int | output: str<br>status: str<br>links: { next: str } |
|
@@ -229,3 +229,4 @@ A swagger UI is available at `http[s]://<srv>/v0/documentation`
|
|
229
229
|
| POST | /commands/{cmd} | params: array[str]<br>rows: int<br>cols: int | command_id: uuid<br>message: str |
|
230
230
|
| PATCH | /commands/{id}/stop | | message: str |
|
231
231
|
|
232
|
+
* to get command output as text (without ANSI codes/Control characters) use: `/commands/{id}/output` with header `"Accept: text/plain"`
|
@@ -2,8 +2,8 @@ pywebexec/__init__.py,sha256=197fHJy0UDBwTTpGCGortZRr-w2kTaD7MxqdbVmTEi0,61
|
|
2
2
|
pywebexec/host_ip.py,sha256=Ud_HTflWVQ8789aoQ2RZdT1wGI-ccvrwSWGz_c7T3TI,1241
|
3
3
|
pywebexec/pywebexec.py,sha256=SU-iD3FQIyWsw0-iGjM2P8INpBW9JhzZ1lI3Y50Fwqk,37983
|
4
4
|
pywebexec/swagger.yaml,sha256=pGG4ikpASgBnzoZ44jJJ8l5JrNz7GOBpCakSJta-30c,5676
|
5
|
-
pywebexec/version.py,sha256=
|
6
|
-
pywebexec/static/css/style.css,sha256=
|
5
|
+
pywebexec/version.py,sha256=ceGZCWdlHDLW5P3kysa1EufriSwHPV5e1W-0Fc378p4,513
|
6
|
+
pywebexec/static/css/style.css,sha256=KiiApuoxfjG5ce7Re5p7wNUWdyo5AMuVdQ3UkbpjtQI,9711
|
7
7
|
pywebexec/static/css/xterm.css,sha256=uo5phWaUiJgcz0DAzv46uoByLLbJLeetYosL1xf68rY,5559
|
8
8
|
pywebexec/static/fonts/CommitMonoNerdFontMono-Regular.ttf,sha256=v6nZdSx5cs_TIic8Fujrjzg9u9glWjorDIr7RlwNceM,2370228
|
9
9
|
pywebexec/static/fonts/LICENSE,sha256=gsBdbFPfoMkCWYXBnjcYEAILdO0sYdUdNw8qirJQbVI,4395
|
@@ -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.10.dist-info/LICENSE,sha256=gRJf0JPT_wsZJsUGlWPTS8Vypfl9vQ1qjp6sNbKykuA,1064
|
46
|
+
pywebexec-1.9.10.dist-info/METADATA,sha256=vT-bRjlD-Q4y-WNm97ts5ZbgUeSPkP8KnvSwkYMTMXQ,9685
|
47
|
+
pywebexec-1.9.10.dist-info/WHEEL,sha256=jB7zZ3N9hIM9adW7qlTAyycLYW9npaWKLRzaoVcLKcM,91
|
48
|
+
pywebexec-1.9.10.dist-info/entry_points.txt,sha256=l52GBkPCXRkmlHfEyoVauyfBdg8o-CAtC8qQpOIjJK0,55
|
49
|
+
pywebexec-1.9.10.dist-info/top_level.txt,sha256=vHoHyzngrfGdm_nM7Xn_5iLmaCrf10XO1EhldgNLEQ8,10
|
50
|
+
pywebexec-1.9.10.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|