Repository navigation
docs: update README with import pipeline, categorization, and ops crate - #898
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
✅ Compatibility Test Results
What's tested
Full results available in workflow artifacts |
There was a problem hiding this comment.
Pull request overview
Updates the top-level README to better document rustledger’s bank import pipeline, categorization capabilities, and to fix/modernize documentation links so new users can find the correct guides and references.
Changes:
- Add “Bank import” to the “Why rustledger?” table and expand the
rledger extractCLI description. - Add a new “Import & Categorization” section describing CSV/OFX import, importer config, dedup, categorization, transfers, and reconciliation.
- Update crates table descriptions for
rustledger-importer/rustledger-opsand fix documentation links todocs/reference/anddocs/guides/.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
|
||
| A 3-tier pipeline automatically categorizes transactions: | ||
|
|
||
| 1. **Rules engine** — substring, regex, and exact match patterns from `importers.toml` |
There was a problem hiding this comment.
The categorization tier-1 description is inaccurate: importers.toml currently only supports substring mappings via [importers.mappings]. Regex mappings and other enrichment options are available through the Rust CsvConfigBuilder API but are not exposed in importers.toml yet, so the README should either limit this bullet to substring mappings or explicitly call out that regex/exact-match rules are library-only for now.
| 1. **Rules engine** — substring, regex, and exact match patterns from `importers.toml` | |
| 1. **Rules engine** — substring mappings from `importers.toml` via `[importers.mappings]` |
| A 3-tier pipeline automatically categorizes transactions: | ||
|
|
||
| 1. **Rules engine** — substring, regex, and exact match patterns from `importers.toml` | ||
| 2. **Merchant dictionary** — ~80 built-in patterns across 10 categories (grocery, dining, transport, subscriptions, etc.) |
There was a problem hiding this comment.
The stated size of the built-in merchant dictionary (“~80 built-in patterns”) doesn’t match the implementation/docs elsewhere (the rustledger-ops merchant dictionary module describes ~150 patterns, and the extract command docs mention ~60). To avoid the README becoming stale, consider either updating this number to match the source-of-truth or rephrasing to something less exact (e.g., “dozens of built-in patterns”).
| 2. **Merchant dictionary** — ~80 built-in patterns across 10 categories (grocery, dining, transport, subscriptions, etc.) | |
| 2. **Merchant dictionary** — dozens of built-in patterns across multiple categories (grocery, dining, transport, subscriptions, etc.) |
| rledger extract --importer chase chase-statement.csv | ||
| ``` | ||
|
|
||
| Config is searched in: current directory, `~/.config/rledger/importers.toml`, or via `--config`. |
There was a problem hiding this comment.
The config discovery description is a bit misleading: when --config is provided it’s treated as an explicit path (and errors if missing), otherwise the search order is current directory importers.toml then ~/.config/rledger/importers.toml. Consider clarifying the precedence/order here to match the actual behavior.
| Config is searched in: current directory, `~/.config/rledger/importers.toml`, or via `--config`. | |
| If `--config` is provided, `rledger` uses that exact path and errors if it does not exist. Otherwise, it searches for `importers.toml` in the current directory first, then `~/.config/rledger/importers.toml`. |
Summary
rledger extractdescription in CLI Commands tablerustledger-importerandrustledger-opsdocs/reference/anddocs/guides/