larzbudget
Category-based budget tracking on the real Money type.
Set a limit per category, log spends with a note, and check status() at any time for the limit/spent/remaining/over breakdown - all on the language's own exact Money type, never a float. A history log records every spend for later review.
larzscript pkg install budget
What you get
- Per-category limits on real Money, never a float
- status() - limit/spent/remaining/over, one call
- Every spend logged with a note
- total_spent() across every category
Try it
import "budget" as budget let b = budget.new() budget.set_limit(b, "groceries", $300.00) budget.spend(b, "groceries", $45.00, "weekly shop") budget.spend(b, "groceries", $280.00, "big shop") print(budget.status(b, "groceries")) print(budget.total_spent(b))
Output
{limit: $300.00, spent: $325.00, remaining: -$25.00, over: true}
$325.00Why it's in the Larz Stack
larzbudget is a real Larzscript package (larzscript pkg install budget) - money-native, zero dependencies, the same language as the rest of the estate, not a separate Python runtime. It composes with the rest of the Larz Stack and the Larz framework.