MCPcopy
hub / github.com/guelfoweb/knockpy / add

Function add

knockpy/output.py:287–293  ·  view source on GitHub ↗
(key: str, text: Any)

Source from the content-addressed store, hash-verified

285 evidence: Dict[str, List[str]] = {}
286
287 def add(key: str, text: Any) -> None:
288 value = str(text).strip()
289 if not value or value == "-":
290 return
291 bucket = evidence.setdefault(key, [])
292 if value not in bucket:
293 bucket.append(value)
294
295 sec_txt = security.get("security_txt") or {}
296 add("security_txt", f"url={sec_txt.get('url') or '-'}")

Callers 1

_security_evidence_mapFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected