Split ABN AMRO bank transaction files by month.
# Install from source (editable mode for development)
pip install -e .
# Or install normally
pip install .# Basic usage (CSV without header)
tx-separator transactions.csv
# Excel file with header row
tx-separator transactions.xlsx --header
# CSV file with header row
tx-separator transactions.csv --header
# Specify custom output directory
tx-separator transactions.csv -o output/
# Excel input, force CSV output
tx-separator transactions.xlsx --header --output-format csv
# Verbose output
tx-separator transactions.csv -v
# Skip verification (not recommended)
tx-separator transactions.csv --skip-verify| Option | Description |
|---|---|
--header |
Input file has a header row (preserved in each output file) |
--output-format {csv,xlsx,auto} |
Output format (default: auto = match input) |
-o, --output-dir |
Output directory (default: directory named after input file) |
-v, --verbose |
Enable verbose output |
--skip-verify |
Skip verification step |
- Reads a transaction file (tab-delimited CSV or Excel)
- Groups transactions by month based on the date column (column 3, YYYYMMDD format)
- Creates separate files named
transactions_YYYY_MM.csv(or.xlsx) for each month - If
--headeris specified, preserves the header row in each output file - Verifies that the output files match the original input
Files are created in the output directory:
transactions_2024_01.csv(or.xlsx)transactions_2024_02.csv(or.xlsx)- etc.