
Grant Budget Cap Check
Reads a JSON budget with line items, computes subtotals and totals, and flags line items that exceed common agency caps for the named mechanism.
The output is a JSON summary of totals plus a markdown list of flagged lines. The files open in your own spreadsheet, calendar and text programs.
Not financial, tax or accounting advice. For a money decision, ask a qualified professional.
$10.00 USD, one-time
Buying this pack gets you a licence to use it, not ownership of the files.
- Download right after payment, and by email.
- Runs on your own computer.
- Refund within 14 days, for any reason.
- Payment is handled by Stripe.
Terms of Sale · Buyer Licence · Refund Policy · Privacy Policy
What it does
Reads a JSON budget with line items, computes subtotals and totals, and flags line items that exceed common agency caps for the named mechanism. The output is a JSON summary of totals plus a markdown list of flagged lines. The files open in your own spreadsheet, calendar and text programs.
What's inside
- Grant Budget Cap Check: README.md, budget_check.py, caps.yaml, example_budget.json, report.md and 1 Python file.
With a README and the Teranite Facet Buyer Licence.
Sample
Grant Budget Cap Check
Reads a JSON budget with line items, computes subtotals and totals, and flags line items that exceed common agency caps for the named mechanism. The output is a JSON summary of totals plus a markdown list of flagged lines.
Files: README.md, budget_check.py, caps.yaml, example_budget.json, report.md. budget_check.py, start of the file:
import json
import yaml
import sys
def load_caps(filepath):
with open(filepath, 'r') as f:
return yaml.safe_load(f)
def load_budget(filepath):
with open(filepath, 'r') as f:
return json.load(f)
def check_budget(budget, caps_data):
mechanism = budget.get('mechanism')
if mechanism not in caps_data:
raise ValueError(f"Mechanism {mechanism} not found in caps definition.")
limits = caps_data[mechanism]
flags = []
total = 0
# Mapping categories to cap keys
mapping = {
'salary': 'salary_cap',
'equipment': 'equipment_threshold',
'travel': 'travel_limit',
'other': 'other_limit'
}
for item in budget['line_items']:
amount = item['amount']
total += amount
cat = item['category']
if cat in mapping:
limit_key = mapping[cat]
limit_val = limits.get(limit_key)
if limit_val and amount > limit_val:
flags.append(f"- {item['description']} ({cat}): ${amount} exceeds limit of ${limit_val}")
return total, flags
def main():
try:
caps = load_caps('caps.yaml')
budget = load_budgetRequirements
- A program that opens the file types listed.
- Checked: every file opens and parses, and any spreadsheet formulas compute in Microsoft Excel for Windows.
- Not opened in other programs.
Install
Unzip the download, then the zip inside it. Each folder inside holds one set of files; open or import them in your own programs and work on a copy.
Licence
One licence covers one person. Your finished work is yours. Do not share or resell the files.
How it is made
Facet Packs are made with Teranite's own software tools, some of them written with help from AI, and rendered or built by standard software. They contain no AI-generated images.
Support
Questions, or a fault: support
More from Tools
See allToolAudio Normalizer for Voice-OversOutputs processed WAV files with minimal clipping.$18.00View
ToolBilingual Form HTML GeneratorThe package includes example form definitions for school, medical, and government use.$10.00View
ToolBird Ringing Schedule for UK RingersUpdates automatically from a CSV of past ringing sessions.$10.00View
Tool packCascade Deadline Shifter SheetsDeadline Chain Shifter, Cascade Deadline Shifter.$18.00View