MCPcopy Create free account
hub / github.com/QodeXcli/QodeX / record_key

Function record_key

examples/skills/data-collector/patterns.py:77–79  ·  view source on GitHub ↗
(rec: dict, fields: list[str])

Source from the content-addressed store, hash-verified

75
76# --- 4. dedup / entity key
77def record_key(rec: dict, fields: list[str]) -> str:
78 raw = "|".join(str(rec.get(f, "")).strip().lower() for f in fields)
79 return hashlib.sha256(raw.encode()).hexdigest()[:16]
80
81
82# --- 5. durable incremental store (SQLite upsert; idempotent re-runs)

Callers 1

patterns.pyFile · 0.85

Calls 2

strFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected