Overview
tktax-analysis is a Rust crate dedicated to robust, production-grade tax and financial data analysis (ἀνάλυσις). It integrates multiple transaction sources (e.g., Amazon purchases, charity donatio (Latin), medical records, etc.) and provides an extensible framework for categorization, histogram generation, and summarization. By capitalizing on a composable set of traits and robust error handling, this crate streamlines year-end reporting, business expense analysis, philanthropic contributions, and beyond.
Core capabilities:
- Account Analysis: Parameterized via
AccountAnalysis<TxCat>for any user-definedTransactionCategory. - Hooks:
AccountAnalysisHooksenable flexible instantiation of business and medical transaction sets, donation builders, and category maps. - Donations: Structured philanthropic data ingestion, including optional Amazon item mappings.
- Monthly and Histogram Summaries: Summaries by month and visual histograms to highlight bursts or spikes in financial flow.
- Extensive Reporting: Configurable for short or full reports (via
AccountAnalysisFlags) to highlight medical/insurance expenses, treasury transactions, checks, and more.
Example Usage
use *;
use MyCustomCategory; // a user-defined TxCat
- Implement your custom
TransactionCategoryfor domain-specific categorization. - Construct the required hooks and category map with your data.
- Execute
run_analysisto produce short or comprehensive financial reports. - Leverage the modular trait-based architecture for specialized reporting tasks, from medical disbursements to philanthropic itemization.
Features
run_analysisfosters end-to-end data ingestion and processing.- Bitflags in
AccountAnalysisFlagsdeliver flexible configuration (e.g., partial or complete reports). - Rigorously typed error-handling ensures resilience in production environments.
- Straightforward extension points (
ShowAccountSummary,ShowMonthlySummary, etc.) let you adapt analysis logic to custom data structures.
License
tktax-analysis is distributed under terms compatible with typical open-source licenses (e.g., MIT). Refer to LICENSE for details.