"""Byte-compare numeric chart-cache spellings. See api_disk_cache_ab.py.""" from __future__ import annotations import json import sys from pathlib import Path sys.path.insert(0, str(Path(__file__).resolve().parent)) import api_disk_cache_ab as ab def main() -> dict: parent_error = None try: parent = ab._load_parent() except Exception as exc: parent = None parent_error = exc.__class__.__name__ report = ab.run_byte_diff(parent or ab.current) report["parent_import"] = parent_error or "ok" report["parent"] = ab.PARENT return report if __name__ == "__main__": json.dump(main(), sys.stdout, ensure_ascii=False, indent=2) sys.stdout.write("\n")