virtualshell 1.0.0__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.
- virtualshell/__init__.py +1 -1
- virtualshell/_core.cp311-win_amd64.pyd +0 -0
- virtualshell/_version.py +1 -1
- virtualshell/shell.py +3 -3
- {virtualshell-1.0.0.dist-info → virtualshell-1.0.2.dist-info}/METADATA +23 -15
- virtualshell-1.0.2.dist-info/RECORD +9 -0
- virtualshell-1.0.0.dist-info/RECORD +0 -9
- {virtualshell-1.0.0.dist-info → virtualshell-1.0.2.dist-info}/WHEEL +0 -0
- {virtualshell-1.0.0.dist-info → virtualshell-1.0.2.dist-info}/licenses/LICENSE +0 -0
virtualshell/__init__.py
CHANGED
Binary file
|
virtualshell/_version.py
CHANGED
@@ -1 +1 @@
|
|
1
|
-
version = "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:
|
@@ -168,8 +168,8 @@ class ExecutionResult:
|
|
168
168
|
def from_cpp(cls, r: _CPP_ExecResult) -> "ExecutionResult":
|
169
169
|
# Attribute access is defensive to tolerate ABI field name differences.
|
170
170
|
return cls(
|
171
|
-
out=getattr(r, "
|
172
|
-
err=getattr(r, "
|
171
|
+
out=getattr(r, "out", ""),
|
172
|
+
err=getattr(r, "err", ""),
|
173
173
|
exit_code=int(getattr(r, "exit_code", getattr(r, "exitCode", -1))),
|
174
174
|
success=bool(getattr(r, "success", False)),
|
175
175
|
execution_time=float(getattr(r, "execution_time", getattr(r, "executionTime", 0.0))),
|
@@ -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
|
@@ -217,7 +217,6 @@ Project-URL: Issues, https://github.com/Chamoswor/virtualshell/issues
|
|
217
217
|
Requires-Python: >=3.8
|
218
218
|
Description-Content-Type: text/markdown
|
219
219
|
|
220
|
-
````markdown
|
221
220
|
# virtualshell
|
222
221
|
|
223
222
|
High-performance Python façade over a **C++ PowerShell runner**.
|
@@ -241,12 +240,22 @@ A single long-lived PowerShell process is managed in C++, handling pipes, thread
|
|
241
240
|
pip install virtualshell
|
242
241
|
````
|
243
242
|
|
244
|
-
|
243
|
+
## Platform & Python Support
|
244
|
+
|
245
|
+
Prebuilt wheels are provided via PyPI for common platforms and Python versions.
|
246
|
+
This means you can usually `pip install virtualshell` without needing a compiler.
|
247
|
+
|
248
|
+
**Supported Python versions:**
|
249
|
+
- 3.8, 3.9, 3.10, 3.11, 3.12, 3.13
|
250
|
+
|
251
|
+
**Supported platforms:**
|
252
|
+
- **Windows** (x86_64, MSVC build)
|
253
|
+
- **Linux** (x86_64, aarch64, manylinux2014/2.28)
|
254
|
+
- **macOS** (universal2: x86_64 + arm64)
|
255
|
+
|
256
|
+
If your platform is not listed above, pip will fall back to building from source.
|
257
|
+
See [Building from source](#building-from-source-advanced) for details.
|
245
258
|
|
246
|
-
* **Windows 10/11 x64**
|
247
|
-
* **Linux**: x86_64 and aarch64 (manylinux_2_28 / glibc ≥ 2.28)
|
248
|
-
* **macOS**: 12+ (x86_64 and arm64)
|
249
|
-
* **Python**: 3.8 – 3.13
|
250
259
|
|
251
260
|
> Requires PowerShell on `PATH` (`pwsh` preferred, `powershell` also supported).
|
252
261
|
|
@@ -334,8 +343,8 @@ By default you get a Python dataclass:
|
|
334
343
|
```python
|
335
344
|
@dataclass(frozen=True)
|
336
345
|
class ExecutionResult:
|
337
|
-
|
338
|
-
|
346
|
+
out: str
|
347
|
+
err: str
|
339
348
|
exit_code: int
|
340
349
|
success: bool
|
341
350
|
execution_time: float
|
@@ -346,7 +355,7 @@ Pass `as_dataclass=False` to receive the raw C++ result object.
|
|
346
355
|
### Timeouts
|
347
356
|
|
348
357
|
* Every method accepts a `timeout` (or `per_command_timeout`) in seconds.
|
349
|
-
* On timeout: `success=False`, `exit_code=-1`, `
|
358
|
+
* On timeout: `success=False`, `exit_code=-1`, `err` contains `"timeout"`.
|
350
359
|
* Async futures resolve with the timeout result; late output is dropped in C++.
|
351
360
|
|
352
361
|
---
|
@@ -419,9 +428,8 @@ Shell(initial_commands=[
|
|
419
428
|
|
420
429
|
---
|
421
430
|
|
422
|
-
|
423
|
-
|
424
|
-
You normally won’t need this when using wheels.
|
431
|
+
# Building from source (advanced)
|
432
|
+
Source builds require a C++ toolchain and CMake.
|
425
433
|
|
426
434
|
**Prereqs:** Python ≥3.8, C++17, CMake ≥3.20, `scikit-build-core`, `pybind11`.
|
427
435
|
|
@@ -439,7 +447,7 @@ python -m pip install -e .
|
|
439
447
|
```
|
440
448
|
|
441
449
|
* Linux wheels target **manylinux_2_28** (x86_64/aarch64).
|
442
|
-
* macOS builds target **
|
450
|
+
* macOS builds target **universal2** (x86_64 + arm64).
|
443
451
|
|
444
452
|
---
|
445
453
|
|
@@ -458,4 +466,4 @@ Apache 2.0 — see [LICENSE](LICENSE).
|
|
458
466
|
|
459
467
|
---
|
460
468
|
|
461
|
-
*Issues & feedback are welcome. Please include Python version, OS, your PowerShell path (`pwsh`/`powershell`), and a minimal repro.*
|
469
|
+
*Issues & feedback are welcome. Please include Python version, OS, your PowerShell path (`pwsh`/`powershell`), and a minimal repro.*
|
@@ -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=8PE1B8yiMyZg2gwG18EvXt2vDEflvBeAdh7mNn58-GE,912
|
2
|
-
virtualshell/_core.cp311-win_amd64.pyd,sha256=JXsNHyFiMFET0-ghxmZbXpKiguaqZ_hX9FBAfTDDJXQ,400384
|
3
|
-
virtualshell/_version.py,sha256=ZgAXEMjAMZx3cZroB6PgojYwdhTZjPbU5RqZEfdYQv0,17
|
4
|
-
virtualshell/errors.py,sha256=fDblFND_Lz37HV5l6eKCkWXvrPXnI9_FfZs0bpEYFIU,196
|
5
|
-
virtualshell/shell.py,sha256=iHEFnbY3ggR2G-VpxAHrP3RVx3nYy1S2VxxLUTLRHa4,20915
|
6
|
-
virtualshell-1.0.0.dist-info/METADATA,sha256=C0_uXHh7-Lxslvmqo8JBOW1M5gK8D1YieCEVQgWf21c,20087
|
7
|
-
virtualshell-1.0.0.dist-info/WHEEL,sha256=oXhHG6ewLm-FNdEna2zwgy-K0KEl4claZ1ztR4VTx0I,106
|
8
|
-
virtualshell-1.0.0.dist-info/licenses/LICENSE,sha256=34HMvl-jxuw-TVFRK7do9XGJkawVmiiwmPGFfZACBpI,11548
|
9
|
-
virtualshell-1.0.0.dist-info/RECORD,,
|
File without changes
|
File without changes
|