# 4-Infrastructure/lib — shared Python utilities for the Research Stack. # # Consolidates duplicated helpers (hashing, Q16_16 arithmetic, JSON/JSONL I/O, # Fraction serialization) that were previously copy-pasted across dozens of # scripts in 4-Infrastructure/ and 5-Applications/. # # Usage from any script in the repo: # import sys # from pathlib import Path # sys.path.insert(0, str(Path(__file__).resolve().parents[] / "4-Infrastructure")) # from lib.hashing import sha256_file, sha256_text