virtualshell 1.0.1__cp38-cp38-win_amd64.whl → 1.0.2__cp38-cp38-win_amd64.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.
- virtualshell/_core.cp38-win_amd64.pyd +0 -0
- virtualshell/_version.py +1 -1
- virtualshell/shell.py +1 -1
- {virtualshell-1.0.1.dist-info → virtualshell-1.0.2.dist-info}/METADATA +4 -4
- virtualshell-1.0.2.dist-info/RECORD +9 -0
- virtualshell-1.0.1.dist-info/RECORD +0 -9
- {virtualshell-1.0.1.dist-info → virtualshell-1.0.2.dist-info}/WHEEL +0 -0
- {virtualshell-1.0.1.dist-info → virtualshell-1.0.2.dist-info}/licenses/LICENSE +0 -0
Binary file
|
virtualshell/_version.py
CHANGED
@@ -1 +1 @@
|
|
1
|
-
version = "1.0.
|
1
|
+
version = "1.0.2"
|
virtualshell/shell.py
CHANGED
@@ -116,7 +116,7 @@ def _raise_on_failure(
|
|
116
116
|
"""
|
117
117
|
if res.success:
|
118
118
|
return
|
119
|
-
err = (res.
|
119
|
+
err = (res.err or "")
|
120
120
|
if res.exit_code == -1 and "timeout" in err.lower():
|
121
121
|
raise ExecutionTimeoutError(f"{label} timed out after {timeout_used}s")
|
122
122
|
if raise_on_error:
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.2
|
2
2
|
Name: virtualshell
|
3
|
-
Version: 1.0.
|
3
|
+
Version: 1.0.2
|
4
4
|
Summary: High-performance PowerShell bridge (C++ pybind11 backend)
|
5
5
|
Keywords: powershell,automation,shell,cpp,pybind11
|
6
6
|
Author: Kim-Andre Myrvold
|
@@ -343,8 +343,8 @@ By default you get a Python dataclass:
|
|
343
343
|
```python
|
344
344
|
@dataclass(frozen=True)
|
345
345
|
class ExecutionResult:
|
346
|
-
|
347
|
-
|
346
|
+
out: str
|
347
|
+
err: str
|
348
348
|
exit_code: int
|
349
349
|
success: bool
|
350
350
|
execution_time: float
|
@@ -355,7 +355,7 @@ Pass `as_dataclass=False` to receive the raw C++ result object.
|
|
355
355
|
### Timeouts
|
356
356
|
|
357
357
|
* Every method accepts a `timeout` (or `per_command_timeout`) in seconds.
|
358
|
-
* On timeout: `success=False`, `exit_code=-1`, `
|
358
|
+
* On timeout: `success=False`, `exit_code=-1`, `err` contains `"timeout"`.
|
359
359
|
* Async futures resolve with the timeout result; late output is dropped in C++.
|
360
360
|
|
361
361
|
---
|
@@ -0,0 +1,9 @@
|
|
1
|
+
virtualshell/__init__.py,sha256=tmoVoFldry6oDZzejC_9ogkNcNkMe7X-DGEM0GKupEA,912
|
2
|
+
virtualshell/_core.cp38-win_amd64.pyd,sha256=UCK-l1yDMgXvUYB20bGSr6AJdWOUaqpd8co3k3lh1og,397824
|
3
|
+
virtualshell/_version.py,sha256=fDTfVR8QJweRtGYjq1OzMb29VtMDBMwbiczMNL5kEiI,17
|
4
|
+
virtualshell/errors.py,sha256=fDblFND_Lz37HV5l6eKCkWXvrPXnI9_FfZs0bpEYFIU,196
|
5
|
+
virtualshell/shell.py,sha256=E3PQpMruBiXXVNXynaK0r1H8SPWcFIeMD8tT6ZOuYj8,20908
|
6
|
+
virtualshell-1.0.2.dist-info/METADATA,sha256=6Kr8PD6oy8KCDWACSuThCaKweeeZyyeoFc4J4zg5OWQ,20445
|
7
|
+
virtualshell-1.0.2.dist-info/WHEEL,sha256=yXMtVL9U8RkqJEJfb-z5X2s1_G1r2eGG-REYk3wgjZ0,104
|
8
|
+
virtualshell-1.0.2.dist-info/licenses/LICENSE,sha256=34HMvl-jxuw-TVFRK7do9XGJkawVmiiwmPGFfZACBpI,11548
|
9
|
+
virtualshell-1.0.2.dist-info/RECORD,,
|
@@ -1,9 +0,0 @@
|
|
1
|
-
virtualshell/__init__.py,sha256=tmoVoFldry6oDZzejC_9ogkNcNkMe7X-DGEM0GKupEA,912
|
2
|
-
virtualshell/_core.cp38-win_amd64.pyd,sha256=nF0hRqvTZjfgXSDUjnG2V7fn37-2ZjC6GaHV2kRULJA,397824
|
3
|
-
virtualshell/_version.py,sha256=VAHPzEVbVY57udXNeljbTM8BnJ-ZHOJ6hSmLAd4CYgA,17
|
4
|
-
virtualshell/errors.py,sha256=fDblFND_Lz37HV5l6eKCkWXvrPXnI9_FfZs0bpEYFIU,196
|
5
|
-
virtualshell/shell.py,sha256=yR_i4S7DxdV-nmFop-fOnzXUAsUE52dTTkgP_uYPp2A,20910
|
6
|
-
virtualshell-1.0.1.dist-info/METADATA,sha256=zPJqTmAs3bCD9vD3RWKe458wfPAB1XMOLuoVZnIgAo0,20452
|
7
|
-
virtualshell-1.0.1.dist-info/WHEEL,sha256=yXMtVL9U8RkqJEJfb-z5X2s1_G1r2eGG-REYk3wgjZ0,104
|
8
|
-
virtualshell-1.0.1.dist-info/licenses/LICENSE,sha256=34HMvl-jxuw-TVFRK7do9XGJkawVmiiwmPGFfZACBpI,11548
|
9
|
-
virtualshell-1.0.1.dist-info/RECORD,,
|
File without changes
|
File without changes
|