MCPcopy Index your code
hub / github.com/SwanHubX/SwanLab / _metadata_python_version

Function _metadata_python_version

swanlab/cli/ping/__init__.py:245–248  ·  view source on GitHub ↗
(metadata: MetadataSnapshot)

Source from the content-addressed store, hash-verified

243
244
245def _metadata_python_version(metadata: MetadataSnapshot) -> Optional[str]:
246 if not _has_field(metadata, "runtime"):
247 return None
248 return _optional_string(metadata.runtime, "python_version")
249
250
251def _format_memory(message: MemoryLikeSnapshot, value_field: str, unit_field: str) -> Optional[str]:

Callers 1

show_resultFunction · 0.85

Calls 2

_has_fieldFunction · 0.85
_optional_stringFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…