driverclient 0.2.21__tar.gz → 0.2.22__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.
- {driverclient-0.2.21 → driverclient-0.2.22}/PKG-INFO +1 -1
- {driverclient-0.2.21 → driverclient-0.2.22}/pyproject.toml +1 -1
- {driverclient-0.2.21 → driverclient-0.2.22}/src/driverclient/__init__.py +1 -1
- {driverclient-0.2.21 → driverclient-0.2.22}/src/driverclient/ops/install.py +3 -3
- {driverclient-0.2.21 → driverclient-0.2.22}/src/driverclient/ops/offline.py +4 -4
- {driverclient-0.2.21 → driverclient-0.2.22}/src/driverclient/ops/scan.py +1 -1
- {driverclient-0.2.21 → driverclient-0.2.22}/.gitignore +0 -0
- {driverclient-0.2.21 → driverclient-0.2.22}/README.md +0 -0
- {driverclient-0.2.21 → driverclient-0.2.22}/src/driverclient/__main__.py +0 -0
- {driverclient-0.2.21 → driverclient-0.2.22}/src/driverclient/config.json +0 -0
- {driverclient-0.2.21 → driverclient-0.2.22}/src/driverclient/config.py +0 -0
- {driverclient-0.2.21 → driverclient-0.2.22}/src/driverclient/core/__init__.py +0 -0
- {driverclient-0.2.21 → driverclient-0.2.22}/src/driverclient/core/hardware.py +0 -0
- {driverclient-0.2.21 → driverclient-0.2.22}/src/driverclient/core/http.py +0 -0
- {driverclient-0.2.21 → driverclient-0.2.22}/src/driverclient/core/hwid.py +0 -0
- {driverclient-0.2.21 → driverclient-0.2.22}/src/driverclient/core/proc.py +0 -0
- {driverclient-0.2.21 → driverclient-0.2.22}/src/driverclient/events.py +0 -0
- {driverclient-0.2.21 → driverclient-0.2.22}/src/driverclient/main.py +0 -0
- {driverclient-0.2.21 → driverclient-0.2.22}/src/driverclient/ops/__init__.py +0 -0
- {driverclient-0.2.21 → driverclient-0.2.22}/src/driverclient/ops/automate.py +0 -0
- {driverclient-0.2.21 → driverclient-0.2.22}/src/driverclient/ops/capture.py +0 -0
- {driverclient-0.2.21 → driverclient-0.2.22}/src/driverclient/ops/diagnose.py +0 -0
- {driverclient-0.2.21 → driverclient-0.2.22}/src/driverclient/ops/download.py +0 -0
- {driverclient-0.2.21 → driverclient-0.2.22}/src/driverclient/ops/resolve.py +0 -0
- {driverclient-0.2.21 → driverclient-0.2.22}/src/driverclient/py.typed +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: driverclient
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.22
|
|
4
4
|
Summary: Driver Server client with an embeddable connector for config injection at runtime.
|
|
5
5
|
Project-URL: Homepage, https://example.com/driverclient
|
|
6
6
|
Author-email: Raja Sanaullah <sanaullah@99technologies.com>
|
|
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "driverclient"
|
|
7
|
-
version = "0.2.
|
|
7
|
+
version = "0.2.22"
|
|
8
8
|
description = "Driver Server client with an embeddable connector for config injection at runtime."
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
requires-python = ">=3.10"
|
|
@@ -209,7 +209,7 @@ def resolve_and_install(force: bool = False) -> InstallResult:
|
|
|
209
209
|
total=len(all_results), ok=len(installed_ok), failed=len(install_failed),
|
|
210
210
|
skipped=len(skipped_now), reboot_required=reboot_required)
|
|
211
211
|
for r in install_failed:
|
|
212
|
-
events.error("install", f"
|
|
212
|
+
events.error("install", f" [x] {r.binding_id}: {r.error}",
|
|
213
213
|
binding_id=r.binding_id, error=r.error)
|
|
214
214
|
|
|
215
215
|
return InstallResult(
|
|
@@ -330,7 +330,7 @@ def _batch_install_infs(inf_drivers: list[tuple[dict, Path]], base: Path,
|
|
|
330
330
|
tag = " (reboot required)" if reboot else ""
|
|
331
331
|
(events.ok if ok else events.error)(
|
|
332
332
|
"install",
|
|
333
|
-
f" {'
|
|
333
|
+
f" {'[ok]' if ok else '[x]'} batch-installed {n} INF driver(s) ({dur}ms){tag}",
|
|
334
334
|
count=n, duration_ms=dur, reboot_required=reboot, error=err)
|
|
335
335
|
|
|
336
336
|
return [
|
|
@@ -359,7 +359,7 @@ def _install_one_exe(driver: dict, driver_dir: Path, cfg: dict) -> DriverResult:
|
|
|
359
359
|
ok, err, reboot = False, str(e), False
|
|
360
360
|
dur = int((time.monotonic() - t0) * 1000)
|
|
361
361
|
(events.ok if ok else events.error)(
|
|
362
|
-
"install", f" {'
|
|
362
|
+
"install", f" {'[ok]' if ok else '[x]'} [exe] {bid} ({dur}ms)",
|
|
363
363
|
binding_id=bid, duration_ms=dur, error=err, reboot_required=reboot)
|
|
364
364
|
return DriverResult(binding_id=bid, success=ok, error=err,
|
|
365
365
|
duration_ms=dur, reboot_required=reboot)
|
|
@@ -70,7 +70,7 @@ def resolve_and_download() -> OfflineResult:
|
|
|
70
70
|
|
|
71
71
|
drivers = result.drivers
|
|
72
72
|
events.start("offline",
|
|
73
|
-
f"[offline] {len(drivers)} driver(s)
|
|
73
|
+
f"[offline] {len(drivers)} driver(s) -> downloading to {target} ...",
|
|
74
74
|
total=len(drivers))
|
|
75
75
|
|
|
76
76
|
downloaded = download_drivers(drivers, target, cfg)
|
|
@@ -82,12 +82,12 @@ def resolve_and_download() -> OfflineResult:
|
|
|
82
82
|
(ok if success else failed).append(bid)
|
|
83
83
|
|
|
84
84
|
for bid in failed:
|
|
85
|
-
events.error("offline", f"
|
|
85
|
+
events.error("offline", f" [x] {bid}: download_failed", binding_id=bid)
|
|
86
86
|
|
|
87
87
|
events.done(
|
|
88
88
|
"offline",
|
|
89
|
-
f"[offline] Done
|
|
90
|
-
f"
|
|
89
|
+
f"[offline] Done - {len(ok)} downloaded {len(failed)} failed "
|
|
90
|
+
f"-> {target} (DISM injects offline next)",
|
|
91
91
|
total=len(downloaded), ok=len(ok), failed=len(failed),
|
|
92
92
|
target_dir=str(target),
|
|
93
93
|
)
|
|
@@ -369,7 +369,7 @@ def _print_summary(r: ScanResult) -> None:
|
|
|
369
369
|
events.progress("scan", "[scan] Missing drivers:")
|
|
370
370
|
for d in r.missing_driver:
|
|
371
371
|
name = _device_label(d)
|
|
372
|
-
events.progress("scan", f"
|
|
372
|
+
events.progress("scan", f" [x] {name}",
|
|
373
373
|
device_name=name, class_name=d.class_name)
|
|
374
374
|
|
|
375
375
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|