rlsbl v0.40.1 /rlsbl.strictcli_detect
On this page

Detect whether a project uses strictcli and extract its entry point.

#rlsbl.strictcli_detect

#rlsbl.strictcli_detect

Detect whether a project uses strictcli and extract its entry point.

#detect_strictcli

python
def detect_strictcli(project_dir: str='.') -> tuple[str, str] | None

Check if a project uses strictcli and return its entry point info.

Reads pyproject.toml from project_dir. If the project depends on strictcli and has a [project.scripts] entry, returns (entry_point_name, "python"). Returns None if the project does not use strictcli.

Args:

  • project_dir: path to the project root (default: current directory).

Returns:

  • A tuple (entry_point_name, "python") if strictcli is detected, else None.