youpdated-scanning 0.1.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.
- youpdated_scanning/__init__.py +75 -0
- youpdated_scanning/base.py +70 -0
- youpdated_scanning/browsers.py +115 -0
- youpdated_scanning/cargo.py +76 -0
- youpdated_scanning/dotnet.py +60 -0
- youpdated_scanning/electron.py +126 -0
- youpdated_scanning/flatpak.py +53 -0
- youpdated_scanning/golang.py +141 -0
- youpdated_scanning/homebrew.py +78 -0
- youpdated_scanning/macapps.py +177 -0
- youpdated_scanning/npm.py +75 -0
- youpdated_scanning/pipx.py +87 -0
- youpdated_scanning/py.typed +0 -0
- youpdated_scanning/steam.py +245 -0
- youpdated_scanning/uv.py +68 -0
- youpdated_scanning/winget.py +318 -0
- youpdated_scanning/wingetnames.py +279 -0
- youpdated_scanning-0.1.0.dist-info/METADATA +61 -0
- youpdated_scanning-0.1.0.dist-info/RECORD +22 -0
- youpdated_scanning-0.1.0.dist-info/WHEEL +5 -0
- youpdated_scanning-0.1.0.dist-info/licenses/LICENSE +21 -0
- youpdated_scanning-0.1.0.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,279 @@
|
|
|
1
|
+
"""winget's name and publisher normalization
|
|
2
|
+
|
|
3
|
+
A port of ``NormalizationInitial`` in winget-cli's ``src/AppInstallerCommonCore/NameNormalization.cpp`` (MIT).
|
|
4
|
+
"""
|
|
5
|
+
|
|
6
|
+
from __future__ import annotations
|
|
7
|
+
|
|
8
|
+
import re
|
|
9
|
+
import sys
|
|
10
|
+
import unicodedata
|
|
11
|
+
from dataclasses import dataclass
|
|
12
|
+
from functools import cache
|
|
13
|
+
|
|
14
|
+
ARCHITECTURES = ("X86", "X64", "Arm", "Arm64")
|
|
15
|
+
_SPACE = " \t\r\n\f\v"
|
|
16
|
+
|
|
17
|
+
LOCALES = frozenset(locale.casefold() for locale in """
|
|
18
|
+
AF-ZA AM-ET AR-AE AR-BH AR-DZ AR-EG AR-IQ AR-JO AR-KW AR-LB AR-LY AR-MA ARN-CL AR-OM AR-QA AR-SA AR-SY AR-TN
|
|
19
|
+
AR-YE AS-IN BA-RU BE-BY BG-BG BN-BD BN-IN BO-CN BR-FR CA-ES CA-ES-VALENCIA CO-FR CS-CZ CY-GB DA-DK DE-AT DE-CH
|
|
20
|
+
DE-DE DE-LI DE-LU DSB-DE DV-MV EL-GR EN-AU EN-BZ EN-CA EN-GB EN-IE EN-IN EN-JM EN-MY EN-NZ EN-PH EN-SG EN-TT
|
|
21
|
+
EN-US EN-ZA EN-ZW ES-AR ES-BO ES-CL ES-CO ES-CR ES-DO ES-EC ES-ES ES-GT ES-HN ES-MX ES-NI ES-PA ES-PE ES-PR
|
|
22
|
+
ES-PY ES-SV ES-US ES-UY ES-VE ET-EE EU-ES FA-IR FI-FI FIL-PH FO-FO FR-BE FR-CA FR-CH FR-FR FR-LU FR-MC FY-NL
|
|
23
|
+
GA-IE GD-DB GL-ES GSW-FR GU-IN HE-IL HI-IN HR-BA HR-HR HSB-DE HU-HU HY-AM ID-ID IG-NG II-CN IS-IS IT-CH IT-IT
|
|
24
|
+
JA-JP KA-GE KK-KZ KL-GL KM-KH KN-IN KOK-IN KO-KR KY-KG LB-LU LO-LA LT-LT LV-LV MI-NZ MK-MK ML-IN MN-MN MOH-CA
|
|
25
|
+
MR-IN MS-BN MS-MY MT-MT NB-NO NE-NP NL-BE NL-NL NN-NO NSO-ZA OC-FR OR-IN PA-IN PL-PL PRS-AF PS-AF PT-BR PT-PT
|
|
26
|
+
QUT-GT QUZ-BO QUZ-EC QUZ-PE RM-CH RO-RO RU-RU RW-RW SAH-RU SA-IN SE-FI SE-NO SE-SE SI-LK SK-SK SL-SI SMA-NO
|
|
27
|
+
SMA-SE SMJ-NO SMJ-SE SMN-FI SMS-FI SQ-AL SV-FI SV-SE SW-KE SYR-SY TA-IN TE-IN TH-TH TK-TM TN-ZA TR-TR TT-RU
|
|
28
|
+
UG-CN UK-UA UR-PK VI-VN WO-SN XH-ZA YO-NG ZH-CN ZH-HK ZH-MO ZH-SG ZH-TW ZU-ZA AZ-CYRL-AZ AZ-LATN-AZ BS-CYRL-BA
|
|
29
|
+
BS-LATN-BA HA-LATN-NG IU-CANS-CA IU-LATN-CA MN-MONG-CN SR-CYRL-BA SR-CYRL-CS SR-CYRL-ME SR-CYRL-RS SR-LATN-BA
|
|
30
|
+
SR-LATN-CS SR-LATN-ME SR-LATN-RS TG-CYRL-TJ TZM-LATN-DZ UZ-CYRL-UZ UZ-LATN-UZ
|
|
31
|
+
""".split())
|
|
32
|
+
|
|
33
|
+
LEGAL_SUFFIXES = frozenset(suffix.casefold() for suffix in """
|
|
34
|
+
AB AD AG APS AS ASA BV CO CV DOO eV GES GESMBH GMBH INC KG KS PS LLC LP LTD LTDA MBH NV PLC SL PTY PVT SA SARL
|
|
35
|
+
SC SCA SP SPA SRL SRO COMPANY CORP CORPORATION HOLDING HOLDINGS INCORPORATED LIMITED SUBSIDIARY
|
|
36
|
+
""".split())
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
@dataclass(frozen=True)
|
|
40
|
+
class Normalized:
|
|
41
|
+
name: str
|
|
42
|
+
publisher: str
|
|
43
|
+
architecture: str | None = None
|
|
44
|
+
locale: str = ""
|
|
45
|
+
|
|
46
|
+
def name_with_architecture(self) -> str:
|
|
47
|
+
"""The name as winget indexes it with its architecture: ``python(X64)``"""
|
|
48
|
+
return f"{self.name}({self.architecture})" if self.architecture else self.name
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
def normalize(name: str, publisher: str) -> Normalized:
|
|
52
|
+
"""``name`` and ``publisher`` as winget normalizes them, case kept. Fold them first to match winget's index"""
|
|
53
|
+
patterns = _patterns()
|
|
54
|
+
normalized, architecture, locale = _name(name, patterns)
|
|
55
|
+
return Normalized(normalized, _publisher(publisher, patterns), architecture, locale)
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
def for_index(name: str, publisher: str) -> Normalized:
|
|
59
|
+
"""``normalize`` as winget's index search does it: case folded first"""
|
|
60
|
+
return normalize(name.casefold(), publisher.casefold())
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
def _prepare(value: str) -> str:
|
|
64
|
+
value = unicodedata.normalize("NFKC", value).strip(_SPACE)
|
|
65
|
+
at = value.find("@@", 3)
|
|
66
|
+
value = value[:at] if at != -1 else value
|
|
67
|
+
while len(value) >= 2 and ((value[0] == '"' and value[-1] == '"') or (value[0] == "(" and value[-1] == ")")):
|
|
68
|
+
value = value[1:-1]
|
|
69
|
+
return value
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
def _remove(pattern: re.Pattern[str], value: str) -> tuple[str, bool]:
|
|
73
|
+
result = pattern.sub("", value)
|
|
74
|
+
return result, result != value
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
def _remove_all(patterns: list[re.Pattern[str]], value: str) -> tuple[str, bool]:
|
|
78
|
+
changed = False
|
|
79
|
+
for pattern in patterns:
|
|
80
|
+
value, removed = _remove(pattern, value)
|
|
81
|
+
changed = removed or changed
|
|
82
|
+
return value, changed
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
def _split(pattern: re.Pattern[str], value: str, stop_on_exclusion: bool = False) -> list[str]:
|
|
86
|
+
"""``value`` cut at each match, matches kept as pieces of their own, as ICU's ``ForEach`` hands them over"""
|
|
87
|
+
tokens: list[str] = []
|
|
88
|
+
position = 0
|
|
89
|
+
pieces = []
|
|
90
|
+
for match in pattern.finditer(value):
|
|
91
|
+
if match.start() > position:
|
|
92
|
+
pieces.append(value[position:match.start()])
|
|
93
|
+
pieces.append(match.group(0))
|
|
94
|
+
position = match.end()
|
|
95
|
+
if position < len(value):
|
|
96
|
+
pieces.append(value[position:])
|
|
97
|
+
for piece in pieces:
|
|
98
|
+
if not piece.strip(_SPACE):
|
|
99
|
+
continue
|
|
100
|
+
# The first word is kept even if it's a legal suffix
|
|
101
|
+
if tokens and piece.casefold() in LEGAL_SUFFIXES:
|
|
102
|
+
if stop_on_exclusion:
|
|
103
|
+
break
|
|
104
|
+
continue
|
|
105
|
+
tokens.append(piece)
|
|
106
|
+
return tokens
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
def _name(value: str, p: _Patterns) -> tuple[str, str | None, str]:
|
|
110
|
+
value = _prepare(value)
|
|
111
|
+
if p.sap_package.fullmatch(value):
|
|
112
|
+
return value, None, ""
|
|
113
|
+
|
|
114
|
+
architecture = None
|
|
115
|
+
value, found = _remove(p.arch_32_or_64_bit, value)
|
|
116
|
+
if not found:
|
|
117
|
+
for patterns, arch in (
|
|
118
|
+
((p.arch_x64, p.arch_64_bit), "X64"), ((p.arch_x32, p.arch_32_bit), "X86"),
|
|
119
|
+
((p.arch_arm64,), "Arm64"), ((p.arch_arm,), "Arm"),
|
|
120
|
+
):
|
|
121
|
+
for pattern in patterns:
|
|
122
|
+
value, found = _remove(pattern, value)
|
|
123
|
+
if found:
|
|
124
|
+
architecture = arch
|
|
125
|
+
break
|
|
126
|
+
if found:
|
|
127
|
+
break
|
|
128
|
+
|
|
129
|
+
value, locale = _remove_locale(value, p)
|
|
130
|
+
value = p.kb_numbers.sub(r"\1", value)
|
|
131
|
+
changed = True
|
|
132
|
+
while changed:
|
|
133
|
+
value, changed = _remove_all(p.program_name, value)
|
|
134
|
+
value = "".join(_split(p.program_name_split, value))
|
|
135
|
+
return p.non_letters_and_digits.sub("", value), architecture, locale
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
def _remove_locale(value: str, p: _Patterns) -> tuple[str, str]:
|
|
139
|
+
found = False
|
|
140
|
+
common = ""
|
|
141
|
+
kept = []
|
|
142
|
+
position = 0
|
|
143
|
+
for match in p.locale.finditer(value):
|
|
144
|
+
kept.append(value[position:match.start()])
|
|
145
|
+
position = match.end()
|
|
146
|
+
text = match.group(0).casefold()
|
|
147
|
+
if text not in LOCALES:
|
|
148
|
+
kept.append(match.group(0))
|
|
149
|
+
elif not found:
|
|
150
|
+
common, found = text, True
|
|
151
|
+
elif common and common != text:
|
|
152
|
+
# Several: keep only the language they share, if they do
|
|
153
|
+
if common.split("-", 1)[0] != text.split("-", 1)[0]:
|
|
154
|
+
common = ""
|
|
155
|
+
else:
|
|
156
|
+
common = common.split("-", 1)[0]
|
|
157
|
+
kept.append(value[position:])
|
|
158
|
+
return "".join(kept), common
|
|
159
|
+
|
|
160
|
+
|
|
161
|
+
def _publisher(value: str, p: _Patterns) -> str:
|
|
162
|
+
value = _prepare(value)
|
|
163
|
+
changed = True
|
|
164
|
+
while changed:
|
|
165
|
+
value, changed = _remove_all(p.publisher_name, value)
|
|
166
|
+
value = "".join(_split(p.publisher_name_split, value, stop_on_exclusion=True))
|
|
167
|
+
return p.non_letters_and_digits.sub("", value)
|
|
168
|
+
|
|
169
|
+
|
|
170
|
+
def _category(*categories: str) -> str:
|
|
171
|
+
"""A character class body of every code point in the Unicode ``categories``, as ranges"""
|
|
172
|
+
table = _categories()
|
|
173
|
+
return "".join(table.get(category, "") for category in categories)
|
|
174
|
+
|
|
175
|
+
|
|
176
|
+
@cache
|
|
177
|
+
def _categories() -> dict[str, str]:
|
|
178
|
+
"""The categories winget's patterns use, each as character class ranges"""
|
|
179
|
+
wanted = {"Pd", "Pc", "Po", "Ps", "Pe", "Zs", "Zl", "Zp"}
|
|
180
|
+
ranges: dict[str, list[list[int]]] = {category: [] for category in wanted}
|
|
181
|
+
for code in range(sys.maxunicode + 1):
|
|
182
|
+
category = unicodedata.category(chr(code))
|
|
183
|
+
if category in wanted:
|
|
184
|
+
spans = ranges[category]
|
|
185
|
+
if spans and spans[-1][1] == code - 1:
|
|
186
|
+
spans[-1][1] = code
|
|
187
|
+
else:
|
|
188
|
+
spans.append([code, code])
|
|
189
|
+
return {
|
|
190
|
+
category: "".join(
|
|
191
|
+
re.escape(chr(start)) + ("" if start == end else "-" + re.escape(chr(end))) for start, end in spans
|
|
192
|
+
)
|
|
193
|
+
for category, spans in ranges.items()
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
|
|
197
|
+
class _Patterns:
|
|
198
|
+
def __init__(self) -> None:
|
|
199
|
+
L = "[^\\W\\d_]"
|
|
200
|
+
notL = "[\\W\\d_]"
|
|
201
|
+
Nd, notNd = r"\d", r"\D"
|
|
202
|
+
LNd = "[^\\W_]"
|
|
203
|
+
notLNd = "[\\W_]"
|
|
204
|
+
Pd, Pc, Po = _category("Pd"), _category("Pc"), _category("Po")
|
|
205
|
+
Ps, Pe, Z = _category("Ps"), _category("Pe"), _category("Zs", "Zl", "Zp")
|
|
206
|
+
Lu = L
|
|
207
|
+
start = f"(?:^|(?<={notLNd}))"
|
|
208
|
+
flags = re.IGNORECASE
|
|
209
|
+
|
|
210
|
+
def c(pattern: str) -> re.Pattern[str]:
|
|
211
|
+
return re.compile(pattern, flags)
|
|
212
|
+
|
|
213
|
+
self.arch_x32 = c(rf"{start}(X32|X86)(?={notNd}|$)(?:\sEDITION)?")
|
|
214
|
+
self.arch_x64 = c(rf"{start}(X64|AMD64|X86([{Pd}{Pc}]64))(?={notNd}|$)(?:\sEDITION)?")
|
|
215
|
+
self.arch_arm64 = c(rf"{start}(ARM64|AARCH64)(?={notNd}|$)(?:\sEDITION)?")
|
|
216
|
+
self.arch_arm = c(rf"{start}(ARM32)(?={notNd}|$)(?:\sEDITION)?")
|
|
217
|
+
self.arch_32_bit = c(rf"{start}(32[{Pd}{Pc}{Z}]?BIT)S?(?:\sEDITION)?")
|
|
218
|
+
self.arch_64_bit = c(rf"{start}(64[{Pd}{Pc}{Z}]?BIT)S?(?:\sEDITION)?")
|
|
219
|
+
self.arch_32_or_64_bit = c(rf"{start}((64[\\/]32|32[\\/]64)[{Pd}{Pc}{Z}]?BIT)S?(?:\sEDITION)?")
|
|
220
|
+
|
|
221
|
+
self.locale = c(rf"(?<![A-Z])((?:{Lu}{{2,3}}(-(CANS|CYRL|LATN|MONG))?-{Lu}{{2}})(?![A-Z])(?:-VALENCIA)?)")
|
|
222
|
+
self.sap_package = c(
|
|
223
|
+
rf"(?:[^\W_]+[\._])+[^\W_]+(?:-(?:{Nd}+\.)+{Nd}+)(?:-(?:{Lu}{{2}}(?:_{Lu}{{2}})?|CORE))(?:-(?:{Lu}{{2}}|{Nd}{{2}}))"
|
|
224
|
+
)
|
|
225
|
+
self.kb_numbers = c(r"\((KB\d+)\)")
|
|
226
|
+
self.non_letters_and_digits = c(notLNd)
|
|
227
|
+
|
|
228
|
+
uri_protocol = c(rf"(?<!{L})(?:http[s]?|ftp)://")
|
|
229
|
+
words = "V|VER|VERSI(?:O|Ó)N|VERSÃO|VERSIE|WERSJA|BUILD|RELEASE|RC|SP"
|
|
230
|
+
version_delimited = c(
|
|
231
|
+
rf"((?<!{L})(?:{words}){notL}?)?{Nd}+([{Po}{Pd}{Pc}]{Nd}?(RC|B|A|R|SP|K)?{Nd}+)+([{Po}{Pd}{Pc}]?{LNd}+)*"
|
|
232
|
+
)
|
|
233
|
+
version = c(
|
|
234
|
+
rf"(FOR\s)?(?<!{L})(?:P|R|{words})(?:{notL}|{notL}{L})?({Nd}|\.{Nd})+(?:RC|B|A|R|V|SP)?{Nd}?"
|
|
235
|
+
)
|
|
236
|
+
version_letter = c(rf"(?<!{L})(?:(?:{words}){notL})?{Lu}{Nd}+(?:[{Po}{Pd}{Pc}]{Nd}+)+")
|
|
237
|
+
non_nested_bracket = c(r"\([^\(\)]*\)|\[[^\[\]]*\]")
|
|
238
|
+
bracket_enclosed = c(rf'(?:[{Ps}].*[{Pe}]|".*")')
|
|
239
|
+
leading_symbols = c(rf"^{notLNd}+")
|
|
240
|
+
trailing_non_letters = c(rf"{notL}+$")
|
|
241
|
+
prefix_parens = c(r"^\(.*?\)")
|
|
242
|
+
empty_parens = c(r'(\(\s*\)|\[\s*\]|"\s*")')
|
|
243
|
+
en = c(r"\sEN\s*$")
|
|
244
|
+
trailing_symbols = c(rf"{notLNd}+$")
|
|
245
|
+
file_path = c(r"((INSTALLED\sAT|IN)\s)?[CDEF]:\\(?:.+\\)?[^\s]*\\?")
|
|
246
|
+
file_path_ghs = c(r"\(CHANGE #\d{1,2} TO [CDEF]:\\(?:.+\\)?[^\s]*\\?\)")
|
|
247
|
+
file_path_parens = c(r"\([CDEF]:\\(?:.+\\)?[^\s]*\\?\)")
|
|
248
|
+
file_path_quotes = c(r'"[CDEF]:\\(?:.+\\)?[^\s]*\\?"')
|
|
249
|
+
roblox = _Keep(c(r"^(ROBLOX\s(?:PLAYER|STUDIO))\sFOR\s.*"))
|
|
250
|
+
bomgar = _Keep(c(r"^(BOMGAR\s(?:JUMP CLIENT|(?:ACCESS|REPRESENTATIVE) CONSOLE|BUTTON)|EMBEDDED CALLBACK)\s.*"))
|
|
251
|
+
acronym_separators = c(rf"(?:(?<=^{L})|(?<={notL}{L}))(\.|/)(?={L}(?:{notL}|$))")
|
|
252
|
+
non_letters = c(r"(?:^|(?<=\s))(?:[\W\d_])+(?=\s|$)")
|
|
253
|
+
|
|
254
|
+
self.program_name = [
|
|
255
|
+
roblox, bomgar, prefix_parens, empty_parens, file_path_ghs, file_path_parens, file_path_quotes, file_path,
|
|
256
|
+
version_letter, version_delimited, version, en, non_nested_bracket, bracket_enclosed, uri_protocol,
|
|
257
|
+
leading_symbols, trailing_symbols,
|
|
258
|
+
]
|
|
259
|
+
self.publisher_name = [
|
|
260
|
+
version_delimited, version, non_nested_bracket, bracket_enclosed, uri_protocol, non_letters,
|
|
261
|
+
trailing_non_letters, acronym_separators,
|
|
262
|
+
]
|
|
263
|
+
self.program_name_split = c(r"[^\w+&]|_")
|
|
264
|
+
self.publisher_name_split = c(notLNd)
|
|
265
|
+
|
|
266
|
+
|
|
267
|
+
class _Keep:
|
|
268
|
+
"""A pattern whose match is replaced by its first group, standing in for winget's lookbehind"""
|
|
269
|
+
|
|
270
|
+
def __init__(self, pattern: re.Pattern[str]) -> None:
|
|
271
|
+
self.pattern = pattern
|
|
272
|
+
|
|
273
|
+
def sub(self, _: str, value: str) -> str:
|
|
274
|
+
return self.pattern.sub(r"\1", value)
|
|
275
|
+
|
|
276
|
+
|
|
277
|
+
@cache
|
|
278
|
+
def _patterns() -> _Patterns:
|
|
279
|
+
return _Patterns()
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: youpdated-scanning
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: Find installed sources on this machine and watch them with Youpdated
|
|
5
|
+
Author-email: Void1-1 <161782542+Void1-1@users.noreply.github.com>
|
|
6
|
+
License-Expression: MIT
|
|
7
|
+
Project-URL: Homepage, https://github.com/Void1-1/youpdated
|
|
8
|
+
Project-URL: Repository, https://github.com/Void1-1/youpdated
|
|
9
|
+
Project-URL: Issues, https://github.com/Void1-1/youpdated/issues
|
|
10
|
+
Keywords: updates,release-tracking,steam,sparkle,winget,homebrew,pipx,npm,electron,youpdated
|
|
11
|
+
Classifier: Development Status :: 3 - Alpha
|
|
12
|
+
Classifier: Environment :: Console
|
|
13
|
+
Classifier: Intended Audience :: End Users/Desktop
|
|
14
|
+
Classifier: Operating System :: OS Independent
|
|
15
|
+
Classifier: Programming Language :: Python :: 3
|
|
16
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
|
17
|
+
Classifier: Topic :: Utilities
|
|
18
|
+
Classifier: Typing :: Typed
|
|
19
|
+
Requires-Python: >=3.11
|
|
20
|
+
Description-Content-Type: text/markdown
|
|
21
|
+
License-File: LICENSE
|
|
22
|
+
Requires-Dist: youpdated>=0.7.0b2
|
|
23
|
+
Provides-Extra: dev
|
|
24
|
+
Requires-Dist: pytest>=8.0; extra == "dev"
|
|
25
|
+
Dynamic: license-file
|
|
26
|
+
|
|
27
|
+
# youpdated-scanning
|
|
28
|
+
|
|
29
|
+
Finds what's installed on this machine and adds it to your [Youpdated](https://github.com/Void1-1/youpdated) config:
|
|
30
|
+
|
|
31
|
+
- `steam`: Steam games, from each library's `appmanifest_*.acf`, under `steam`. On macOS a library on another drive or in Desktop, Documents, Downloads, or iCloud Drive makes macOS confirm before allowing the terminal to read it, so it's read only with `--only steam`
|
|
32
|
+
- `homebrew`: Homebrew formulae you installed and casks, under `homebrew`
|
|
33
|
+
- `winget`: Windows programs winget can identify, matched against winget's local index the way winget matches them, under `winget`. A program whose installer writes a version differently than winget gets no installed version
|
|
34
|
+
- `flatpak`: Flatpak apps from Flathub, under `flathub`
|
|
35
|
+
- `pipx` and `uv`: Python apps from PyPI installed with `pipx install` or `uv tool install`, under `pypi`
|
|
36
|
+
- `npm`: packages installed with `npm install -g`, under `npm`
|
|
37
|
+
- `cargo`: programs installed from crates.io with `cargo install`, under `crates`
|
|
38
|
+
- `go`: programs installed with `go install module@version`, from their build info, under `go`
|
|
39
|
+
- `dotnet`: .NET tools installed with `dotnet tool install -g`, under `nuget`
|
|
40
|
+
- `browsers`: Chrome, Brave, Firefox, and Edge on macOS and Linux (stable channel), under `browser`
|
|
41
|
+
- `apps`: macOS apps in `/Applications` and `~/Applications` with a Sparkle feed, under `sparkle`, or from the App Store, under `appstore`. A feed an app saved to its own settings with a query string or a user name, which can be a license or install id, is skipped with a warning, and a plain `http://` feed is added with one. (Youpdated expects you to manually edit or add any feeds with secrets to your config). Apps in `/Applications/Setapp` are skipped with a warning, since Setapp updates them itself
|
|
42
|
+
- `electron`: Electron apps whose `app-update.yml` names a GitHub repo, under `git`
|
|
43
|
+
|
|
44
|
+
Package managers run first. An app one of them installed isn't also added by a later scanner that finds it in the same place, such as a Homebrew cask's Sparkle feed.
|
|
45
|
+
|
|
46
|
+
It isn't part of the default install. Add it with the `scanning` extra:
|
|
47
|
+
|
|
48
|
+
```sh
|
|
49
|
+
pipx install 'youpdated[scanning]' # or: pipx inject youpdated youpdated-scanning
|
|
50
|
+
youpdated scan --test # show what would be added
|
|
51
|
+
youpdated scan
|
|
52
|
+
youpdated scan --only steam --only apps # certain scanners
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
While the Youpdated release with `scan` is a beta, add `--pip-args=--pre` to `pipx install`.
|
|
56
|
+
|
|
57
|
+
Scanning is local only. It reads files, runs package managers already installed and Spotlight's `mdls`, and makes no network requests on its own.
|
|
58
|
+
|
|
59
|
+
- winget isn't run, because `winget export` refreshes its index over the network when that's over 15 minutes old.
|
|
60
|
+
- cargo and go aren't run because `cargo` is usually rustup's proxy, which can install a toolchain, and `go` can download one.
|
|
61
|
+
- The programs that are run are given environment variables turning off their own network use: Homebrew's auto-update and analytics, npm's update notifier, uv's network access, and the .NET CLI's telemetry and workload update checks.
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
youpdated_scanning/__init__.py,sha256=jmJ5ymgLtERm0jF4NcPwqaNDM8gjrBx6OSIbuAl8EWc,2920
|
|
2
|
+
youpdated_scanning/base.py,sha256=fS7zRdH0_p9Dq6AWKf9-qhpGk2nVcfVd8NQxjdgqkvA,2471
|
|
3
|
+
youpdated_scanning/browsers.py,sha256=yuyBHHGedmbCmkShq-P3GPSL6SGlox4IdWXGfqYwNH4,4600
|
|
4
|
+
youpdated_scanning/cargo.py,sha256=238RZ2yW5XDyLHtGbq1abh4O7SSxZqA7bl3gZIwSlOc,2580
|
|
5
|
+
youpdated_scanning/dotnet.py,sha256=hemH2CBfeXYtX5dbkDzx71COQHufiI0BZRlL1Eg5HI4,2135
|
|
6
|
+
youpdated_scanning/electron.py,sha256=k3SbnhJOr7MKCiUHb2HaO_a6OQfcRwZvXRIU-aJxUpw,5024
|
|
7
|
+
youpdated_scanning/flatpak.py,sha256=ywYnMnsJcJfW3zWR_BhOAQz3oCxddUBkyBY4ykseHRI,1772
|
|
8
|
+
youpdated_scanning/golang.py,sha256=fHbg-Aozp1f2EFTybNdIObA5klLlMxoijvPKbZQaGt8,4760
|
|
9
|
+
youpdated_scanning/homebrew.py,sha256=wVaIqt1n999VOJCQh6PYfAxSDI5HHvcNHvnLvNCj9wQ,2904
|
|
10
|
+
youpdated_scanning/macapps.py,sha256=cvxM6jtd0K8MXexnuw-fC3fuj-le9mLKkud5pkiGP3U,8064
|
|
11
|
+
youpdated_scanning/npm.py,sha256=eHw_p1-D0txA_aDudNmqjriIfQxIihi1Q35mM-zYS9U,2343
|
|
12
|
+
youpdated_scanning/pipx.py,sha256=jRFbex7m-wBkv9JdMXFRGzkcx0uY5PSHJpfbR9uyxWw,3317
|
|
13
|
+
youpdated_scanning/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
14
|
+
youpdated_scanning/steam.py,sha256=E-ufcc5gh6m1se4MuCyz_S59kUzAF1S7vNQlZYsxqSM,9921
|
|
15
|
+
youpdated_scanning/uv.py,sha256=mnUeesxpAbeiQML1x0bjLhxWPRchMzQ9BewIWmnLhOg,2452
|
|
16
|
+
youpdated_scanning/winget.py,sha256=J4K24n62L9_Z27UdDJzLUn-uqHTok1s5AFIpheJdErE,12511
|
|
17
|
+
youpdated_scanning/wingetnames.py,sha256=_n6cIT32qGIbg2SXuQzCr_ptEUMg0j6B494O6YTlqoE,11766
|
|
18
|
+
youpdated_scanning-0.1.0.dist-info/licenses/LICENSE,sha256=4fdwZsf2tFQMZPyH-5tc1imt3Vd6IzQcVIs3tT7AHdM,1064
|
|
19
|
+
youpdated_scanning-0.1.0.dist-info/METADATA,sha256=j63zP1AopGl74KXC9PvTKVsqCc84FkAErRhTeuUqNg0,4136
|
|
20
|
+
youpdated_scanning-0.1.0.dist-info/WHEEL,sha256=mOdXR9C3wMVov7cSY8PY-XCzo3SmmWCHvGQr5csJoao,91
|
|
21
|
+
youpdated_scanning-0.1.0.dist-info/top_level.txt,sha256=nUxX84-XSAg5S2xkh238ETMz7ZpbvoM2_bhmxwqN9OA,19
|
|
22
|
+
youpdated_scanning-0.1.0.dist-info/RECORD,,
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Void1-1
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
youpdated_scanning
|