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.
@@ -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 #aaa;
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
@@ -17,5 +17,5 @@ __version__: str
17
17
  __version_tuple__: VERSION_TUPLE
18
18
  version_tuple: VERSION_TUPLE
19
19
 
20
- __version__ = version = '1.9.8'
21
- __version_tuple__ = version_tuple = (1, 9, 8)
20
+ __version__ = version = '1.9.10'
21
+ __version_tuple__ = version_tuple = (1, 9, 10)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: pywebexec
3
- Version: 1.9.8
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/b51b14f7-c349-42ca-98c5-29f0cb5dd656" width="300"/>
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 | | executables: [<br>&nbsp;&nbsp;{command: str,help: str},<br>] |
223
+ | GET | /commands/exposed | | commands: [<br>&nbsp;&nbsp;{<br>&nbsp;&nbsp;&nbsp;&nbsp;command: str,<br>&nbsp;&nbsp;&nbsp;&nbsp;help: str<br>&nbsp;&nbsp;},<br>] |
224
224
  | GET | /commands | | commands: [<br>&nbsp;&nbsp;{<br>&nbsp;&nbsp;&nbsp;&nbsp;command_id: uuid<br>&nbsp;&nbsp;&nbsp;&nbsp;command: str<br>&nbsp;&nbsp;&nbsp;&nbsp;start_time: isotime<br>&nbsp;&nbsp;&nbsp;&nbsp;end_time: isotime<br>&nbsp;&nbsp;&nbsp;&nbsp;status: str<br>&nbsp;&nbsp;&nbsp;&nbsp;exit_code: int<br>&nbsp;&nbsp;&nbsp;&nbsp;last_output_line: str<br>&nbsp;&nbsp;},<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=70T59qHdyEgYEEdFJ1UeLYBCA8Ap6rFY6TI0tAG2O2k,511
6
- pywebexec/static/css/style.css,sha256=M2zqrDSolDUxeVVeJ0e6NMTMM8B4_LUEmG-lWQwtUoI,9530
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.8.dist-info/LICENSE,sha256=gRJf0JPT_wsZJsUGlWPTS8Vypfl9vQ1qjp6sNbKykuA,1064
46
- pywebexec-1.9.8.dist-info/METADATA,sha256=ELM9BreZt2lJ2u-2QhY5sJ1ukVmvK2FfZltv07rFcJo,9479
47
- pywebexec-1.9.8.dist-info/WHEEL,sha256=jB7zZ3N9hIM9adW7qlTAyycLYW9npaWKLRzaoVcLKcM,91
48
- pywebexec-1.9.8.dist-info/entry_points.txt,sha256=l52GBkPCXRkmlHfEyoVauyfBdg8o-CAtC8qQpOIjJK0,55
49
- pywebexec-1.9.8.dist-info/top_level.txt,sha256=vHoHyzngrfGdm_nM7Xn_5iLmaCrf10XO1EhldgNLEQ8,10
50
- pywebexec-1.9.8.dist-info/RECORD,,
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,,