Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

2 Commits

Folders and files

Repository files navigation

💰 Python Expense Tracker

A command-line expense tracker built with Python that helps users record expenses, organize spending by category, and monitor their budget.

✨ Features

  • 📝 Expense Tracking: Enter an expense name and amount.
  • 🗂️ Expense Categories: Categorize expenses into Food, Home, Work, Fun, and Miscellaneous.
  • 💾 File Handling: Store expenses in a CSV file for persistent recordkeeping.
  • 📊 Category-wise Summary: Calculate spending for each expense category.
  • 💵 Budget Monitoring: View total spending and the remaining budget.
  • 📅 Daily Budget Estimation: Estimate the budget available per remaining day of the month.

🛠️ Built With

  • Python 3
  • datetime — Date and time calculations
  • calendar — Month and day calculations
  • CSV file handling — Expense storage

📁 Project Structure

expense-tracker/
├── expense.py
├── expense_tracker.py
├── expenses.csv
└── README.md

🚀 Getting Started

Prerequisites

  • Python 3 installed on your system
  • A terminal or code editor

Run the Project

  1. Clone the repository:

    git clone https://github.com/Namitha-04/expense-tracker
  2. Navigate to the project folder:

    cd expense-tracker
  3. Run the application:

    python expense_tracker.py

💻 How It Works

  1. Enter the expense name.
  2. Enter the expense amount.
  3. Choose an expense category.
  4. The application saves the expense to a CSV file.
  5. View the spending breakdown, total expenses, remaining budget, and estimated daily budget.

📚 Concepts Learned

  • Python functions and modules
  • Classes and objects
  • Lists, loops, and dictionaries
  • User input and validation
  • File reading and writing
  • CSV data storage
  • String formatting and f-strings
  • Date and calendar calculations

🔮 Future Improvements

  • Allow users to set a custom monthly budget.
  • Add options to edit and delete expenses.
  • Generate monthly spending reports and charts.
  • Improve input validation and error handling.
  • Integrate a database such as SQLite.
  • Build a graphical or web-based interface.

🎯 Project Goal

This project was built to practice Python programming fundamentals and develop a practical application for tracking personal expenses.


Made with 🐍 Python

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages