MCPcopy Create free account
hub / github.com/VectifyAI/OpenKB / _atomic_yaml_dump

Function _atomic_yaml_dump

openkb/config.py:50–54  ·  view source on GitHub ↗
(path: Path, config: dict[str, Any])

Source from the content-addressed store, hash-verified

48
49
50def _atomic_yaml_dump(path: Path, config: dict[str, Any]) -> None:
51 atomic_write_text(
52 path,
53 yaml.safe_dump(config, allow_unicode=True, sort_keys=True),
54 )
55
56
57def _load_global_config_unlocked() -> dict[str, Any]:

Callers 3

save_configFunction · 0.85
save_global_configFunction · 0.85
register_kbFunction · 0.85

Calls 1

atomic_write_textFunction · 0.90

Tested by

no test coverage detected