gret 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.
- gret/__init__.py +25 -0
- gret/cli.py +53 -0
- gret/py.typed +1 -0
- gret-0.1.0.dist-info/METADATA +54 -0
- gret-0.1.0.dist-info/RECORD +7 -0
- gret-0.1.0.dist-info/WHEEL +4 -0
- gret-0.1.0.dist-info/entry_points.txt +3 -0
gret/__init__.py
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# Copyright (c) 2026 Yuichi Ito (yuichi@yuichi.com)
|
|
2
|
+
#
|
|
3
|
+
# This software is licensed under the Apache License, Version 2.0.
|
|
4
|
+
# For more information, please visit: https://github.com/yuichi110/golden_retriever
|
|
5
|
+
#
|
|
6
|
+
# This software is provided "as is", without warranty of any kind,
|
|
7
|
+
# express or implied, including but not limited to the warranties of
|
|
8
|
+
# merchantability, fitness for a particular purpose and noninfringement.
|
|
9
|
+
|
|
10
|
+
"""Golden Retriever - CLI and developer toolkit."""
|
|
11
|
+
|
|
12
|
+
from __future__ import annotations
|
|
13
|
+
|
|
14
|
+
from typing import Final
|
|
15
|
+
|
|
16
|
+
LIB_NAME: Final[str] = "gret"
|
|
17
|
+
LIB_VERSION: Final[str] = "0.1.0"
|
|
18
|
+
|
|
19
|
+
__version__: Final[str] = LIB_VERSION
|
|
20
|
+
|
|
21
|
+
__all__ = [
|
|
22
|
+
"LIB_NAME",
|
|
23
|
+
"LIB_VERSION",
|
|
24
|
+
"__version__",
|
|
25
|
+
]
|
gret/cli.py
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
# Copyright (c) 2026 Yuichi Ito (yuichi@yuichi.com)
|
|
2
|
+
#
|
|
3
|
+
# This software is licensed under the Apache License, Version 2.0.
|
|
4
|
+
# For more information, please visit: https://github.com/yuichi110/golden_retriever
|
|
5
|
+
#
|
|
6
|
+
# This software is provided "as is", without warranty of any kind,
|
|
7
|
+
# express or implied, including but not limited to the warranties of
|
|
8
|
+
# merchantability, fitness for a particular purpose and noninfringement.
|
|
9
|
+
|
|
10
|
+
"""Command line interface for Golden Retriever (gret)."""
|
|
11
|
+
|
|
12
|
+
from __future__ import annotations
|
|
13
|
+
|
|
14
|
+
import typer
|
|
15
|
+
from rich.console import Console
|
|
16
|
+
|
|
17
|
+
from gret import LIB_NAME, LIB_VERSION
|
|
18
|
+
|
|
19
|
+
app = typer.Typer(
|
|
20
|
+
name="gret",
|
|
21
|
+
help="Golden Retriever CLI application.",
|
|
22
|
+
no_args_is_help=False,
|
|
23
|
+
)
|
|
24
|
+
|
|
25
|
+
console = Console()
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
@app.command("version")
|
|
29
|
+
def version() -> None:
|
|
30
|
+
"""Display version information."""
|
|
31
|
+
console.print(f"[bold cyan]{LIB_NAME}[/bold cyan] version [bold green]{LIB_VERSION}[/bold green]")
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
@app.callback(invoke_without_command=True)
|
|
35
|
+
def callback(ctx: typer.Context) -> None:
|
|
36
|
+
"""Golden Retriever entrypoint callback.
|
|
37
|
+
|
|
38
|
+
Args:
|
|
39
|
+
ctx: Typer context object.
|
|
40
|
+
"""
|
|
41
|
+
if ctx.invoked_subcommand is None:
|
|
42
|
+
console.print("[bold cyan]Golden Retriever CLI[/bold cyan]")
|
|
43
|
+
console.print(f"{LIB_NAME} version [bold green]{LIB_VERSION}[/bold green]\n")
|
|
44
|
+
console.print("Run [bold]gret --help[/bold] for available commands.")
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
def main() -> None:
|
|
48
|
+
"""Execute gret CLI."""
|
|
49
|
+
app()
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
if __name__ == "__main__":
|
|
53
|
+
main()
|
gret/py.typed
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
# Marker file for PEP 561
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
Metadata-Version: 2.3
|
|
2
|
+
Name: gret
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: Golden Retriever - CLI and developer toolkit.
|
|
5
|
+
Author: Yuichi Ito
|
|
6
|
+
Author-email: Yuichi Ito <yuichi@yuichi.com>
|
|
7
|
+
License: Apache-2.0
|
|
8
|
+
Requires-Dist: typer>=0.12.0
|
|
9
|
+
Requires-Dist: rich>=13.0.0
|
|
10
|
+
Requires-Python: >=3.11
|
|
11
|
+
Project-URL: Repository, https://github.com/yuichi110/golden_retriever
|
|
12
|
+
Description-Content-Type: text/markdown
|
|
13
|
+
|
|
14
|
+
# golden_retriever
|
|
15
|
+
|
|
16
|
+
Golden Retriever CLI and developer toolkit.
|
|
17
|
+
|
|
18
|
+
---
|
|
19
|
+
|
|
20
|
+
## Overview
|
|
21
|
+
|
|
22
|
+
- **Package Name (PyPI)**: `gret`
|
|
23
|
+
- **Import Module**: `gret`
|
|
24
|
+
- **CLI Command**: `gret`
|
|
25
|
+
- **Developer Management Tool**: `./gcli`
|
|
26
|
+
|
|
27
|
+
---
|
|
28
|
+
|
|
29
|
+
## Development Setup
|
|
30
|
+
|
|
31
|
+
This project uses [uv](https://github.com/astral-sh/uv) for dependency management and packaging.
|
|
32
|
+
|
|
33
|
+
```bash
|
|
34
|
+
# Sync dependencies and set up virtual environment
|
|
35
|
+
uv sync
|
|
36
|
+
|
|
37
|
+
# Run the CLI
|
|
38
|
+
uv run gret --help
|
|
39
|
+
|
|
40
|
+
# Run developer CLI toolsets
|
|
41
|
+
./gcli --help
|
|
42
|
+
./gcli code-check all
|
|
43
|
+
./gcli test all
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
---
|
|
47
|
+
|
|
48
|
+
## Developer Toolset (`./gcli`)
|
|
49
|
+
|
|
50
|
+
The `./gcli` script provides unified developer utilities:
|
|
51
|
+
|
|
52
|
+
- `./gcli code-check all`: Run Ruff linter and Ty type checker.
|
|
53
|
+
- `./gcli test all`: Run full pytest suite with coverage.
|
|
54
|
+
- `./gcli pypi check-version`: Verify package release version against PyPI.
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
gret/__init__.py,sha256=PbN3livjKi7CT9LhUiUeSKTAnQePOJA_QS8Fjz09tT4,704
|
|
2
|
+
gret/cli.py,sha256=A_vvFObrS8Q6Dd4_PBdR2_syzr0fLFItOhAYGdBtYEM,1480
|
|
3
|
+
gret/py.typed,sha256=8PjyZ1aVoQpRVvt71muvuq5qE-jTFZkK-GLHkhdebmc,26
|
|
4
|
+
gret-0.1.0.dist-info/WHEEL,sha256=iCTolw4aw2dP3yfM-EQCGTDsFCXL_ymmbYnBRVH7plA,81
|
|
5
|
+
gret-0.1.0.dist-info/entry_points.txt,sha256=fpf5B1iWgrnVazvikgsTnOXR78o31bgZGiI9qKAmTt0,40
|
|
6
|
+
gret-0.1.0.dist-info/METADATA,sha256=8DqYNQoI4VE7eARpSOgrX6djks0IGrU3WvpE_m2qLkQ,1201
|
|
7
|
+
gret-0.1.0.dist-info/RECORD,,
|