#!/usr/bin/env python3 """Recompute runs-per-pack from the published Tiny Desk Outstanding price table. Source: https://tinydeskoutstanding.video/pricing.md (checked 2026-11-11).""" import json RUN = {"480p": 998, "720p": 1298, "1080p": 2498, "4k": 3998} # credits per run PACKS = {"2 videos": (1996, 1996), "5 videos": (4498, 4990), "10 videos": (6998, 9980), "20 videos": (11998, 19960)} # (price cents, credits) rows = [] for pack, (cents, credits) in PACKS.items(): for res, cost in RUN.items(): runs, left = divmod(credits, cost) rows.append({"pack": pack, "pack_price_usd": cents / 100, "pack_credits": credits, "resolution": res, "single_price_usd": cost / 100, "credits_per_run": cost, "full_runs": runs, "leftover_credits": left, "effective_usd_per_run": round(cents / 100 / runs, 2) if runs else None, "saving_vs_single_pct": round(100 * (1 - (cents / runs) / cost), 1) if runs else None, "source": "https://tinydeskoutstanding.video/pricing.md", "checked": "2026-11-11"}) if __name__ == "__main__": with open("pack-math-2026-11-11.jsonl", "w") as f: for r in rows: f.write(json.dumps(r) + "\n") for r in rows: print(f'{r["pack"]:9} {r["resolution"]:5} runs={r["full_runs"]:2} left={r["leftover_credits"]:5} ' f'per_run=${r["effective_usd_per_run"]} save={r["saving_vs_single_pct"]}%')