MCPcopy Create free account
hub / github.com/thygate/stable-diffusion-webui-depthmap-script / get_installed_version

Function get_installed_version

install.py:64–68  ·  view source on GitHub ↗
(package: str)

Source from the content-addressed store, hash-verified

62
63# Depth Anything
64def get_installed_version(package: str):
65 try:
66 return importlib.metadata.version(package)
67 except Exception:
68 return None
69def try_install_from_wheel(pkg_name: str, wheel_url: str):
70 if get_installed_version(pkg_name) is not None:
71 return

Callers 1

try_install_from_wheelFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected