MCPcopy Index your code
hub / github.com/commandoperator/cmdop-sdk / _host_slug

Function _host_slug

python/src/cmdop/_locate.py:42–48  ·  view source on GitHub ↗

Return `` - `` for this host, or None if unsupported.

()

Source from the content-addressed store, hash-verified

40
41
42def _host_slug() -> str | None:
43 """Return ``<plat>-<arch>`` for this host, or None if unsupported."""
44 plat = _PLATFORMS.get(sys.platform)
45 arch = _ARCHES.get(platform.machine().lower())
46 if plat is None or arch is None:
47 return None
48 return f"{plat}-{arch}"
49
50
51def _binary_name() -> str:

Callers 4

_binary_nameFunction · 0.85
locate_binaryFunction · 0.85

Calls 1

getMethod · 0.45