You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add professional financial statement formatter to finquick #76
Financial data from GnuCash SQLite databases often needs to be presented in a professional, readable format with proper currency symbols, thousands separators, and column alignment. Currently, raw SQL output is difficult to read and share.
Proposed Solution
Add a new package packages/format-financial/ with a Python script that formats financial data tables with:
Key Features
Currency formatting: Automatic $ symbols and thousands separators ($1,234.56)
Perfect column alignment: Dynamic width calculation for clean tables
Dual output modes: Both plain text (terminal-friendly) and markdown table formats
Decimal precision: Uses Python's Decimal class to avoid floating-point errors
Testable design: I/O separated from formatting logic with comprehensive doctests
Usage Examples
# Plain text output (also valid markdown)
python3 format_financial.py database.sqlite view_name
# Pure markdown output
python3 format_financial.py database.sqlite view_name --markdown
Activity
dckc commentedon Jul 22, 2025
The code is already written in another repository:
2025-07-22 02:22 cc17731 feat: format_financial.py - $ symbols, 000 separators, right align