wiederverwendbar 0.9.0__py3-none-any.whl → 0.9.1__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.
- wiederverwendbar/__init__.py +1 -1
- wiederverwendbar/branding/settings.py +1 -0
- wiederverwendbar/fastapi/app.py +4 -1
- wiederverwendbar/typer/app.py +5 -1
- {wiederverwendbar-0.9.0.dist-info → wiederverwendbar-0.9.1.dist-info}/METADATA +1 -1
- {wiederverwendbar-0.9.0.dist-info → wiederverwendbar-0.9.1.dist-info}/RECORD +8 -8
- {wiederverwendbar-0.9.0.dist-info → wiederverwendbar-0.9.1.dist-info}/WHEEL +0 -0
- {wiederverwendbar-0.9.0.dist-info → wiederverwendbar-0.9.1.dist-info}/entry_points.txt +0 -0
wiederverwendbar/__init__.py
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
__title__ = "wiederverwendbar"
|
2
2
|
__description__ = "A collection of scripts, classes and tools they are \\\"wiederverwendbar\\\"."
|
3
|
-
__version__ = "0.9.
|
3
|
+
__version__ = "0.9.1"
|
4
4
|
__author__ = "Julius Koenig"
|
5
5
|
__author_email__ = "info@bastelquartier.de"
|
6
6
|
__license__ = "GPL-3.0"
|
@@ -22,6 +22,7 @@ class BrandingSettings(BaseModel):
|
|
22
22
|
main_module = sys.modules["__main__"]
|
23
23
|
module_data = self.get_attributes(main_module.__dict__)
|
24
24
|
if module_data is None:
|
25
|
+
# ToDO: this code is not working for pyprojects.toml [project.scripts]
|
25
26
|
init_file = Path(main_module.__file__).parent / "__init__.py"
|
26
27
|
if init_file.is_file():
|
27
28
|
init_file_module_spec = importlib.util.spec_from_file_location("__main__.__init__", init_file)
|
wiederverwendbar/fastapi/app.py
CHANGED
@@ -367,7 +367,10 @@ class FastAPI(_FastAPI):
|
|
367
367
|
"terms_of_service": self.terms_of_service}
|
368
368
|
|
369
369
|
async def get_version(self, request: Request) -> dict[str, Any]:
|
370
|
-
|
370
|
+
version = self.version
|
371
|
+
if version.startswith("v"):
|
372
|
+
version = version[1:]
|
373
|
+
return {"version": version}
|
371
374
|
|
372
375
|
async def get_root_redirect(self, request: Request) -> RedirectResponse:
|
373
376
|
root_path = request.scope.get("root_path", "").rstrip("/")
|
wiederverwendbar/typer/app.py
CHANGED
@@ -136,11 +136,15 @@ class Typer(_Typer):
|
|
136
136
|
# register the main callback
|
137
137
|
self.callback()(self.main_callback)
|
138
138
|
|
139
|
+
@property
|
140
|
+
def title_header(self) -> str:
|
141
|
+
return text2art(self.title)
|
142
|
+
|
139
143
|
def main_callback(self, *args, **kwargs):
|
140
144
|
...
|
141
145
|
|
142
146
|
def info_command(self) -> Optional[int]:
|
143
|
-
card_body = [
|
147
|
+
card_body = [self.title_header]
|
144
148
|
second_section = ""
|
145
149
|
if self.description is not None:
|
146
150
|
second_section += f"{self.description}"
|
@@ -1,17 +1,17 @@
|
|
1
|
-
wiederverwendbar-0.9.
|
2
|
-
wiederverwendbar-0.9.
|
3
|
-
wiederverwendbar-0.9.
|
4
|
-
wiederverwendbar/__init__.py,sha256=
|
1
|
+
wiederverwendbar-0.9.1.dist-info/METADATA,sha256=Z0HbxE6pGXHYCFafnLMiikJq_6OFn-w8cdxIZfKpWa0,2141
|
2
|
+
wiederverwendbar-0.9.1.dist-info/WHEEL,sha256=tSfRZzRHthuv7vxpI4aehrdN9scLjk-dCJkPLzkHxGg,90
|
3
|
+
wiederverwendbar-0.9.1.dist-info/entry_points.txt,sha256=6OYgBcLyFCUgeqLgnvMyOJxPCWzgy7se4rLPKtNonMs,34
|
4
|
+
wiederverwendbar/__init__.py,sha256=B-1I5OiXzz3N1y50YrKcPcBXugcoyGyLwi3qrvmA4FU,376
|
5
5
|
wiederverwendbar/before_after_wrap.py,sha256=8rjyRrDpwbzrsKkY7vbIgtitgLjlF8Lwx8YNvcJWwgY,10425
|
6
6
|
wiederverwendbar/branding/__init__.py,sha256=IWUQkLQwp22HyTs6Zh28mg8YKkv47bowYDkXl_kOtpI,66
|
7
|
-
wiederverwendbar/branding/settings.py,sha256=
|
7
|
+
wiederverwendbar/branding/settings.py,sha256=q8X7wt9epJ-9kHzic00Zgv0gi3h_QAznI7CB2jz-Ek4,4569
|
8
8
|
wiederverwendbar/console/__init__.py,sha256=hhs9LhQrAvnpMSomnHj5GhYblHVptK3o2CVXypP08Rw,177
|
9
9
|
wiederverwendbar/console/console.py,sha256=0BKgcALRyCZelqJaDKJfLbmHI6YY7DTUXJJ4brGSVuw,8537
|
10
10
|
wiederverwendbar/console/out_files.py,sha256=bC36OdEZteH-lMoPW9JbDPdsrYLABffLq-9wVscamZ4,411
|
11
11
|
wiederverwendbar/console/settings.py,sha256=nvsK6vRYu5-1ojYJSN1NImRTNWfZR2RE41sOIX-Loo8,520
|
12
12
|
wiederverwendbar/default.py,sha256=AKjlNXYbQUiLOPCcje4XLpeJPdeRbJ4YGDwW9QQ0E54,93
|
13
13
|
wiederverwendbar/fastapi/__init__.py,sha256=wW_91YoGhZDCoYuct44sFgOYLeKsuKqqfOt1IFhXuyY,175
|
14
|
-
wiederverwendbar/fastapi/app.py,sha256=
|
14
|
+
wiederverwendbar/fastapi/app.py,sha256=pSMwkvVXczMgpcvYslnnJBlsWvT70vyMfUANBfMe1d4,18726
|
15
15
|
wiederverwendbar/fastapi/dependencies.py,sha256=REVIscmYu4pTD9DsoCnMRhmTHGWG9J9d-xBSKyLL3t4,323
|
16
16
|
wiederverwendbar/fastapi/settings.py,sha256=bafvekI9cJgBPi8tG9DL2MEcsfT86xuzMyyhvgE19zk,3596
|
17
17
|
wiederverwendbar/functions/__init__.py,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
|
@@ -146,11 +146,11 @@ wiederverwendbar/task_manger/trigger.py,sha256=biTQv3_S7d14CkPXKjDQxL6XbTet7-PVR
|
|
146
146
|
wiederverwendbar/threading/__init__.py,sha256=jFeP8mQws_JVwxL8W1fCsWPUcFqO-l39yQ8d9P3AqtQ,508
|
147
147
|
wiederverwendbar/threading/extended_thread.py,sha256=CJi2fmpHBZD9jo5B8_85Ax8jo1pM5n9cjEVuG6Guxg8,23409
|
148
148
|
wiederverwendbar/typer/__init__.py,sha256=sOFS8tcI_eeICm7V5G-ZMAw5rFs6wl7UnHnLkOzso1U,190
|
149
|
-
wiederverwendbar/typer/app.py,sha256=
|
149
|
+
wiederverwendbar/typer/app.py,sha256=UwtDGP6Ym7M8gJz94nun27yPJPf83cgrgCqve9vuf6k,7555
|
150
150
|
wiederverwendbar/typer/settings.py,sha256=uJc7WeAoFV1Aa7vSpfms_CXRYicSn3M2MZ6ZpIbd0qQ,761
|
151
151
|
wiederverwendbar/typer/typer_resolve_defaults.py,sha256=2KD09rxKaur2TbJ3BCcLxbrcjhRgiFE8pskzN0lqDiE,1193
|
152
152
|
wiederverwendbar/uvicorn/__init__.py,sha256=9F7gT-8QyxS41xWKEIHMLUBV9ZTBKZJj8tHPqhMzoHA,126
|
153
153
|
wiederverwendbar/uvicorn/server.py,sha256=04WpB8AUtVkYhoS6qsBVJHOtTNkISQVg_mLVtYmK-1Y,5657
|
154
154
|
wiederverwendbar/uvicorn/settings.py,sha256=IAjlpWR-KH7098jIgH_t46yG17YPbH8MoEmMdn0hgNo,2217
|
155
155
|
wiederverwendbar/warnings.py,sha256=6P1wn-OkrDCo5zg_hL28nt5b9w4ZXo4qXwlpW9B_QWI,110
|
156
|
-
wiederverwendbar-0.9.
|
156
|
+
wiederverwendbar-0.9.1.dist-info/RECORD,,
|
File without changes
|
File without changes
|