preparse 1.0.14.dev2__py3-none-any.whl → 1.0.14.dev3__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.
- preparse/_processing/__init__.py +8 -2
- preparse/_processing/parsing.py +1 -16
- {preparse-1.0.14.dev2.dist-info → preparse-1.0.14.dev3.dist-info}/METADATA +1 -1
- {preparse-1.0.14.dev2.dist-info → preparse-1.0.14.dev3.dist-info}/RECORD +7 -7
- {preparse-1.0.14.dev2.dist-info → preparse-1.0.14.dev3.dist-info}/WHEEL +0 -0
- {preparse-1.0.14.dev2.dist-info → preparse-1.0.14.dev3.dist-info}/licenses/LICENSE.txt +0 -0
- {preparse-1.0.14.dev2.dist-info → preparse-1.0.14.dev3.dist-info}/top_level.txt +0 -0
preparse/_processing/__init__.py
CHANGED
|
@@ -28,14 +28,20 @@ def process(
|
|
|
28
28
|
warn: FunctionType,
|
|
29
29
|
) -> list[str]:
|
|
30
30
|
"This method parses args."
|
|
31
|
+
abbr: Optional[Tuning]
|
|
31
32
|
items: list[Item]
|
|
33
|
+
if not expectsabbr:
|
|
34
|
+
abbr = None
|
|
35
|
+
elif expandsabbr:
|
|
36
|
+
abbr = Tuning.MINIMIZE
|
|
37
|
+
else:
|
|
38
|
+
abbr = Tuning.MAINTAIN
|
|
32
39
|
items = pull(args)
|
|
33
40
|
items = parse(
|
|
34
41
|
items,
|
|
42
|
+
abbr=abbr,
|
|
35
43
|
allowslong=allowslong,
|
|
36
44
|
allowsshort=allowsshort,
|
|
37
|
-
expandsabbr=expandsabbr,
|
|
38
|
-
expectsabbr=expectsabbr,
|
|
39
45
|
expectsposix=expectsposix,
|
|
40
46
|
optdict=optdict,
|
|
41
47
|
prog=prog,
|
preparse/_processing/parsing.py
CHANGED
|
@@ -20,24 +20,9 @@ PRAW = warnings.PreparseRequiredArgumentWarning
|
|
|
20
20
|
|
|
21
21
|
def parse(
|
|
22
22
|
args: list[str],
|
|
23
|
-
expandsabbr: bool,
|
|
24
|
-
expectsabbr: bool,
|
|
25
23
|
**kwargs: Any,
|
|
26
24
|
) -> list[Item]:
|
|
27
|
-
|
|
28
|
-
if not expectsabbr:
|
|
29
|
-
abbr = None
|
|
30
|
-
elif expandsabbr:
|
|
31
|
-
abbr = Tuning.MINIMIZE
|
|
32
|
-
else:
|
|
33
|
-
abbr = Tuning.MAINTAIN
|
|
34
|
-
return list(
|
|
35
|
-
parse_generator(
|
|
36
|
-
args,
|
|
37
|
-
abbr=abbr,
|
|
38
|
-
**kwargs,
|
|
39
|
-
)
|
|
40
|
-
)
|
|
25
|
+
return list(parse_generator(args, **kwargs))
|
|
41
26
|
|
|
42
27
|
|
|
43
28
|
def parse_bundling(
|
|
@@ -6,10 +6,10 @@ preparse/_items/Option.py,sha256=dJ7SqMoT7rRHzfHyjPVkJi9OrOr8CdGBoPrVnA1eWdY,779
|
|
|
6
6
|
preparse/_items/Positional.py,sha256=hzGSXDksvi7Jrs5X1P0iOHUy164lylsT_FvR8lHYCH4,666
|
|
7
7
|
preparse/_items/Special.py,sha256=GOdUngtJqhbJBVKPdjhUXCZn56Yz62z-pYCKLCpvKbQ,295
|
|
8
8
|
preparse/_items/__init__.py,sha256=_rfDzOPgUqPZnROBEig35wIw2uAoVtjriFNmcQBuPnI,254
|
|
9
|
-
preparse/_processing/__init__.py,sha256=
|
|
9
|
+
preparse/_processing/__init__.py,sha256=b2h2c53xqbyHI5sKv1-0mZ1hzx_f93o9b0PC6fxB4O8,1355
|
|
10
10
|
preparse/_processing/deparsing.py,sha256=wPa1hKda3j8H2Y8K9e8kToekXx0dRcSbpYz23TL9Gdk,249
|
|
11
11
|
preparse/_processing/digesting.py,sha256=rvPwfHXLkTzsCDofH6OlsGqOdy5YCxCuWUns8SPBenU,4450
|
|
12
|
-
preparse/_processing/parsing.py,sha256=
|
|
12
|
+
preparse/_processing/parsing.py,sha256=i6osYYqicdL4bWvDFz_aqiWod7VksylbbPbIg-BTLBM,5094
|
|
13
13
|
preparse/_processing/pulling.py,sha256=4zJfOeBr4yLj9ClangXFqZPjXfcAjYn_VSMbLclaZik,350
|
|
14
14
|
preparse/_utils/__init__.py,sha256=KNK6PuqZPkYXY85tM-AfUoS_lrRNAmfJF5Wvk7Wipco,39
|
|
15
15
|
preparse/_utils/dataprop.py,sha256=YgSkJptMshxD5MDhXvDM1m7xHIeac_tt_SpcTZkfdlw,545
|
|
@@ -27,8 +27,8 @@ preparse/tests/test_enums.py,sha256=MZfmCE-2v_lP6GLqW_b_d5NkN3kUa1lNzQ6JPh26Hmo,
|
|
|
27
27
|
preparse/tests/test_expit_toml.py,sha256=R5vsGLRROZv6bzMbn7aSjTEeYfWG_k9FKONwn0v0FpU,2335
|
|
28
28
|
preparse/tests/test_optdict.py,sha256=NuEJp83jsJCq5z0-k6UzT-v4XagT6IgDr45VJZGGKBk,504
|
|
29
29
|
preparse/tests/test_preparser.py,sha256=imEv-Yfh7FI6H-zKo3hvyBJWvMUWUDxWCTvfHB4nnVI,1271
|
|
30
|
-
preparse-1.0.14.
|
|
31
|
-
preparse-1.0.14.
|
|
32
|
-
preparse-1.0.14.
|
|
33
|
-
preparse-1.0.14.
|
|
34
|
-
preparse-1.0.14.
|
|
30
|
+
preparse-1.0.14.dev3.dist-info/licenses/LICENSE.txt,sha256=QwqYepQwTN5xG57cngKt6xxYD9z9hw9d3lcI8zSLiNg,1074
|
|
31
|
+
preparse-1.0.14.dev3.dist-info/METADATA,sha256=awbdXj2N25nGeSDaD_piezTEro1hBGXv0UIGxpYJ1sU,2603
|
|
32
|
+
preparse-1.0.14.dev3.dist-info/WHEEL,sha256=aeYiig01lYGDzBgS8HxWXOg3uV61G9ijOsup-k9o1sk,91
|
|
33
|
+
preparse-1.0.14.dev3.dist-info/top_level.txt,sha256=YFPuigMoI1m1K63OFDAQ6zN8yqCwAFwC7lNCTIOKj1I,9
|
|
34
|
+
preparse-1.0.14.dev3.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|