Skip to content

ontocast.cli._entry

Console-script entry points with a helpful error on a base install.

The CLI and HTTP server need click, uvicorn, FastAPI and the document stack, none of which ship in the light core. Without this shim a base install fails with a bare ModuleNotFoundError: No module named 'click', which says nothing about the extra that fixes it.

Every console script in pyproject.toml routes through :func:_run.

match_graphs()

Entry point for the match-graphs command.

Source code in ontocast/cli/_entry.py
def match_graphs() -> Any:
    """Entry point for the `match-graphs` command."""
    return _run("match-graphs", "ontocast.cli.match_graphs", "main")

ontocast()

Entry point for the ontocast command.

Source code in ontocast/cli/_entry.py
def ontocast() -> Any:
    """Entry point for the `ontocast` command."""
    return _run("ontocast", "ontocast.cli.server", "cli")

pdfs_to_markdown()

Entry point for the pdfs-to-markdown command.

Source code in ontocast/cli/_entry.py
def pdfs_to_markdown() -> Any:
    """Entry point for the `pdfs-to-markdown` command."""
    return _run("pdfs-to-markdown", "ontocast.cli.pdfs_to_markdown", "main")

plot_graph()

Entry point for the plot-graph command.

Source code in ontocast/cli/_entry.py
def plot_graph() -> Any:
    """Entry point for the `plot-graph` command."""
    return _run("plot-graph", "ontocast.cli.plot_graph", "main")