MCPcopy
hub / github.com/opentrace/opentrace / package_id

Function package_id

agent/src/opentrace_agent/sources/code/import_analyzer.py:38–40  ·  view source on GitHub ↗

Build a deterministic package node ID.

(registry: str, name: str)

Source from the content-addressed store, hash-verified

36
37
38def package_id(registry: str, name: str) -> str:
39 """Build a deterministic package node ID."""
40 return f"pkg:{registry}:{name}"
41
42
43def package_source_url(registry: str, name: str) -> str | None:

Callers 5

scanningFunction · 0.90
_parse_python_importFunction · 0.85
_parse_go_import_specFunction · 0.85
_parse_ts_importFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected