How pirateincognito/ynab-order-splitter works
YNABuddy is a console application that turns vendor purchase records into reviewed YNAB transaction splits. The main workflow configures a budget and vendor mapping, loads vendor data, matches it against YNAB transactions, splits charges into item lines, offers optional category suggestions, and lets the user approve or skip edits before pushing approved splits. The README documents Amazon scraping and the review and push safeguards; several supporting modules are indexed but not excerpted, so their internal relationships are shown only where the excerpts or README establish them.
Main entry points: main.py Console app · review.py Review screen · match.py Transaction matching · ynab_client.py YNAB API client
Components 20
Setup and configuration
- Console app
core/main.py - Initial setup
core/setup_wizard.py - User preferences
core/user_prefs.py - Secrets config
core/config.py - Plugin settings
core/plugin_settings.py - Terminal UI
core/ui.py
Vendor data
- Plugin discovery
plugins/orchestrator.py - Vendor contract
plugins/plugin.py - Amazon orders
plugins/amazon.com/plugin.py
Matching and review
- Transaction matching
core/match.py - Item splitting
core/split.py - Category suggestions
core/categorize.py - Review screen
core/review.py - Category cache
core/categorize.py - Approved push
core/push.py - Money conversions
core/milliunits.py
External services
- YNAB transactions
- AI providers
core/agents.py - YNAB API client
core/ynab_client.py
Other components
- User
Connections 26
- User → Console app: runs
README.md - Console app → Initial setup: starts setup
core/main.py - Initial setup → YNAB API client: validates token
core/setup_wizard.py - Console app → Plugin discovery: lists plugins
core/main.py - Console app → Plugin settings: configures plugins
core/main.py - Plugin settings → Vendor contract: reads settings
core/plugin_settings.py - Plugin discovery → Vendor contract: loads implementations
plugins/orchestrator.py - Amazon orders → Vendor contract: implements contract
plugins/amazon.com/plugin.py - Console app → Transaction matching: starts match cycle
core/main.py - Transaction matching → YNAB API client: fetches transactions
core/match.py - YNAB API client → YNAB transactions: reads and updates
README.md - Transaction matching → Amazon orders: finds vendor records
core/match.py - Transaction matching → Item splitting: splits results
core/match.py - Transaction matching → Review screen: opens review
core/match.py - Console app → Review screen: reviews saved results
core/main.py - Review screen → Category suggestions: requests suggestions
core/categorize.py - Category suggestions → AI providers: asks provider
core/categorize.py - AI providers → User: suggests categories
README.md - Review screen → Category cache: reads and updates
core/review.py - Review screen → Terminal UI: renders prompts
core/review.py - Review screen → Approved push: pushes approvals
core/match.py - Approved push → YNAB API client: checks and writes
README.md - Item splitting → Money conversions: converts amounts
- Review screen → Money conversions: formats amounts
core/review.py - Console app → User preferences: reads settings
core/main.py - Console app → Secrets config: reads credentials
core/main.py