tactus 0.23.0__py3-none-any.whl → 0.24.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.
- tactus/__init__.py +1 -1
- tactus/cli/app.py +24 -0
- {tactus-0.23.0.dist-info → tactus-0.24.0.dist-info}/METADATA +1 -1
- {tactus-0.23.0.dist-info → tactus-0.24.0.dist-info}/RECORD +7 -7
- {tactus-0.23.0.dist-info → tactus-0.24.0.dist-info}/WHEEL +0 -0
- {tactus-0.23.0.dist-info → tactus-0.24.0.dist-info}/entry_points.txt +0 -0
- {tactus-0.23.0.dist-info → tactus-0.24.0.dist-info}/licenses/LICENSE +0 -0
tactus/__init__.py
CHANGED
tactus/cli/app.py
CHANGED
|
@@ -41,6 +41,30 @@ app = typer.Typer(
|
|
|
41
41
|
)
|
|
42
42
|
|
|
43
43
|
|
|
44
|
+
@app.callback(invoke_without_command=True)
|
|
45
|
+
def main_callback(
|
|
46
|
+
ctx: typer.Context,
|
|
47
|
+
version: bool = typer.Option(
|
|
48
|
+
False,
|
|
49
|
+
"--version",
|
|
50
|
+
"-V",
|
|
51
|
+
help="Show version and exit",
|
|
52
|
+
is_eager=True,
|
|
53
|
+
),
|
|
54
|
+
):
|
|
55
|
+
"""Tactus CLI callback for global options."""
|
|
56
|
+
if version:
|
|
57
|
+
from tactus import __version__
|
|
58
|
+
|
|
59
|
+
console.print(f"Tactus version: [bold]{__version__}[/bold]")
|
|
60
|
+
raise typer.Exit()
|
|
61
|
+
|
|
62
|
+
# If no subcommand was invoked and version flag not set, show help
|
|
63
|
+
if ctx.invoked_subcommand is None:
|
|
64
|
+
console.print(ctx.get_help())
|
|
65
|
+
raise typer.Exit()
|
|
66
|
+
|
|
67
|
+
|
|
44
68
|
def load_tactus_config():
|
|
45
69
|
"""
|
|
46
70
|
Load Tactus configuration from standard config locations.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
tactus/__init__.py,sha256=
|
|
1
|
+
tactus/__init__.py,sha256=61co7GsHjuQFxXvo6C9IYjFOq5V3oIhWnExBlqc4wqM,1245
|
|
2
2
|
tactus/adapters/__init__.py,sha256=lU8uUxuryFRIpVrn_KeVK7aUhsvOT1tYsuE3FOOIFpI,289
|
|
3
3
|
tactus/adapters/cli_hitl.py,sha256=l8jKU3y99g8z2vS11td0JXLVG77SF01nO-Ss4pRFXO0,6962
|
|
4
4
|
tactus/adapters/cli_log.py,sha256=JKD693goi_wT_Kei4mTc2KJ-0QfgFZTpV3Prb8zfNZo,9779
|
|
@@ -14,7 +14,7 @@ tactus/backends/http_backend.py,sha256=D2N91I5bnjhHMLG84-U-BRS-mIuwoQq72Feffi7At
|
|
|
14
14
|
tactus/backends/model_backend.py,sha256=P8dCUpDxJmA8_EO1snZuXyIyUZ_BlqReeC6zenO7Kv0,763
|
|
15
15
|
tactus/backends/pytorch_backend.py,sha256=I7H7UTa_Scx9_FtmPWn-G4noadaNVEQj-9Kjtjpgl6E,3305
|
|
16
16
|
tactus/cli/__init__.py,sha256=kVhdCkwWEPdt3vn9si-iKvh6M9817aOH6rLSsNzRuyg,80
|
|
17
|
-
tactus/cli/app.py,sha256=
|
|
17
|
+
tactus/cli/app.py,sha256=PFoDcAV_e5u25e9qrEGR50SfkUsB8QBrN0VqM5A3boo,78548
|
|
18
18
|
tactus/cli/commands/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
19
19
|
tactus/core/__init__.py,sha256=TK5rWr3HmOO_igFa5ESGp6teWwS58vnvQhIWqkcgqwk,880
|
|
20
20
|
tactus/core/config_manager.py,sha256=at6oA2vqNBMR4kVkdRbPL04x6_wRvki3pLfQAoU8KXU,11917
|
|
@@ -142,8 +142,8 @@ tactus/validation/generated/LuaParserVisitor.py,sha256=ageKSmHPxnO3jBS2fBtkmYBOd
|
|
|
142
142
|
tactus/validation/generated/__init__.py,sha256=5gWlwRI0UvmHw2fnBpj_IG6N8oZeabr5tbj1AODDvjc,196
|
|
143
143
|
tactus/validation/grammar/LuaLexer.g4,sha256=t2MXiTCr127RWAyQGvamkcU_m4veqPzSuHUtAKwalw4,2771
|
|
144
144
|
tactus/validation/grammar/LuaParser.g4,sha256=ceZenb90BdiZmVdOxMGj9qJk3QbbWVZe5HUqPgoePfY,3202
|
|
145
|
-
tactus-0.
|
|
146
|
-
tactus-0.
|
|
147
|
-
tactus-0.
|
|
148
|
-
tactus-0.
|
|
149
|
-
tactus-0.
|
|
145
|
+
tactus-0.24.0.dist-info/METADATA,sha256=HmO_Oh-3pTd7hSuTADj7diM09_l2t77rTeGfdl-3CO8,55250
|
|
146
|
+
tactus-0.24.0.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
|
|
147
|
+
tactus-0.24.0.dist-info/entry_points.txt,sha256=vWseqty8m3z-Worje0IYxlioMjPDCoSsm0AtY4GghBY,47
|
|
148
|
+
tactus-0.24.0.dist-info/licenses/LICENSE,sha256=ivohBcAIYnaLPQ-lKEeCXSMvQUVISpQfKyxHBHoa4GA,1066
|
|
149
|
+
tactus-0.24.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|