checks.py

back to table · edit · history · where entries came from · files · download

650 bytes, as of the version from 2026-10-26 16:08 (current). Recorded here, not run.

"""Check all inherited Barnes values, without changing the website."""

import argparse
import json
from pathlib import Path
import numberdb
from barnes import verify_document

if __name__ == "__main__":
    parser = argparse.ArgumentParser(description=__doc__)
    parser.add_argument("--live", action="store_true")
    parser.add_argument("--document", type=Path)
    arguments = parser.parse_args()
    document = json.loads(arguments.document.read_text()) if arguments.document else numberdb.table("T93")
    checked, evidence = verify_document(document)
    print(json.dumps({key: value for key, value in evidence.items() if key != "records"}))