MCPcopy Create free account
hub / github.com/mlco2/codecarbon / version

Function version

codecarbon/cli/main.py:57–67  ·  view source on GitHub ↗
(
    version: Optional[bool] = typer.Option(
        None,
        "--version",
        "-v",
        help="Show the application's version and exit.",
        callback=_version_callback,
        is_eager=True,
    ),
)

Source from the content-addressed store, hash-verified

55
56@codecarbon.callback()
57def version(
58 version: Optional[bool] = typer.Option(
59 None,
60 "--version",
61 "-v",
62 help="Show the application's version and exit.",
63 callback=_version_callback,
64 is_eager=True,
65 ),
66) -> None:
67 return
68
69
70def show_config(path: Path = Path("./.codecarbon.config")) -> None:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…