Skip to content

Packs / accounting-public

bookkeeping-from-csv

turn a bank transactions CSV into balanced double-entry journal lines and a trial balance

L2 Checks passed 3 of 3 runsv1.0.0Tech-Realm/space-accounting-public

Install

logicpacks pack use accounting-public/bookkeeping-from-csv
get_pack accounting-public/bookkeeping-from-csv

The 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

  1. Write keyword rules mapping descriptions to accounts (rules.csv).
  2. Run python3 code/book.py tx.csv rules.csv.
  3. Review every Suspense line and add a rule or book it manually.
  4. 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)

  1. python-stdlib: code/book.py (no install).