virtualshell 1.0.1__cp311-cp311-win_amd64.whl → 1.0.2__cp311-cp311-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.
Binary file
virtualshell/_version.py CHANGED
@@ -1 +1 @@
1
- version = "1.0.1"
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.error or "")
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.1
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
- output: str
347
- error: str
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`, `error` contains `"timeout"`.
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.cp311-win_amd64.pyd,sha256=doAi0J1gOc3_ClSLJdcvKLfFn9LagC1roTBuu_9rxXU,400384
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=oXhHG6ewLm-FNdEna2zwgy-K0KEl4claZ1ztR4VTx0I,106
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.cp311-win_amd64.pyd,sha256=ecE7Od0Rdsoji4DBMYJxaFGbE7r_-oPf5qZ5I4m2Lr8,400384
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=oXhHG6ewLm-FNdEna2zwgy-K0KEl4claZ1ztR4VTx0I,106
8
- virtualshell-1.0.1.dist-info/licenses/LICENSE,sha256=34HMvl-jxuw-TVFRK7do9XGJkawVmiiwmPGFfZACBpI,11548
9
- virtualshell-1.0.1.dist-info/RECORD,,