pywebexec 2.1.8__py3-none-any.whl → 2.1.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/pywebexec.py CHANGED
@@ -834,7 +834,7 @@ def run_dynamic_command(cmd):
834
834
  # noprefix_params: ["param1", "param2"] or ["*"] to omit --param prefix
835
835
  # convert_params: {"param1": "param2"} to convert param1 to param2
836
836
  exe = get_executable(cmd)
837
- separator = exe.get("schema", {}).get("schema_options", {}).get("separator", " ")
837
+ separator_params = exe.get("schema", {}).get("schema_options", {}).get("separator_params", {})
838
838
  noprefix = exe.get("schema", {}).get("schema_options", {}).get("noprefix_params", {})
839
839
  convert_params = exe.get("schema", {}).get("schema_options", {}).get("convert_params", {})
840
840
  schema_params = exe.get("schema", {}).get("properties", {})
@@ -851,6 +851,11 @@ def run_dynamic_command(cmd):
851
851
  if value is None:
852
852
  continue
853
853
  prefix = ""
854
+ separator = " "
855
+ if '*' in separator_params:
856
+ separator = separator_params['*']
857
+ if param in separator_params:
858
+ separator = separator_params[param]
854
859
  if param in convert_params:
855
860
  param = convert_params[param]
856
861
  prefix = param
@@ -184,6 +184,18 @@
184
184
  top: -5px;
185
185
  padding: 0px 3px;
186
186
  }
187
+ .range {
188
+ height: 24px;
189
+ position: relative;
190
+ }
191
+ input[type=range] {
192
+ margin-top: 1px;
193
+ }
194
+ input[type=range]:focus {
195
+ outline: 0;
196
+ -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102, 175, 233, .6);
197
+ box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102, 175, 233, .6);
198
+ }
187
199
  }
188
200
 
189
201
  .swagger-ui textarea {
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 = '2.1.8'
21
- __version_tuple__ = version_tuple = (2, 1, 8)
20
+ __version__ = version = '2.1.10'
21
+ __version_tuple__ = version_tuple = (2, 1, 10)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: pywebexec
3
- Version: 2.1.8
3
+ Version: 2.1.10
4
4
  Summary: Simple Python HTTP Exec Server
5
5
  Home-page: https://github.com/joknarf/pywebexec
6
6
  Author: Franck Jouvanceau
@@ -263,7 +263,7 @@ $ curl -X POST http://<srv>/commands/<cmd> -H "Content-Type: application/json" -
263
263
  The schema options are used to customize the command line arguments generation, just add a `schema_options` section to the schema.
264
264
  ```yaml
265
265
  schema_options:
266
- separator: "=" # --param=value (default is " ")
266
+ separator_params: {"*": " ", "param2": "="}}"=" # --param2=value (default is " ")
267
267
  noprefix_params: ["param1", "param2"] # omit --param prefix, use "*" to omit all
268
268
  convert_params: {"param1": "param2"} # convert param1 to param2
269
269
  ```
@@ -1,9 +1,9 @@
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=6xLQml4foHbjLIihLye0cQgMdyyEJQrPUY-rMsPHiSw,44956
3
+ pywebexec/pywebexec.py,sha256=4XiA38XRx6QUMssUOvtFlGwr75EhY6C8Jf4FqbGXnYc,45201
4
4
  pywebexec/swagger.yaml,sha256=zP_Nz69vZx0iwbKTwiQgSs8rJRUTiGKRyIkWzMPANOE,6688
5
- pywebexec/version.py,sha256=JNwYT7L17W6XA8Q9TFeLnVI0FvK7eOV1TLduK2unwJc,511
6
- pywebexec/static/css/form.css,sha256=zwNOJgmaxS0_1CZxH0ZgvwkLUr2FLAHrkvzsNvIY3NQ,4663
5
+ pywebexec/version.py,sha256=I6C3mOmr0C_Y2pXczUFpTwSLzslDJ4SYKuba821hgTs,513
6
+ pywebexec/static/css/form.css,sha256=FgeB8ihJE_RKVvN6s3vTnzs5O26DCYC9LX2xI-2Fx2g,4989
7
7
  pywebexec/static/css/markdown.css,sha256=3RzUnpVBdF6cQuB_NXV7hMTc0quYU8sfyuZcpsREj6A,1939
8
8
  pywebexec/static/css/style.css,sha256=ynccbEDzK07rurLm-UirUs5j_hVfXlIgaHeUIq9WvA0,9969
9
9
  pywebexec/static/css/swagger-ui.css,sha256=xhXN8fnUaIACGHuPIEIr9-qmyYr6Zx0k2wv4Qy7Bg1Y,154985
@@ -66,9 +66,9 @@ pywebexec/templates/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSu
66
66
  pywebexec/templates/index.html,sha256=KeNLBH9PN_ZuGhzwrjvRTj2oBtbINv_SbwGQpOahNWo,3820
67
67
  pywebexec/templates/popup.html,sha256=3kpMccKD_OLLhJ4Y9KRw6Ny8wQWjVaRrUfV9y5-bDiQ,1580
68
68
  pywebexec/templates/swagger_ui.html,sha256=9ngyldkyEdLonBjl97mbIZUlVk-jxwcHrvFzMSrveyU,1067
69
- pywebexec-2.1.8.dist-info/LICENSE,sha256=gRJf0JPT_wsZJsUGlWPTS8Vypfl9vQ1qjp6sNbKykuA,1064
70
- pywebexec-2.1.8.dist-info/METADATA,sha256=5NKXl1UaXGMi5hc9HF2giiX809nqrKVd70yTK9g39nU,12776
71
- pywebexec-2.1.8.dist-info/WHEEL,sha256=52BFRY2Up02UkjOa29eZOS2VxUrpPORXg1pkohGGUS8,91
72
- pywebexec-2.1.8.dist-info/entry_points.txt,sha256=l52GBkPCXRkmlHfEyoVauyfBdg8o-CAtC8qQpOIjJK0,55
73
- pywebexec-2.1.8.dist-info/top_level.txt,sha256=vHoHyzngrfGdm_nM7Xn_5iLmaCrf10XO1EhldgNLEQ8,10
74
- pywebexec-2.1.8.dist-info/RECORD,,
69
+ pywebexec-2.1.10.dist-info/LICENSE,sha256=gRJf0JPT_wsZJsUGlWPTS8Vypfl9vQ1qjp6sNbKykuA,1064
70
+ pywebexec-2.1.10.dist-info/METADATA,sha256=m4oxEqcrEjitxTD9B_D4AdboeUbYfoXwVylvtFnEg80,12811
71
+ pywebexec-2.1.10.dist-info/WHEEL,sha256=52BFRY2Up02UkjOa29eZOS2VxUrpPORXg1pkohGGUS8,91
72
+ pywebexec-2.1.10.dist-info/entry_points.txt,sha256=l52GBkPCXRkmlHfEyoVauyfBdg8o-CAtC8qQpOIjJK0,55
73
+ pywebexec-2.1.10.dist-info/top_level.txt,sha256=vHoHyzngrfGdm_nM7Xn_5iLmaCrf10XO1EhldgNLEQ8,10
74
+ pywebexec-2.1.10.dist-info/RECORD,,