Packs / accounting-public
bookkeeping-from-csv
turn a bank transactions CSV into balanced double-entry journal lines and a trial balance
Install
logicpacks pack use accounting-public/bookkeeping-from-csvget_pack accounting-public/bookkeeping-from-csvThe second line is the MCP tool call for the LogicPacks connector (Claude Code, Codex, Claude.ai and others). The first run of a pack someone else wrote asks for your yes.
Keys it needs (names only)
None.
Playbooks included
- Spec:
spec/SPEC.md(goal, steps, edge cases, don’ts) - Routes:
python-stdlib - Checks: 2 in
outcome/checks.yaml - Code:
book.py - Tools: python3
Usage, last 8 weeks
New: no recorded use yet.
Purpose (from spec/SPEC.md)
Goal
Turn a bank transactions CSV into balanced double-entry journal lines and a trial balance.
Steps
- Write keyword rules mapping descriptions to accounts (rules.csv).
- Run
python3 code/book.py tx.csv rules.csv. - Review every Suspense line and add a rule or book it manually.
- Confirm the trial balance says BALANCED, then import the journal into your accounting tool.
Edge cases
- Refunds reverse the usual direction; rules match on text, not sign.
- Mixed-VAT receipts need splitting before booking.
Don'ts
- Don't leave Suspense non-zero at period end.
- Don't edit bank amounts to make it balance.
Routes (free first)
python-stdlib:code/book.py(no install).