atomicshop 2.18.11__py3-none-any.whl → 2.18.12__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.
Potentially problematic release.
This version of atomicshop might be problematic. Click here for more details.
- atomicshop/__init__.py +1 -1
- atomicshop/wrappers/winregw/winreg_installed_software.py +46 -0
- {atomicshop-2.18.11.dist-info → atomicshop-2.18.12.dist-info}/METADATA +1 -1
- {atomicshop-2.18.11.dist-info → atomicshop-2.18.12.dist-info}/RECORD +7 -6
- {atomicshop-2.18.11.dist-info → atomicshop-2.18.12.dist-info}/LICENSE.txt +0 -0
- {atomicshop-2.18.11.dist-info → atomicshop-2.18.12.dist-info}/WHEEL +0 -0
- {atomicshop-2.18.11.dist-info → atomicshop-2.18.12.dist-info}/top_level.txt +0 -0
atomicshop/__init__.py
CHANGED
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import os
|
|
2
|
+
import winreg
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
def get_installed_software() -> list[dict]:
|
|
6
|
+
registry_path: str = r"SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall"
|
|
7
|
+
data: list[dict] = []
|
|
8
|
+
|
|
9
|
+
# Open the specified registry path
|
|
10
|
+
with winreg.OpenKey(winreg.HKEY_LOCAL_MACHINE, registry_path) as reg_key:
|
|
11
|
+
i = 0
|
|
12
|
+
while True:
|
|
13
|
+
try:
|
|
14
|
+
# Enumerate all sub-keys
|
|
15
|
+
subkey_name = winreg.EnumKey(reg_key, i)
|
|
16
|
+
subkey_path = os.path.join(registry_path, subkey_name)
|
|
17
|
+
with winreg.OpenKey(winreg.HKEY_LOCAL_MACHINE, subkey_path) as subkey:
|
|
18
|
+
try:
|
|
19
|
+
# Fetch DisplayName and DisplayVersion if they exist
|
|
20
|
+
display_name, _ = winreg.QueryValueEx(subkey, "DisplayName")
|
|
21
|
+
except FileNotFoundError:
|
|
22
|
+
display_name = "N/A"
|
|
23
|
+
|
|
24
|
+
try:
|
|
25
|
+
display_version, _ = winreg.QueryValueEx(subkey, "DisplayVersion")
|
|
26
|
+
except FileNotFoundError:
|
|
27
|
+
display_version = "N/A"
|
|
28
|
+
|
|
29
|
+
try:
|
|
30
|
+
install_date, _ = winreg.QueryValueEx(subkey, "InstallDate")
|
|
31
|
+
except FileNotFoundError:
|
|
32
|
+
install_date = "N/A"
|
|
33
|
+
|
|
34
|
+
if display_name != "N/A":
|
|
35
|
+
data.append({
|
|
36
|
+
"DisplayName": display_name,
|
|
37
|
+
"DisplayVersion": display_version,
|
|
38
|
+
"InstallDate": install_date,
|
|
39
|
+
"SubkeyName": subkey_name
|
|
40
|
+
})
|
|
41
|
+
except OSError:
|
|
42
|
+
break # No more subkeys
|
|
43
|
+
|
|
44
|
+
i += 1
|
|
45
|
+
|
|
46
|
+
return data
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
atomicshop/__init__.py,sha256=
|
|
1
|
+
atomicshop/__init__.py,sha256=rUs7ajmP6XgocQoIOp543DfqaYuO8FhGIK5J0sgKi54,124
|
|
2
2
|
atomicshop/_basics_temp.py,sha256=6cu2dd6r2dLrd1BRNcVDKTHlsHs_26Gpw8QS6v32lQ0,3699
|
|
3
3
|
atomicshop/_create_pdf_demo.py,sha256=Yi-PGZuMg0RKvQmLqVeLIZYadqEZwUm-4A9JxBl_vYA,3713
|
|
4
4
|
atomicshop/_patch_import.py,sha256=ENp55sKVJ0e6-4lBvZnpz9PQCt3Otbur7F6aXDlyje4,6334
|
|
@@ -318,9 +318,10 @@ atomicshop/wrappers/socketw/socket_wrapper.py,sha256=WtylpezgIIBuz-A6PfM0hO1sm9E
|
|
|
318
318
|
atomicshop/wrappers/socketw/ssl_base.py,sha256=kmiif84kMhBr5yjQW17p935sfjR5JKG0LxIwBA4iVvU,2275
|
|
319
319
|
atomicshop/wrappers/socketw/statistics_csv.py,sha256=fgMzDXI0cybwUEqAxprRmY3lqbh30KAV-jOpoFKT-m8,3395
|
|
320
320
|
atomicshop/wrappers/winregw/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
321
|
+
atomicshop/wrappers/winregw/winreg_installed_software.py,sha256=on99OTT1_0g4KITAW5mSugUYgCAdVikhWjJ78a7JVIQ,1785
|
|
321
322
|
atomicshop/wrappers/winregw/winreg_network.py,sha256=AENV88H1qDidrcpyM9OwEZxX5svfi-Jb4N6FkS1xtqA,8851
|
|
322
|
-
atomicshop-2.18.
|
|
323
|
-
atomicshop-2.18.
|
|
324
|
-
atomicshop-2.18.
|
|
325
|
-
atomicshop-2.18.
|
|
326
|
-
atomicshop-2.18.
|
|
323
|
+
atomicshop-2.18.12.dist-info/LICENSE.txt,sha256=lLU7EYycfYcK2NR_1gfnhnRC8b8ccOTElACYplgZN88,1094
|
|
324
|
+
atomicshop-2.18.12.dist-info/METADATA,sha256=jseDyAnqUEjguUofH-QJlPcr8LMdNSgUEfnKLhwp1vw,10577
|
|
325
|
+
atomicshop-2.18.12.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
|
326
|
+
atomicshop-2.18.12.dist-info/top_level.txt,sha256=EgKJB-7xcrAPeqTRF2laD_Np2gNGYkJkd4OyXqpJphA,11
|
|
327
|
+
atomicshop-2.18.12.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|