← Files Institutional Equity AnalystARCHIVED FILE

scripts/risk/covenant_headroom.py

515 Bytes · Oct 3, 2026 · 06:37 UTC

↓ Download file

#!/usr/bin/env python3
"""Command wrapper for finance_core.covenant_headroom."""
from __future__ import annotations
import json
from pathlib import Path
import sys

sys.path.insert(0, str(Path(__file__).resolve().parents[1]))
from finance_core import covenant_headroom

if __name__ == "__main__":
    if len(sys.argv) != 2:
        raise SystemExit("usage: covenant_headroom.py '{JSON keyword arguments}'")
    print(json.dumps(covenant_headroom(**json.loads(sys.argv[1])), indent=2, sort_keys=True))

SHA-256: 2b65036e6b4073d990e7b3d51a631a3798a4903f02c7776a90cadbb126857d2d