oe-python-template-example 0.2.13__py3-none-any.whl → 0.2.15__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.
- oe_python_template_example/cli.py +10 -6
- oe_python_template_example/service.py +1 -2
- {oe_python_template_example-0.2.13.dist-info → oe_python_template_example-0.2.15.dist-info}/METADATA +4 -4
- {oe_python_template_example-0.2.13.dist-info → oe_python_template_example-0.2.15.dist-info}/RECORD +7 -7
- {oe_python_template_example-0.2.13.dist-info → oe_python_template_example-0.2.15.dist-info}/WHEEL +0 -0
- {oe_python_template_example-0.2.13.dist-info → oe_python_template_example-0.2.15.dist-info}/entry_points.txt +0 -0
- {oe_python_template_example-0.2.13.dist-info → oe_python_template_example-0.2.15.dist-info}/licenses/LICENSE +0 -0
@@ -1,7 +1,9 @@
|
|
1
1
|
"""CLI (Command Line Interface) of OE Python Template Example."""
|
2
2
|
|
3
3
|
import os
|
4
|
+
import sys
|
4
5
|
from enum import StrEnum
|
6
|
+
from pathlib import Path
|
5
7
|
from typing import Annotated
|
6
8
|
|
7
9
|
import typer
|
@@ -12,7 +14,7 @@ from rich.console import Console
|
|
12
14
|
from . import Service, Utterance, __version__
|
13
15
|
from .api import api_v1, api_v2
|
14
16
|
|
15
|
-
cli = typer.Typer(
|
17
|
+
cli = typer.Typer(help="Command Line Interface of OE Python Template Example")
|
16
18
|
_service = Service()
|
17
19
|
_console = Console()
|
18
20
|
|
@@ -125,15 +127,17 @@ def openapi(
|
|
125
127
|
case OutputFormat.JSON:
|
126
128
|
_console.print_json(data=schema)
|
127
129
|
case OutputFormat.YAML:
|
128
|
-
_console.print(yaml.dump(schema, default_flow_style=False), end="")
|
130
|
+
_console.print(yaml.dump(schema, width=80, default_flow_style=False), end="")
|
129
131
|
|
130
132
|
|
131
133
|
def _apply_cli_settings(cli: typer.Typer, epilog: str) -> None:
|
132
|
-
"""
|
133
|
-
cli.info.epilog = epilog
|
134
|
+
"""Configure default behavior and add epilog to all typers in the tree."""
|
134
135
|
cli.info.no_args_is_help = True
|
135
|
-
|
136
|
-
|
136
|
+
|
137
|
+
if not any(arg.endswith("typer") for arg in Path(sys.argv[0]).parts):
|
138
|
+
cli.info.epilog = epilog
|
139
|
+
for command in cli.registered_commands:
|
140
|
+
command.epilog = cli.info.epilog
|
137
141
|
|
138
142
|
|
139
143
|
_apply_cli_settings(
|
{oe_python_template_example-0.2.13.dist-info → oe_python_template_example-0.2.15.dist-info}/METADATA
RENAMED
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: oe-python-template-example
|
3
|
-
Version: 0.2.
|
3
|
+
Version: 0.2.15
|
4
4
|
Summary: 🧠 Example project scaffolded and kept up to date with OE Python Template (oe-python-template).
|
5
5
|
Project-URL: Homepage, https://oe-python-template-example.readthedocs.io/en/latest/
|
6
6
|
Project-URL: Documentation, https://oe-python-template-example.readthedocs.io/en/latest/
|
@@ -50,13 +50,13 @@ Classifier: Typing :: Typed
|
|
50
50
|
Requires-Python: <4.0,>=3.11
|
51
51
|
Requires-Dist: fastapi[all,standard]>=0.115.12
|
52
52
|
Requires-Dist: pydantic-settings>=2.8.1
|
53
|
-
Requires-Dist: pydantic>=2.
|
53
|
+
Requires-Dist: pydantic>=2.11.1
|
54
54
|
Requires-Dist: typer>=0.15.1
|
55
55
|
Provides-Extra: examples
|
56
56
|
Requires-Dist: jinja2>=3.1.6; extra == 'examples'
|
57
57
|
Requires-Dist: jupyter>=1.1.1; extra == 'examples'
|
58
|
-
Requires-Dist: marimo>=0.
|
59
|
-
Requires-Dist: streamlit>=1.44.
|
58
|
+
Requires-Dist: marimo>=0.12.2; extra == 'examples'
|
59
|
+
Requires-Dist: streamlit>=1.44.1; extra == 'examples'
|
60
60
|
Description-Content-Type: text/markdown
|
61
61
|
|
62
62
|
|
{oe_python_template_example-0.2.13.dist-info → oe_python_template_example-0.2.15.dist-info}/RECORD
RENAMED
@@ -1,12 +1,12 @@
|
|
1
1
|
oe_python_template_example/__init__.py,sha256=Ks3KjkBuzEO1gaezabSfal_WVOsJbuweHwRCs58oRv4,435
|
2
2
|
oe_python_template_example/api.py,sha256=jP3nVgU06OHK0F9oi3h5_xZRWYsAu2fF80ezGshLk70,5034
|
3
|
-
oe_python_template_example/cli.py,sha256=
|
3
|
+
oe_python_template_example/cli.py,sha256=g8qeEQ36wvXrFQba0L8aLiAs6wDcXfVnxcesEMiOQ3g,3894
|
4
4
|
oe_python_template_example/constants.py,sha256=6uQHr2CRgzWQWhUQCRRKiPuFhzKB2iblZk3dIRQ5dDc,358
|
5
5
|
oe_python_template_example/models.py,sha256=IbegPBFJq0OCAWS70V-ozl6coMd0dC2OsHZY-nIumGs,846
|
6
|
-
oe_python_template_example/service.py,sha256=
|
6
|
+
oe_python_template_example/service.py,sha256=WY7W6MG55cp0sfNVBWSkelXJcZ3dXIY5MQemUeQC-MA,1622
|
7
7
|
oe_python_template_example/settings.py,sha256=mQu7Bl2EhR6taQLqbaK1s86Ngn3kLVeEoMyhCqbydig,751
|
8
|
-
oe_python_template_example-0.2.
|
9
|
-
oe_python_template_example-0.2.
|
10
|
-
oe_python_template_example-0.2.
|
11
|
-
oe_python_template_example-0.2.
|
12
|
-
oe_python_template_example-0.2.
|
8
|
+
oe_python_template_example-0.2.15.dist-info/METADATA,sha256=oeVQ40EHWo0QJ2bcnH3ewGIYo0phwujLtIedqqhKKmE,29751
|
9
|
+
oe_python_template_example-0.2.15.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
10
|
+
oe_python_template_example-0.2.15.dist-info/entry_points.txt,sha256=S2eCPB45b1Wgj_GsDRFAN-e4h7dBA5UPxT8od98erDE,82
|
11
|
+
oe_python_template_example-0.2.15.dist-info/licenses/LICENSE,sha256=5H409K6xzz9U5eUaoAHQExNkoWJRlU0LEj6wL2QJ34s,1113
|
12
|
+
oe_python_template_example-0.2.15.dist-info/RECORD,,
|
{oe_python_template_example-0.2.13.dist-info → oe_python_template_example-0.2.15.dist-info}/WHEEL
RENAMED
File without changes
|
File without changes
|
File without changes
|