dkinst 0.4.1__py3-none-any.whl → 0.5.0__py3-none-any.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.
- dkinst/__init__.py +1 -1
- dkinst/installers/pywintrace.py +46 -0
- {dkinst-0.4.1.dist-info → dkinst-0.5.0.dist-info}/METADATA +1 -1
- {dkinst-0.4.1.dist-info → dkinst-0.5.0.dist-info}/RECORD +8 -7
- {dkinst-0.4.1.dist-info → dkinst-0.5.0.dist-info}/WHEEL +0 -0
- {dkinst-0.4.1.dist-info → dkinst-0.5.0.dist-info}/entry_points.txt +0 -0
- {dkinst-0.4.1.dist-info → dkinst-0.5.0.dist-info}/licenses/LICENSE +0 -0
- {dkinst-0.4.1.dist-info → dkinst-0.5.0.dist-info}/top_level.txt +0 -0
dkinst/__init__.py
CHANGED
@@ -0,0 +1,46 @@
|
|
1
|
+
from pathlib import Path
|
2
|
+
from types import ModuleType
|
3
|
+
from typing import Literal
|
4
|
+
import subprocess
|
5
|
+
import sys
|
6
|
+
|
7
|
+
from rich.console import Console
|
8
|
+
|
9
|
+
from . import _base
|
10
|
+
|
11
|
+
|
12
|
+
console = Console()
|
13
|
+
|
14
|
+
|
15
|
+
WHEEL = (
|
16
|
+
"https://github.com/fireeye/pywintrace/releases/download/v0.3.0/pywintrace-0.3.0-py3-none-any.whl"
|
17
|
+
)
|
18
|
+
|
19
|
+
|
20
|
+
class PyWintrace(_base.BaseInstaller):
|
21
|
+
def __init__(self):
|
22
|
+
super().__init__()
|
23
|
+
self.name: str = Path(__file__).stem
|
24
|
+
self.description: str = "PyWintrace Git Wheel Installer"
|
25
|
+
self.version: str = "1.0.0"
|
26
|
+
self.platforms: list = ["windows"]
|
27
|
+
self.helper: ModuleType | None = None
|
28
|
+
|
29
|
+
def install(
|
30
|
+
self,
|
31
|
+
force: bool = False
|
32
|
+
):
|
33
|
+
subprocess.check_call([sys.executable, "-m", "pip", "install", WHEEL])
|
34
|
+
|
35
|
+
def _show_help(
|
36
|
+
self,
|
37
|
+
method: Literal["install", "uninstall", "update"]
|
38
|
+
) -> None:
|
39
|
+
if method == "install":
|
40
|
+
method_help: str = (
|
41
|
+
"This method uses pip and PyWintrace latest wheel on GitHub (because there is a lower version on PyPi:\n"
|
42
|
+
" pip install https://github.com/fireeye/pywintrace/releases/download/v0.3.0/pywintrace-0.3.0-py3-none-any.whl\n"
|
43
|
+
)
|
44
|
+
print(method_help)
|
45
|
+
else:
|
46
|
+
raise ValueError(f"Unknown method '{method}'.")
|
@@ -1,10 +1,11 @@
|
|
1
|
-
dkinst/__init__.py,sha256=
|
1
|
+
dkinst/__init__.py,sha256=BSD7yWNi-JcJEI0PWTy6BnCScNaBx6sUMIxO2VFs0Qc,78
|
2
2
|
dkinst/cli.py,sha256=4jLmbW73FInE21i1FXhuhM6eymWhA4Pvicl34H62K_4,9278
|
3
3
|
dkinst/config.toml,sha256=OaTuImf9xBIbTNCrC2MfAzpPLeuDdV2R5feIfT7xImA,48
|
4
4
|
dkinst/installers/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
5
5
|
dkinst/installers/_base.py,sha256=2Ke4pQevOq3SRpCI1YKB9JrIwKIacPvAAMfjKn7IG20,10280
|
6
6
|
dkinst/installers/nodejs.py,sha256=34UObZLKjRIKcQt3Omslcqyuibm1m6u9nR6-W472gqY,1781
|
7
7
|
dkinst/installers/pycharm.py,sha256=GvH8uVCItaIjPSGPg2pyYl-7-LOkvh7gtubWmD2qvTM,1196
|
8
|
+
dkinst/installers/pywintrace.py,sha256=UM4kAhU8lyfNPRYQrVDETa9kfEL_6Cyl1XcRNo_xebs,1384
|
8
9
|
dkinst/installers/robocorp.py,sha256=yDBnA6sFjMSiOhwtyMRd59K-k6VC-42e5zVjeYZbmR4,4141
|
9
10
|
dkinst/installers/tesseract_ocr.py,sha256=iEW6S9CxzGRrhzYW0A0FMwgb6SxKXOOfCdiI1EAG5W0,2532
|
10
11
|
dkinst/installers/helpers/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
@@ -16,9 +17,9 @@ dkinst/installers/helpers/modules/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeR
|
|
16
17
|
dkinst/installers/helpers/modules/nodejs_installer.py,sha256=crilyPMcFrydvpmgZjj5Q0evT5oQswY-pLmrt2BDr54,14966
|
17
18
|
dkinst/installers/helpers/modules/pycharm_installer.py,sha256=sRuRCvqFBoCxc9XDqb3E05x-M2LmFGV8c47FsXai8Xg,4914
|
18
19
|
dkinst/installers/helpers/modules/tesseract_ocr_manager.py,sha256=lJYVJDp5OTto4GHY1xkvJUkXCR1sgcOwj3UEUvfbPps,17369
|
19
|
-
dkinst-0.
|
20
|
-
dkinst-0.
|
21
|
-
dkinst-0.
|
22
|
-
dkinst-0.
|
23
|
-
dkinst-0.
|
24
|
-
dkinst-0.
|
20
|
+
dkinst-0.5.0.dist-info/licenses/LICENSE,sha256=ohlj1rmsTHdctr-wyqmP6kbFC6Sff8pJd29v3pruZ18,1088
|
21
|
+
dkinst-0.5.0.dist-info/METADATA,sha256=dIpwylY-fb4XeopOL715mEdy0beeIIkgXcynACQkjAY,2045
|
22
|
+
dkinst-0.5.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
23
|
+
dkinst-0.5.0.dist-info/entry_points.txt,sha256=YNgO3GufKMdA_oRqWEGAVh6k00oIuPItqqChoUtU278,43
|
24
|
+
dkinst-0.5.0.dist-info/top_level.txt,sha256=_dGNrME6z6Ihv2sxGC4hfAlnVuhoDlKwx-97LZ2xtQ0,7
|
25
|
+
dkinst-0.5.0.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|