argenta 1.0.6__py3-none-any.whl → 1.0.7__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.
- argenta/app/defaults.py +1 -0
- argenta/app/models.py +96 -102
- argenta/command/flag/__init__.py +15 -5
- argenta/command/flag/defaults.py +8 -7
- argenta/command/flag/models.py +16 -3
- argenta/command/models.py +2 -1
- argenta/metrics/main.py +0 -8
- argenta/router/entity.py +9 -7
- {argenta-1.0.6.dist-info → argenta-1.0.7.dist-info}/METADATA +1 -1
- {argenta-1.0.6.dist-info → argenta-1.0.7.dist-info}/RECORD +12 -12
- {argenta-1.0.6.dist-info → argenta-1.0.7.dist-info}/WHEEL +0 -0
- {argenta-1.0.6.dist-info → argenta-1.0.7.dist-info}/licenses/LICENSE +0 -0
argenta/app/defaults.py
CHANGED
@@ -5,6 +5,7 @@ class PredefinedMessages(StrEnum):
|
|
5
5
|
"""
|
6
6
|
Public. A dataclass with predetermined messages for quick use
|
7
7
|
"""
|
8
|
+
|
8
9
|
USAGE = "[b dim]Usage[/b dim]: [i]<command> <[green]flags[/green]>[/i]"
|
9
10
|
HELP = "[b dim]Help[/b dim]: [i]<command>[/i] [b red]--help[/b red]"
|
10
11
|
AUTOCOMPLETE = "[b dim]Autocomplete[/b dim]: [i]<part>[/i] [bold]<tab>"
|
argenta/app/models.py
CHANGED
@@ -21,9 +21,9 @@ from argenta.app.registered_routers.entity import RegisteredRouters
|
|
21
21
|
from argenta.response import Response
|
22
22
|
|
23
23
|
|
24
|
+
|
24
25
|
class BaseApp:
|
25
|
-
def __init__(self,
|
26
|
-
prompt: str,
|
26
|
+
def __init__(self, prompt: str,
|
27
27
|
initial_message: str,
|
28
28
|
farewell_message: str,
|
29
29
|
exit_command: Command,
|
@@ -47,18 +47,33 @@ class BaseApp:
|
|
47
47
|
self._farewell_message = farewell_message
|
48
48
|
self._initial_message = initial_message
|
49
49
|
|
50
|
-
self._description_message_gen: Callable[[str, str], str] =
|
50
|
+
self._description_message_gen: Callable[[str, str], str] = lambda command, description: f"{command} *=*=* {description}"
|
51
51
|
self._registered_routers: RegisteredRouters = RegisteredRouters()
|
52
52
|
self._messages_on_startup: list[str] = []
|
53
53
|
|
54
|
-
self.
|
55
|
-
self.
|
54
|
+
self._matching_lower_triggers_with_routers: dict[str, Router] = {}
|
55
|
+
self._matching_default_triggers_with_routers: dict[str, Router] = {}
|
56
56
|
|
57
|
-
self.
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
57
|
+
if self._ignore_command_register:
|
58
|
+
self._current_matching_triggers_with_routers: dict[str, Router] = self._matching_lower_triggers_with_routers
|
59
|
+
else:
|
60
|
+
self._current_matching_triggers_with_routers: dict[str, Router] = self._matching_default_triggers_with_routers
|
61
|
+
|
62
|
+
self._incorrect_input_syntax_handler: Callable[[str], None] = (
|
63
|
+
lambda raw_command: print_func(f"Incorrect flag syntax: {raw_command}")
|
64
|
+
)
|
65
|
+
self._repeated_input_flags_handler: Callable[[str], None] = (
|
66
|
+
lambda raw_command: print_func(f"Repeated input flags: {raw_command}")
|
67
|
+
)
|
68
|
+
self._empty_input_command_handler: Callable[[], None] = lambda: print_func(
|
69
|
+
"Empty input command"
|
70
|
+
)
|
71
|
+
self._unknown_command_handler: Callable[[InputCommand], None] = (
|
72
|
+
lambda command: print_func(f"Unknown command: {command.get_trigger()}")
|
73
|
+
)
|
74
|
+
self._exit_command_handler: Callable[[Response], None] = (
|
75
|
+
lambda response: print_func(self._farewell_message)
|
76
|
+
)
|
62
77
|
|
63
78
|
def set_description_message_pattern(self, _: Callable[[str, str], str]) -> None:
|
64
79
|
"""
|
@@ -194,14 +209,16 @@ class BaseApp:
|
|
194
209
|
"""
|
195
210
|
input_command_trigger = command.get_trigger()
|
196
211
|
if self._ignore_command_register:
|
197
|
-
if input_command_trigger.lower() in self.
|
212
|
+
if input_command_trigger.lower() in list(self._current_matching_triggers_with_routers.keys()):
|
198
213
|
return False
|
199
214
|
else:
|
200
|
-
if input_command_trigger in self.
|
215
|
+
if input_command_trigger in list(self._current_matching_triggers_with_routers.keys()):
|
201
216
|
return False
|
202
217
|
return True
|
203
218
|
|
204
|
-
def _error_handler(
|
219
|
+
def _error_handler(
|
220
|
+
self, error: BaseInputCommandException, raw_command: str
|
221
|
+
) -> None:
|
205
222
|
"""
|
206
223
|
Private. Handles parsing errors of the entered command
|
207
224
|
:param error: error being handled
|
@@ -231,11 +248,8 @@ class BaseApp:
|
|
231
248
|
self._registered_routers.add_registered_router(system_router)
|
232
249
|
|
233
250
|
def _most_similar_command(self, unknown_command: str) -> str | None:
|
234
|
-
all_commands = (
|
235
|
-
|
236
|
-
if self._ignore_command_register
|
237
|
-
else self._all_registered_triggers_in_default_case
|
238
|
-
)
|
251
|
+
all_commands = list(self._current_matching_triggers_with_routers.keys())
|
252
|
+
|
239
253
|
matches: list[str] | list = sorted(
|
240
254
|
cmd for cmd in all_commands if cmd.startswith(unknown_command)
|
241
255
|
)
|
@@ -255,12 +269,12 @@ class BaseApp:
|
|
255
269
|
Private. Sets up default app view
|
256
270
|
:return: None
|
257
271
|
"""
|
258
|
-
self._prompt = "[italic dim bold]
|
259
|
-
self._initial_message = (
|
260
|
-
"\n"+f"[bold red]{text2art(self._initial_message, font='tarty1')}"+"\n"
|
261
|
-
)
|
272
|
+
self._prompt = f"[italic dim bold]{self._prompt}"
|
273
|
+
self._initial_message = ("\n" + f"[bold red]{text2art(self._initial_message, font='tarty1')}" + "\n")
|
262
274
|
self._farewell_message = (
|
263
|
-
"[bold red]\n\n"
|
275
|
+
"[bold red]\n\n"
|
276
|
+
+ text2art(self._farewell_message, font="chanky")
|
277
|
+
+ "\n[/bold red]\n"
|
264
278
|
"[red i]github.com/koloideal/Argenta[/red i] | [red bold i]made by kolo[/red bold i]\n"
|
265
279
|
)
|
266
280
|
self._description_message_gen = lambda command, description: (
|
@@ -268,22 +282,14 @@ class BaseApp:
|
|
268
282
|
f"[blue dim]*=*=*[/blue dim] "
|
269
283
|
f"[bold yellow italic]{escape(description)}"
|
270
284
|
)
|
271
|
-
self._incorrect_input_syntax_handler = lambda raw_command: self._print_func(
|
272
|
-
|
273
|
-
)
|
274
|
-
self._repeated_input_flags_handler = lambda raw_command: self._print_func(
|
275
|
-
f"[red bold]Repeated input flags: {escape(raw_command)}"
|
276
|
-
)
|
277
|
-
self._empty_input_command_handler = lambda: self._print_func(
|
278
|
-
"[red bold]Empty input command"
|
279
|
-
)
|
285
|
+
self._incorrect_input_syntax_handler = lambda raw_command: self._print_func(f"[red bold]Incorrect flag syntax: {escape(raw_command)}")
|
286
|
+
self._repeated_input_flags_handler = lambda raw_command: self._print_func(f"[red bold]Repeated input flags: {escape(raw_command)}")
|
287
|
+
self._empty_input_command_handler = lambda: self._print_func("[red bold]Empty input command")
|
280
288
|
|
281
289
|
def unknown_command_handler(command: InputCommand) -> None:
|
282
290
|
cmd_trg: str = command.get_trigger()
|
283
291
|
mst_sim_cmd: str | None = self._most_similar_command(cmd_trg)
|
284
|
-
first_part_of_text = (
|
285
|
-
f"[red]Unknown command:[/red] [blue]{escape(cmd_trg)}[/blue]"
|
286
|
-
)
|
292
|
+
first_part_of_text = f"[red]Unknown command:[/red] [blue]{escape(cmd_trg)}[/blue]"
|
287
293
|
second_part_of_text = (
|
288
294
|
("[red], most similar:[/red] " + ("[blue]" + mst_sim_cmd + "[/blue]"))
|
289
295
|
if mst_sim_cmd
|
@@ -305,26 +311,18 @@ class BaseApp:
|
|
305
311
|
router_aliases = router_entity.get_aliases()
|
306
312
|
combined = router_triggers + router_aliases
|
307
313
|
|
308
|
-
|
314
|
+
for trigger in combined:
|
315
|
+
self._matching_default_triggers_with_routers[trigger] = router_entity
|
316
|
+
self._matching_lower_triggers_with_routers[trigger.lower()] = router_entity
|
309
317
|
|
310
|
-
|
318
|
+
self._autocompleter.initial_setup(list(self._current_matching_triggers_with_routers.keys()))
|
311
319
|
|
312
|
-
|
313
|
-
|
314
|
-
|
315
|
-
|
316
|
-
|
317
|
-
|
318
|
-
Console().print(f"\n[b red]WARNING:[/b red] Overlapping trigger or alias: [b blue]{item}[/b blue]")
|
319
|
-
else:
|
320
|
-
seen[item] = True
|
321
|
-
else:
|
322
|
-
seen = {}
|
323
|
-
for item in self._all_registered_triggers_in_default_case:
|
324
|
-
if item in seen:
|
325
|
-
Console().print(f"\n[b red]WARNING:[/b red] Overlapping trigger or alias: [b blue]{item}[/b blue]")
|
326
|
-
else:
|
327
|
-
seen[item] = True
|
320
|
+
seen = {}
|
321
|
+
for item in list(self._current_matching_triggers_with_routers.keys()):
|
322
|
+
if item in seen:
|
323
|
+
Console().print(f"\n[b red]WARNING:[/b red] Overlapping trigger or alias: [b blue]{item}[/b blue]")
|
324
|
+
else:
|
325
|
+
seen[item] = True
|
328
326
|
|
329
327
|
if not self._override_system_messages:
|
330
328
|
self._setup_default_view()
|
@@ -340,18 +338,20 @@ class BaseApp:
|
|
340
338
|
|
341
339
|
|
342
340
|
class App(BaseApp):
|
343
|
-
def __init__(
|
344
|
-
|
345
|
-
|
346
|
-
|
347
|
-
|
348
|
-
|
349
|
-
|
350
|
-
|
351
|
-
|
352
|
-
|
353
|
-
|
354
|
-
|
341
|
+
def __init__(
|
342
|
+
self,
|
343
|
+
prompt: str = "What do you want to do?\n",
|
344
|
+
initial_message: str = "Argenta\n",
|
345
|
+
farewell_message: str = "\nSee you\n",
|
346
|
+
exit_command: Command = Command("Q", "Exit command"),
|
347
|
+
system_router_title: str | None = "System points:",
|
348
|
+
ignore_command_register: bool = True,
|
349
|
+
dividing_line: StaticDividingLine | DynamicDividingLine = StaticDividingLine(),
|
350
|
+
repeat_command_groups: bool = True,
|
351
|
+
override_system_messages: bool = False,
|
352
|
+
autocompleter: AutoCompleter = AutoCompleter(),
|
353
|
+
print_func: Callable[[str], None] = Console().print,
|
354
|
+
) -> None:
|
355
355
|
"""
|
356
356
|
Public. The essence of the application itself.
|
357
357
|
Configures and manages all aspects of the behavior and presentation of the user interacting with the user
|
@@ -368,17 +368,19 @@ class App(BaseApp):
|
|
368
368
|
:param print_func: system messages text output function
|
369
369
|
:return: None
|
370
370
|
"""
|
371
|
-
super().__init__(
|
372
|
-
|
373
|
-
|
374
|
-
|
375
|
-
|
376
|
-
|
377
|
-
|
378
|
-
|
379
|
-
|
380
|
-
|
381
|
-
|
371
|
+
super().__init__(
|
372
|
+
prompt=prompt,
|
373
|
+
initial_message=initial_message,
|
374
|
+
farewell_message=farewell_message,
|
375
|
+
exit_command=exit_command,
|
376
|
+
system_router_title=system_router_title,
|
377
|
+
ignore_command_register=ignore_command_register,
|
378
|
+
dividing_line=dividing_line,
|
379
|
+
repeat_command_groups=repeat_command_groups,
|
380
|
+
override_system_messages=override_system_messages,
|
381
|
+
autocompleter=autocompleter,
|
382
|
+
print_func=print_func,
|
383
|
+
)
|
382
384
|
|
383
385
|
def run_polling(self) -> None:
|
384
386
|
"""
|
@@ -393,9 +395,7 @@ class App(BaseApp):
|
|
393
395
|
raw_command: str = Console().input(self._prompt)
|
394
396
|
|
395
397
|
try:
|
396
|
-
input_command: InputCommand = InputCommand.parse(
|
397
|
-
raw_command=raw_command
|
398
|
-
)
|
398
|
+
input_command: InputCommand = InputCommand.parse(raw_command=raw_command)
|
399
399
|
except BaseInputCommandException as error:
|
400
400
|
with redirect_stdout(io.StringIO()) as f:
|
401
401
|
self._error_handler(error, raw_command)
|
@@ -405,14 +405,7 @@ class App(BaseApp):
|
|
405
405
|
|
406
406
|
if self._is_exit_command(input_command):
|
407
407
|
system_router.finds_appropriate_handler(input_command)
|
408
|
-
|
409
|
-
self._autocompleter.exit_setup(
|
410
|
-
self._all_registered_triggers_in_lower_case
|
411
|
-
)
|
412
|
-
else:
|
413
|
-
self._autocompleter.exit_setup(
|
414
|
-
self._all_registered_triggers_in_default_case
|
415
|
-
)
|
408
|
+
self._autocompleter.exit_setup(list(self._current_matching_triggers_with_routers.keys()))
|
416
409
|
return
|
417
410
|
|
418
411
|
if self._is_unknown_command(input_command):
|
@@ -422,22 +415,23 @@ class App(BaseApp):
|
|
422
415
|
self._print_framed_text(res)
|
423
416
|
continue
|
424
417
|
|
425
|
-
|
426
|
-
|
427
|
-
|
428
|
-
|
429
|
-
|
430
|
-
|
431
|
-
|
432
|
-
self._print_func(StaticDividingLine(self._dividing_line.get_unit_part()).get_full_static_line(self._override_system_messages))
|
433
|
-
registered_router.finds_appropriate_handler(input_command)
|
434
|
-
self._print_func(StaticDividingLine(self._dividing_line.get_unit_part()).get_full_static_line(self._override_system_messages))
|
418
|
+
processing_router = self._current_matching_triggers_with_routers[input_command.get_trigger().lower()]
|
419
|
+
|
420
|
+
if processing_router.disable_redirect_stdout:
|
421
|
+
if isinstance(self._dividing_line, StaticDividingLine):
|
422
|
+
self._print_func(self._dividing_line.get_full_static_line(self._override_system_messages))
|
423
|
+
processing_router.finds_appropriate_handler(input_command)
|
424
|
+
self._print_func(self._dividing_line.get_full_static_line(self._override_system_messages))
|
435
425
|
else:
|
436
|
-
|
437
|
-
|
438
|
-
|
439
|
-
|
440
|
-
|
426
|
+
self._print_func(StaticDividingLine(self._dividing_line.get_unit_part()).get_full_static_line(self._override_system_messages))
|
427
|
+
processing_router.finds_appropriate_handler(input_command)
|
428
|
+
self._print_func(StaticDividingLine(self._dividing_line.get_unit_part()).get_full_static_line(self._override_system_messages))
|
429
|
+
else:
|
430
|
+
with redirect_stdout(io.StringIO()) as f:
|
431
|
+
processing_router.finds_appropriate_handler(input_command)
|
432
|
+
res: str = f.getvalue()
|
433
|
+
if res:
|
434
|
+
self._print_framed_text(res)
|
441
435
|
|
442
436
|
def include_router(self, router: Router) -> None:
|
443
437
|
"""
|
argenta/command/flag/__init__.py
CHANGED
@@ -1,7 +1,17 @@
|
|
1
|
-
__all__ = [
|
1
|
+
__all__ = [
|
2
|
+
"Flag",
|
3
|
+
"InputFlag",
|
4
|
+
"UndefinedInputFlags",
|
5
|
+
"ValidInputFlags",
|
6
|
+
"InvalidValueInputFlags",
|
7
|
+
"Flags", "PossibleValues"
|
8
|
+
]
|
2
9
|
|
3
10
|
|
4
|
-
from argenta.command.flag.models import Flag, InputFlag
|
5
|
-
from argenta.command.flag.flags.models import (
|
6
|
-
|
7
|
-
|
11
|
+
from argenta.command.flag.models import Flag, InputFlag, PossibleValues
|
12
|
+
from argenta.command.flag.flags.models import (
|
13
|
+
UndefinedInputFlags,
|
14
|
+
ValidInputFlags,
|
15
|
+
Flags,
|
16
|
+
InvalidValueInputFlags,
|
17
|
+
)
|
argenta/command/flag/defaults.py
CHANGED
@@ -1,22 +1,23 @@
|
|
1
1
|
from dataclasses import dataclass
|
2
|
-
from argenta.command.flag.models import Flag
|
2
|
+
from argenta.command.flag.models import Flag, PossibleValues
|
3
3
|
import re
|
4
4
|
|
5
5
|
|
6
|
+
|
6
7
|
@dataclass
|
7
8
|
class PredefinedFlags:
|
8
9
|
"""
|
9
10
|
Public. A dataclass with predefined flags and most frequently used flags for quick use
|
10
11
|
"""
|
11
12
|
|
12
|
-
HELP = Flag(name="help", possible_values=
|
13
|
-
SHORT_HELP = Flag(name="H", prefix="-", possible_values=
|
13
|
+
HELP = Flag(name="help", possible_values=PossibleValues.DISABLE)
|
14
|
+
SHORT_HELP = Flag(name="H", prefix="-", possible_values=PossibleValues.DISABLE)
|
14
15
|
|
15
|
-
INFO = Flag(name="info", possible_values=
|
16
|
-
SHORT_INFO = Flag(name="I", prefix="-", possible_values=
|
16
|
+
INFO = Flag(name="info", possible_values=PossibleValues.DISABLE)
|
17
|
+
SHORT_INFO = Flag(name="I", prefix="-", possible_values=PossibleValues.DISABLE)
|
17
18
|
|
18
|
-
ALL = Flag(name="all", possible_values=
|
19
|
-
SHORT_ALL = Flag(name="A", prefix="-", possible_values=
|
19
|
+
ALL = Flag(name="all", possible_values=PossibleValues.DISABLE)
|
20
|
+
SHORT_ALL = Flag(name="A", prefix="-", possible_values=PossibleValues.DISABLE)
|
20
21
|
|
21
22
|
HOST = Flag(
|
22
23
|
name="host", possible_values=re.compile(r"^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$")
|
argenta/command/flag/models.py
CHANGED
@@ -1,6 +1,16 @@
|
|
1
|
+
from enum import Enum
|
1
2
|
from typing import Literal, Pattern
|
2
3
|
|
3
4
|
|
5
|
+
|
6
|
+
class PossibleValues(Enum):
|
7
|
+
DISABLE: Literal[False] = False
|
8
|
+
ALL: Literal[True] = True
|
9
|
+
|
10
|
+
def __eq__(self, other: bool) -> bool:
|
11
|
+
return self.value == other
|
12
|
+
|
13
|
+
|
4
14
|
class BaseFlag:
|
5
15
|
def __init__(self, name: str, prefix: Literal["-", "--", "---"] = "--") -> None:
|
6
16
|
"""
|
@@ -43,7 +53,7 @@ class Flag(BaseFlag):
|
|
43
53
|
self,
|
44
54
|
name: str,
|
45
55
|
prefix: Literal["-", "--", "---"] = "--",
|
46
|
-
possible_values: list[str] | Pattern[str] |
|
56
|
+
possible_values: list[str] | Pattern[str] | PossibleValues = PossibleValues.ALL,
|
47
57
|
) -> None:
|
48
58
|
"""
|
49
59
|
Public. The entity of the flag being registered for subsequent processing
|
@@ -61,7 +71,7 @@ class Flag(BaseFlag):
|
|
61
71
|
:param input_flag_value: The input flag value to validate
|
62
72
|
:return: whether the entered flag is valid as bool
|
63
73
|
"""
|
64
|
-
if self.possible_values
|
74
|
+
if self.possible_values == PossibleValues.DISABLE:
|
65
75
|
if input_flag_value is None:
|
66
76
|
return True
|
67
77
|
else:
|
@@ -87,7 +97,10 @@ class Flag(BaseFlag):
|
|
87
97
|
|
88
98
|
class InputFlag(BaseFlag):
|
89
99
|
def __init__(
|
90
|
-
self,
|
100
|
+
self,
|
101
|
+
name: str,
|
102
|
+
prefix: Literal["-", "--", "---"] = "--",
|
103
|
+
value: str | None = None,
|
91
104
|
):
|
92
105
|
"""
|
93
106
|
Public. The entity of the flag of the entered command
|
argenta/command/models.py
CHANGED
@@ -91,6 +91,7 @@ class Command(BaseCommand):
|
|
91
91
|
is_valid = registered_flag.validate_input_flag_value(
|
92
92
|
flag.get_value()
|
93
93
|
)
|
94
|
+
|
94
95
|
if is_valid:
|
95
96
|
return "Valid"
|
96
97
|
else:
|
@@ -139,7 +140,7 @@ class InputCommand(BaseCommand):
|
|
139
140
|
return self._input_flags
|
140
141
|
|
141
142
|
@staticmethod
|
142
|
-
def parse(raw_command: str) ->
|
143
|
+
def parse(raw_command: str) -> "InputCommand":
|
143
144
|
"""
|
144
145
|
Private. Parse the raw input command
|
145
146
|
:param raw_command: raw input command
|
argenta/metrics/main.py
CHANGED
argenta/router/entity.py
CHANGED
@@ -22,7 +22,9 @@ from argenta.router.exceptions import (
|
|
22
22
|
|
23
23
|
|
24
24
|
class Router:
|
25
|
-
def __init__(
|
25
|
+
def __init__(
|
26
|
+
self, title: str | None = "Awesome title", disable_redirect_stdout: bool = False
|
27
|
+
):
|
26
28
|
"""
|
27
29
|
Public. Directly configures and manages handlers
|
28
30
|
:param title: the title of the router, displayed when displaying the available commands
|
@@ -91,9 +93,7 @@ class Router:
|
|
91
93
|
response: Response = Response()
|
92
94
|
if handle_command.get_registered_flags().get_flags():
|
93
95
|
if input_command_flags.get_flags():
|
94
|
-
response: Response = self._structuring_input_flags(
|
95
|
-
handle_command, input_command_flags
|
96
|
-
)
|
96
|
+
response: Response = self._structuring_input_flags( handle_command, input_command_flags )
|
97
97
|
command_handler.handling(response)
|
98
98
|
else:
|
99
99
|
response.status = Status.ALL_FLAGS_VALID
|
@@ -158,7 +158,7 @@ class Router:
|
|
158
158
|
)
|
159
159
|
|
160
160
|
@staticmethod
|
161
|
-
def _validate_command(command: Command
|
161
|
+
def _validate_command(command: Command) -> None:
|
162
162
|
"""
|
163
163
|
Private. Validates the command registered in handler
|
164
164
|
:param command: validated command
|
@@ -196,10 +196,12 @@ class Router:
|
|
196
196
|
file_path: str | None = getsourcefile(func)
|
197
197
|
source_line: int = getsourcelines(func)[1]
|
198
198
|
fprint = Console().print
|
199
|
-
fprint(
|
199
|
+
fprint(
|
200
|
+
f'\nFile "{file_path}", line {source_line}\n[b red]WARNING:[/b red] [i]The typehint '
|
200
201
|
f"of argument([green]{transferred_arg}[/green]) passed to the handler is [/i][bold blue]{Response}[/bold blue],"
|
201
202
|
f" [i]but[/i] [bold blue]{arg_annotation}[/bold blue] [i]is specified[/i]",
|
202
|
-
highlight=False
|
203
|
+
highlight=False,
|
204
|
+
)
|
203
205
|
|
204
206
|
def set_command_register_ignore(self, _: bool) -> None:
|
205
207
|
"""
|
@@ -1,7 +1,7 @@
|
|
1
1
|
argenta/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
2
2
|
argenta/app/__init__.py,sha256=I8FTXU17ajDI-hbC6Rw0LxLmvDYipdQaos3v1pmu14E,57
|
3
|
-
argenta/app/defaults.py,sha256=
|
4
|
-
argenta/app/models.py,sha256=
|
3
|
+
argenta/app/defaults.py,sha256=imtg6sOZ82xwttr7YCwBoMRFG_lhCkyk0tP63o1NSuI,381
|
4
|
+
argenta/app/models.py,sha256=y7XZ3MVw_q8wHyrLlZMhtl9LzgzzXIY_m6Ud8hsli2w,20150
|
5
5
|
argenta/app/autocompleter/__init__.py,sha256=VT_p3QA78UnczV7pYR2NnwQ0Atd8mnDUnLazvUQNqJk,93
|
6
6
|
argenta/app/autocompleter/entity.py,sha256=55yUwlCEPPF8Z4t7y8Fl4DgLyH27qeybynXphDJ6XvM,3562
|
7
7
|
argenta/app/dividing_line/__init__.py,sha256=jJZDDZix8XYCAUWW4FzGJH0JmJlchYcx0FPWifjgv1I,147
|
@@ -10,14 +10,14 @@ argenta/app/registered_routers/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5
|
|
10
10
|
argenta/app/registered_routers/entity.py,sha256=xTRW3R2dWnSOz8QIsiUVmG8VuMJmyOMUqHzEDDpNX-0,1085
|
11
11
|
argenta/command/__init__.py,sha256=RvacrM84ZwBdVDy4MUwjLTyzQdDQrjjoikZxwh5ov-0,69
|
12
12
|
argenta/command/exceptions.py,sha256=86Gs_9-NutmbSkduEMljtxQHWHhDRFcqyyOKDhQ440o,1060
|
13
|
-
argenta/command/models.py,sha256=
|
14
|
-
argenta/command/flag/__init__.py,sha256=
|
15
|
-
argenta/command/flag/defaults.py,sha256=
|
16
|
-
argenta/command/flag/models.py,sha256=
|
13
|
+
argenta/command/models.py,sha256=TYmKVJUsX8vxBfCVnQw0rp7CvzStr5BrDcV0IlRyCyc,7116
|
14
|
+
argenta/command/flag/__init__.py,sha256=cXzUCEK_zGYd7d3YbymYVzfDAusrY9DMhjC48--PUdg,379
|
15
|
+
argenta/command/flag/defaults.py,sha256=dkzE750mC-w6DPIGZsdhfnmc87-y7P-FIKMT_PAcq_0,1155
|
16
|
+
argenta/command/flag/models.py,sha256=hGmgVX__ZgfNSB8KCqIT6SF-BOiZ_A0b2C031a_pSac,4158
|
17
17
|
argenta/command/flag/flags/__init__.py,sha256=-HfdBZ3WXrjMrM8vEDWg0LLOLuQafqncrjw9KVFyqoE,294
|
18
18
|
argenta/command/flag/flags/models.py,sha256=U4nOwCqsCOURGigTKiQx07zBUKj0EoY0fCwgTNq4GIg,2332
|
19
19
|
argenta/metrics/__init__.py,sha256=PPLFPxhe4j7r6hP1P1pk0A_gnXgylbTaHqopky872AU,109
|
20
|
-
argenta/metrics/main.py,sha256=
|
20
|
+
argenta/metrics/main.py,sha256=vkvvI4xFbIcs0bNumtyiA_o3v66FF5LI38QoNnLCD6c,472
|
21
21
|
argenta/orchestrator/__init__.py,sha256=vFtJEJTjFfoYP3DZx0gNlhoa0Tk8u-yzkGIUN3SiABA,86
|
22
22
|
argenta/orchestrator/entity.py,sha256=I0HWZnpoD0Pen5azeTBh8s-CFU8vs0bTILpgRls-1hI,1098
|
23
23
|
argenta/orchestrator/argparser/__init__.py,sha256=akbTPC5CfNrgJTVVu1A2E9KeI8KPN4JnMM8M8U21jc8,90
|
@@ -29,11 +29,11 @@ argenta/response/entity.py,sha256=vUVeiOp8BbuUW2VRtyQlFMQ_-KkQPjOgz9p7DxwyoeE,10
|
|
29
29
|
argenta/response/status.py,sha256=bWFMHvyIHpOA4LxUQFoSpld-F8gu183M9nY-zN-MiZM,244
|
30
30
|
argenta/router/__init__.py,sha256=rvqAx80IXHFdVw7cWBRGaTtb94a4OQQEsMJ5f7YA1gU,68
|
31
31
|
argenta/router/defaults.py,sha256=vvkwFYCQdwjtMntfyrJuisxFX8XxeyhDMA-RwteHZGg,87
|
32
|
-
argenta/router/entity.py,sha256=
|
32
|
+
argenta/router/entity.py,sha256=5eIn6OwUM4oNdFOtmC_jxDyxD54U3wl8c7W2AU2hyqE,10071
|
33
33
|
argenta/router/exceptions.py,sha256=5k0mTHYYItWHzGC0NU5oHHYrHxU0M5fEbO5wne_wFg8,860
|
34
34
|
argenta/router/command_handler/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
35
35
|
argenta/router/command_handler/entity.py,sha256=ascEf3AzYcWh-G5cml08WOoRr2q9QkfLP2IaKC1iKWM,2394
|
36
|
-
argenta-1.0.
|
37
|
-
argenta-1.0.
|
38
|
-
argenta-1.0.
|
39
|
-
argenta-1.0.
|
36
|
+
argenta-1.0.7.dist-info/METADATA,sha256=4uN_xlRCoJWKU0TY48l78TD6-jllclnWonMqknFX6-8,1576
|
37
|
+
argenta-1.0.7.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
38
|
+
argenta-1.0.7.dist-info/licenses/LICENSE,sha256=zmqoGh2n5rReBv4s8wPxF_gZEZDgauJYSPMuPczgOiU,1082
|
39
|
+
argenta-1.0.7.dist-info/RECORD,,
|
File without changes
|
File without changes
|