utkit 0.1.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.
utkit/__init__.py ADDED
@@ -0,0 +1,2 @@
1
+ def main() -> None:
2
+ print("Hello from utkit!")
utkit/cli/__init__.py ADDED
@@ -0,0 +1,33 @@
1
+ import typer
2
+ from importlib.metadata import version as get_version
3
+
4
+ app = typer.Typer(no_args_is_help=True, help="utkit - core libraries for development.")
5
+
6
+
7
+ def _version_callback(value: bool) -> None:
8
+ if value:
9
+ typer.echo(f"utkit v{get_version('utkit')}")
10
+ raise typer.Exit()
11
+
12
+
13
+ @app.callback()
14
+ def callback(
15
+ version: bool = typer.Option(
16
+ None,
17
+ "--version",
18
+ callback=_version_callback,
19
+ is_eager=True,
20
+ help="Show version and exit.",
21
+ ),
22
+ ) -> None:
23
+ pass
24
+
25
+
26
+ @app.command()
27
+ def version() -> None:
28
+ """Show the current version of utkit."""
29
+ typer.echo(f"utkit v{get_version('utkit')}")
30
+
31
+
32
+ def main() -> None:
33
+ app()
@@ -0,0 +1,10 @@
1
+ Metadata-Version: 2.3
2
+ Name: utkit
3
+ Version: 0.1.0
4
+ Summary: core libraries for development
5
+ Author: TINS PJ
6
+ Author-email: TINS PJ <tinspj1997@gmail.com>
7
+ Requires-Dist: typer>=0.20.0
8
+ Requires-Python: >=3.12
9
+ Description-Content-Type: text/markdown
10
+
@@ -0,0 +1,6 @@
1
+ utkit/__init__.py,sha256=SAb1v28a3O_HivYJnEa4Y8QXoX_PJ9QkhA1qtCdy6kE,51
2
+ utkit/cli/__init__.py,sha256=5_d_TNp3oqEYIuLHrLOtpC-wrjRxnKVszL64B7XFHvU,688
3
+ utkit-0.1.0.dist-info/WHEEL,sha256=q5IF0q2xCp3ktUFRCVWsQLjl2ChNlWXBJtnI1LCGdJ8,80
4
+ utkit-0.1.0.dist-info/entry_points.txt,sha256=n3q6XIp8NkqCMqMJPrg0f5Rh-prZ9lHKih-DnQaVho8,42
5
+ utkit-0.1.0.dist-info/METADATA,sha256=XQIiPdH8-sRpapmbxzYtG3_CHLbSyY7txj9NCA6vpZI,244
6
+ utkit-0.1.0.dist-info/RECORD,,
@@ -0,0 +1,4 @@
1
+ Wheel-Version: 1.0
2
+ Generator: uv 0.11.8
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
@@ -0,0 +1,3 @@
1
+ [console_scripts]
2
+ utkit = utkit.cli:main
3
+