pywebexec 0.0.4__tar.gz → 0.0.6__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 (24) hide show
  1. {pywebexec-0.0.4/pywebexec.egg-info → pywebexec-0.0.6}/PKG-INFO +5 -4
  2. {pywebexec-0.0.4 → pywebexec-0.0.6}/README.md +3 -2
  3. {pywebexec-0.0.4 → pywebexec-0.0.6}/pywebexec/pywebexec.py +2 -1
  4. {pywebexec-0.0.4 → pywebexec-0.0.6}/pywebexec/templates/index.html +5 -0
  5. {pywebexec-0.0.4 → pywebexec-0.0.6}/pywebexec/version.py +2 -2
  6. {pywebexec-0.0.4 → pywebexec-0.0.6/pywebexec.egg-info}/PKG-INFO +5 -4
  7. {pywebexec-0.0.4 → pywebexec-0.0.6}/.github/workflows/python-publish.yml +0 -0
  8. {pywebexec-0.0.4 → pywebexec-0.0.6}/.gitignore +0 -0
  9. {pywebexec-0.0.4 → pywebexec-0.0.6}/LICENSE +0 -0
  10. {pywebexec-0.0.4 → pywebexec-0.0.6}/pyproject.toml +0 -0
  11. {pywebexec-0.0.4 → pywebexec-0.0.6}/pywebexec/__init__.py +0 -0
  12. {pywebexec-0.0.4 → pywebexec-0.0.6}/pywebexec/static/images/aborted.svg +0 -0
  13. {pywebexec-0.0.4 → pywebexec-0.0.6}/pywebexec/static/images/copy.svg +0 -0
  14. {pywebexec-0.0.4 → pywebexec-0.0.6}/pywebexec/static/images/copy_ok.svg +0 -0
  15. {pywebexec-0.0.4 → pywebexec-0.0.6}/pywebexec/static/images/failed.svg +0 -0
  16. {pywebexec-0.0.4 → pywebexec-0.0.6}/pywebexec/static/images/running.svg +0 -0
  17. {pywebexec-0.0.4 → pywebexec-0.0.6}/pywebexec/static/images/success.svg +0 -0
  18. {pywebexec-0.0.4 → pywebexec-0.0.6}/pywebexec/templates/__init__.py +0 -0
  19. {pywebexec-0.0.4 → pywebexec-0.0.6}/pywebexec.egg-info/SOURCES.txt +0 -0
  20. {pywebexec-0.0.4 → pywebexec-0.0.6}/pywebexec.egg-info/dependency_links.txt +0 -0
  21. {pywebexec-0.0.4 → pywebexec-0.0.6}/pywebexec.egg-info/entry_points.txt +0 -0
  22. {pywebexec-0.0.4 → pywebexec-0.0.6}/pywebexec.egg-info/requires.txt +0 -0
  23. {pywebexec-0.0.4 → pywebexec-0.0.6}/pywebexec.egg-info/top_level.txt +0 -0
  24. {pywebexec-0.0.4 → pywebexec-0.0.6}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.2
2
2
  Name: pywebexec
3
- Version: 0.0.4
3
+ Version: 0.0.6
4
4
  Summary: Simple Python HTTP Exec Server
5
5
  Home-page: https://github.com/joknarf/pywebexec
6
6
  Author: Franck Jouvanceau
@@ -78,12 +78,13 @@ $ pip install pywebexec
78
78
  $ pywebexec
79
79
  ```
80
80
 
81
- * Launch commands with params/view live output/Status using browser `http://<yourserver>:8080`
81
+ * Launch commands with params/view live output/Status using browser
82
+ ![image](https://github.com/user-attachments/assets/921da56f-6d4b-46e3-b16c-e01a2dc9accf)
82
83
 
83
84
  ## features
84
85
 
85
86
  * Serve executables in current directory
86
- * Launch commands with params from web browser
87
+ * Launch commands with params from web browser or API call
87
88
  * Follow live output
88
89
  * Stop command
89
90
  * Relaunch command
@@ -19,12 +19,13 @@ $ pip install pywebexec
19
19
  $ pywebexec
20
20
  ```
21
21
 
22
- * Launch commands with params/view live output/Status using browser `http://<yourserver>:8080`
22
+ * Launch commands with params/view live output/Status using browser
23
+ ![image](https://github.com/user-attachments/assets/921da56f-6d4b-46e3-b16c-e01a2dc9accf)
23
24
 
24
25
  ## features
25
26
 
26
27
  * Serve executables in current directory
27
- * Launch commands with params from web browser
28
+ * Launch commands with params from web browser or API call
28
29
  * Follow live output
29
30
  * Stop command
30
31
  * Relaunch command
@@ -16,7 +16,7 @@ app = Flask(__name__)
16
16
  auth = HTTPBasicAuth()
17
17
 
18
18
  # Directory to store the script status and output
19
- SCRIPT_STATUS_DIR = 'script_status'
19
+ SCRIPT_STATUS_DIR = '.web_status'
20
20
 
21
21
  if not os.path.exists(SCRIPT_STATUS_DIR):
22
22
  os.makedirs(SCRIPT_STATUS_DIR)
@@ -48,6 +48,7 @@ def start_gunicorn():
48
48
  options = {
49
49
  'bind': '%s:%s' % (args.listen, args.port),
50
50
  'workers': 4,
51
+ 'timeout': 600,
51
52
  'certfile': args.cert,
52
53
  'keyfile': args.key,
53
54
  }
@@ -82,6 +82,9 @@
82
82
  input {
83
83
  width: 50%
84
84
  }
85
+ .currentscript {
86
+ background-color: #eef;
87
+ }
85
88
  </style>
86
89
  </head>
87
90
  <body>
@@ -139,6 +142,7 @@
139
142
  scriptsTbody.innerHTML = '';
140
143
  scripts.forEach(script => {
141
144
  const scriptRow = document.createElement('tr');
145
+ scriptRow.className = script.script_id === currentScriptId ? 'currentscript' : '';
142
146
  scriptRow.innerHTML = `
143
147
  <td class="monospace">
144
148
  <span class="copy_clip" onclick="copyToClipboard('${script.script_id}', this)">${script.script_id.slice(0, 8)}</span>
@@ -197,6 +201,7 @@
197
201
  } else {
198
202
  fetchOutput(script_id);
199
203
  }
204
+ fetchScripts(); // Refresh the script list to highlight the current script
200
205
  }
201
206
 
202
207
  async function relaunchScript(script_id) {
@@ -12,5 +12,5 @@ __version__: str
12
12
  __version_tuple__: VERSION_TUPLE
13
13
  version_tuple: VERSION_TUPLE
14
14
 
15
- __version__ = version = '0.0.4'
16
- __version_tuple__ = version_tuple = (0, 0, 4)
15
+ __version__ = version = '0.0.6'
16
+ __version_tuple__ = version_tuple = (0, 0, 6)
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.2
2
2
  Name: pywebexec
3
- Version: 0.0.4
3
+ Version: 0.0.6
4
4
  Summary: Simple Python HTTP Exec Server
5
5
  Home-page: https://github.com/joknarf/pywebexec
6
6
  Author: Franck Jouvanceau
@@ -78,12 +78,13 @@ $ pip install pywebexec
78
78
  $ pywebexec
79
79
  ```
80
80
 
81
- * Launch commands with params/view live output/Status using browser `http://<yourserver>:8080`
81
+ * Launch commands with params/view live output/Status using browser
82
+ ![image](https://github.com/user-attachments/assets/921da56f-6d4b-46e3-b16c-e01a2dc9accf)
82
83
 
83
84
  ## features
84
85
 
85
86
  * Serve executables in current directory
86
- * Launch commands with params from web browser
87
+ * Launch commands with params from web browser or API call
87
88
  * Follow live output
88
89
  * Stop command
89
90
  * Relaunch command
File without changes
File without changes
File without changes
File without changes