A comprehensive, user-friendly tool for tracking personal and shared expenses with advanced features including budget tracking, data analysis, and visualizations.
- ๐ฏ Budget Tracking: Set monthly budgets by category and get alerts
- ๐ Data Analysis: Detailed insights and spending trends
- ๐ Visualizations: Charts and graphs for better understanding
- ๐ Smart Search: Find expenses by date, category, or amount
- ๐ฑ Better UX: Emoji-enhanced interface with validation
- ๐พ Data Integrity: Robust error handling and data validation
- ๐ Organized Structure: Better file management and organization
Expense Tracker/
โโโ src/
โ โโโ add_new_expense.py # Legacy simple expense adder
โ โโโ budget_tracker.py # Budget management and alerts
โ โโโ data_analyzer.py # Data analysis and visualizations
โ โโโ end_of_month_archive.py # Legacy archiving
โ โโโ expense_tracker.py # Main expense tracking application
โ โโโ monthly_expenses_monitor.py # Legacy monthly summary
โ โโโ run.py # Main entry point for initializing and running the application
โ โโโ setup.py # setup instructions for the expense tracker project
โโโ Expenses/
โ โโโ expenses_working.csv # Current month's expenses
โ โโโ expenses_template.txt # Current month's expenses
โโโ History/ # Archived monthly data
โโโ Summary/ # Monthly summaries
โโโ Budget/ # Monthly summaries
โ โโโ charges.json # Current month's expenses
โ โโโ income.csv # Income tracking
โโโ requirements.txt # Python dependencies
โโโ README.md # This file# Create virtual environment
python3 -m venv .venv
source .venv/bin/activate # On Windows: .venv\Scripts\activate
# Install dependencies
pip install -r requirements.txtpython src/expense_tracker.py- Add Expenses: Intuitive interface with category selection
- View Recent: See your latest transactions
- Monthly Summary: Comprehensive spending overview
- Archive Month: End-of-month data management
- Set Budgets: Configure monthly limits by category
- Track Progress: Monitor spending vs. budget
- Get Alerts: Warnings when approaching limits
- Interactive Setup: Easy budget configuration
- Spending Trends: Analyze patterns over time
- Category Analysis: Detailed breakdown by category
- Account Comparison: Compare spending between accounts
- Generate Charts: Visual representations of your data
- Smart Insights: AI-powered recommendations
python src/expense_tracker.py
# Select option 1: Add new expense
# Follow the interactive promptspython src/budget_tracker.py
# Select option 3: Setup budgets
# Configure limits for each categorypython src/data_analyzer.py
# Select option 1: Spending trends
# View insights and recommendations๐ MONTHLY SUMMARY - 2025-01
============================================================
๐ค Commun: โฌ1,847.35
๐ Maison: โฌ1,141.35 (61.8%)
๐ Transport: โฌ63.00 (3.4%)
๐ Courses: โฌ141.00 (7.6%)
๐ Culture: โฌ14.00 (0.8%)
๐ Autre: โฌ488.00 (26.4%)
๐ค Luc: โฌ1,147.00
๐ Restaurant: โฌ66.00 (5.8%)
๐ Shopping: โฌ258.00 (22.5%)
๐ Autre: โฌ823.00 (71.7%)
๐ฐ TOTAL EXPENSES: โฌ2,994.35๐ Budget Status: Luc - Shopping
๐ฐ Budget: โฌ150.00
๐ธ Spent: โฌ258.00
๐ Percentage: 172.0%
โ ๏ธ WARNING: Budget exceeded!The system includes these expense categories:
- ๐ Maison (Home)
- ๐ Transport
- ๐ฅ Santรฉ (Health)
- ๐ฝ๏ธ Restaurant
- ๐ Courses (Groceries)
- ๐ Bien-รชtre (Wellness)
- ๐ญ Culture
- ๐ Sport
- ๐๏ธ Shopping
- ๐ญ Saucisse (Food)
- ๐ต Liquide (Cash)
- ๐ฐ Economie (Savings)
- ๐ Cadeau (Gifts)
- ๐ฆ Autre (Other)
- Commun: Shared expenses
- Luc: Personal expenses
- Laura: Personal expenses
The system automatically generates:
- Monthly summaries in CSV format
- Charts and visualizations as PNG files
- Archived data for historical analysis
Edit the categories dictionary in expense_tracker.py:
self.categories = {
'๐ ': 'Maison',
'๐': 'Transport',
# Add your new categories here
'๐ฎ': 'Gaming',
}Edit budgets.json or use the interactive setup:
{
"Commun": {
"Maison": 1500,
"Transport": 200
}
}If you're upgrading from the old system:
- Your existing data files are compatible
- Run the new tracker to get enhanced features
- Set up budgets for better tracking
- Use data analysis for insights
Feel free to customize and extend this project:
- Add new features
- Improve the UI
- Add more analysis tools
- Create custom reports
- All amounts are stored in euros (โฌ)
- Dates use DD/MM/YYYY format
- Data is automatically backed up in the History folder
- Charts are saved in a
charts/directory
Happy tracking! ๐ฐ๐