# bookkeeping-from-csv

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

- **Space:** accounting-public (https://github.com/Tech-Realm/space-accounting-public/tree/main/bookkeeping-from-csv)
- **Level:** L2 (as the registry reports it)
- **Keys it needs (names only):** none
- **Tools:** python3
- **Routes:** python-stdlib; checks: 2
- **Uses:** new (no recorded use yet)
- **Install:** `logicpacks pack use accounting-public/bookkeeping-from-csv` or MCP `get_pack accounting-public/bookkeeping-from-csv`
- **Files:** CHANGELOG.md, code/book.py, outcome/EVIDENCE.md, outcome/checks.yaml, outcome/fixtures/rules.csv, outcome/fixtures/tx.csv, outcome/results.json, pack.yaml, refs/refs.yaml, spec/SPEC.md, spec/source.md

## Purpose (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).



---

Canonical URL: https://logicpacks.io/packs/accounting-public/bookkeeping-from-csv

Developed by TechRealm (techrealm.online), the software team. Operated by Al Jash Trading (Establishment), Abu Dhabi, since 1994, the legal entity that hosts and is responsible for the service. Economic licence CN-1030597, Abu Dhabi Registration Authority. Address: Office 5, Bani Yas West 4, Bani Yas, Abu Dhabi, UAE. Website: https://aljashtrading.com. Contact: hello@logicpacks.io, security@logicpacks.io, WhatsApp +1 713 632 2262 (https://wa.me/17136322262).

Machine-readable index: [/llms.txt](/llms.txt). Plain facts: [/about.md](/about.md). Safety: [/safety.md](/safety.md).
