Skip to content

sund.installed_models

sund.installed_models()

Produces a list of the names of the installed models.

Returns:

Type Description
list[str]

A list of installed models

Source code in src/sund/__init__.py
228
229
230
231
232
233
234
235
def installed_models() -> list[str]:
    """Produces a list of the names of the installed models. 

    Returns:
        A list of installed models
    """
    pkgpath = Path(__file__).parent / "Models"
    return [name for _, name, _ in pkgutil.iter_modules([str(pkgpath)])]