MCPcopy
hub / github.com/safishamsi/graphify / _make_id

Function _make_id

graphify/extract.py:10–14  ·  view source on GitHub ↗

Build a stable node ID from one or more name parts.

(*parts: str)

Source from the content-addressed store, hash-verified

8
9
10def _make_id(*parts: str) -> str:
11 """Build a stable node ID from one or more name parts."""
12 combined = "_".join(p.strip("_.") for p in parts if p)
13 cleaned = re.sub(r"[^a-zA-Z0-9]+", "_", combined)
14 return cleaned.strip("_").lower()
15
16
17def extract_python(path: Path) -> dict:

Callers 15

test_make_id_consistentFunction · 0.90
extract_pythonFunction · 0.85
walkFunction · 0.85
extract_jsFunction · 0.85
extract_goFunction · 0.85
extract_rustFunction · 0.85
extract_javaFunction · 0.85
extract_cFunction · 0.85
extract_cppFunction · 0.85
extract_rubyFunction · 0.85

Calls

no outgoing calls