This is a simple expense analyzer for First Abu Dhabi Bank statements.
- Download your transactions history
- Define your mapping of merchant names to categories
- Run the script and get a report of your expenses per card and in total
git clone https://github.com/ppokrovskii/Fab_Expense_Analyzer
Credit Cards -> Select your card -> Filter transactions -> Download Transactions -> Download as CSV
You can download statements for multiple cards if you want
Create folder Fab_Expense_Analyzer/source_data
folder and store your downloaded csv files there
pip install requirements.txt
rename sample_categories.py
into categories.py
, open it and define your mapping (regex syntax is used)
python main.py --first_day_of_month=24
--first_day_of_month
- optional parameter, equals to 1 by default. If you want to group transactions from salary day to
salary day then pass your salary day
--split_by_month
- optional parameter, equals to True by default. pass --split_by_month=False
if you don't want
the split
<source_file_name>
- proper csv with categories as it should come from FAB itself<source_file_name>_grouped.csv
- grouped by category sums of Debit Amountstotal_grouped.csv
- grouped by category sums of Debit Amounts for source files
- Python 3.10