MCPcopy Create free account
hub / github.com/Keeper-Security/Commander / write_import_json

Function write_import_json

examples/pam_import_generator.py:250–253  ·  view source on GitHub ↗

Generate JSON and save to file

(data: Dict[str, Any], path: str)

Source from the content-addressed store, hash-verified

248
249
250def write_import_json(data: Dict[str, Any], path: str):
251 """ Generate JSON and save to file"""
252 content = json.dumps(data, indent=2)
253 _write(Path(path), content)
254
255
256def prepare_temlpate(template: Dict[str, Any]) -> None:

Callers 1

mainFunction · 0.70

Calls 1

_writeFunction · 0.70

Tested by

no test coverage detected