Add Paperless Finance Report Tool - Complete implementation

A Python CLI tool for generating financial reports from Paperless-ngx:

- Phase 1 (MVP): Config handling, Paperless API client with auth and
  pagination, custom fields extraction, tag-based summation, CLI output
- Phase 2 (Grouping): Multiple grouping criteria (tag, correspondent,
  category, payment type, month, quarter, year), percentage distribution
- Phase 3 (Reports): HTML reports with Chart.js diagrams (doughnut, bar,
  line charts), PDF export via WeasyPrint, JSON and CSV export
- Phase 4 (Comfort): Automatic tag ID resolution, disk caching with
  diskcache, colorized logging, comprehensive error handling

Features:
- Flexible date filtering (year, month, date range)
- Period comparison with change analysis
- Swiss franc formatting (CHF with apostrophe separators)
- Interactive HTML reports with sortable tables and document links
- Multiple output formats (CLI, HTML, PDF, JSON, CSV)
This commit is contained in:
Claude
2025-12-07 10:09:10 +00:00
parent 3134418e6a
commit d2dd837f26
13 changed files with 3824 additions and 0 deletions
+31
View File
@@ -0,0 +1,31 @@
# Paperless Finance Report Tool - Dependencies
# HTTP Client
requests>=2.31.0
# CLI Framework
click>=8.1.7
# Configuration
pyyaml>=6.0.1
# HTML Templating
jinja2>=3.1.2
# PDF Generation
weasyprint>=60.1
# Data Processing
python-dateutil>=2.8.2
# Caching
diskcache>=5.6.3
# Logging (colorized output)
colorlog>=6.8.0
# Progress bars
tqdm>=4.66.1
# Table formatting for CLI
tabulate>=0.9.0