A Python-based finance tracking application that uses SQLite to store financial data and SQL queries to analyze transactions and generate statistics.
- Data Storage: Store financial records in an SQLite database.
- Database Management: Create and access database tables using Python's
sqlite3library. - Financial Statistics: Calculate total amounts and analyze records.
- Daily Analysis: Calculate totals for individual days.
- Category Analysis: Group financial data by category and identify the category with the highest total.
- SQL Queries: Retrieve and analyze stored data using SQL.
- Python — Application logic and data processing
- SQLite — Database storage
- SQL — Data retrieval, aggregation, and analysis
- sqlite3 — Python's built-in SQLite interface
- Python 3.x
- No external database server required
The sqlite3 library is included with standard Python installations.
git clone https://github.com/blackguy-dev-git/finance-tracker.gitcd finance-trackerpython main.pyFollow the prompts displayed in the terminal to enter financial data and view the available statistics.
finance-tracker/
├── main.py # Application logic and database operations
├── README.md # Project documentation
└── finance.db # SQLite database, created at runtime if applicable
Note: The database filename shown above assumes your application uses finance.db; adjust it if your code uses a different filename.
Through this project, I practiced:
- Connecting Python applications to SQLite databases.
- Creating database tables and executing SQL queries.
- Inserting and retrieving records.
- Using SQL aggregate functions to calculate totals.
- Grouping data by day and category.
- Organizing a Python application into functions.
- Add separate income and expense tracking.
- Support complete transaction dates and monthly reports.
- Implement input validation and error handling.
- Add a menu for managing financial records.
- Support editing and deleting transactions.
- Introduce visual charts and a graphical user interface.
Moiz Butt
- GitHub: @blackguy-dev-git
Built with Python and SQLite as a hands-on project to strengthen database and software development skills.