harp_apps.dashboard.utils.dependencies

async get_python_dependencies()[source]

Get installed Python packages using importlib.metadata.

Returns a list of strings in the format “package==version”, compatible with pip freeze output format. This works in all Python environments including pip-less environments like uv.

Return type:

list[str]

parse_dependencies(dependencies)[source]

Transform a list of dependencies into a dictionary of dependencies, with package name as key.

Parameters:

dependencies (list[str])

Return type:

dict[str, str]