Skip to content

iamhenriquemachado/finance-tracker-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

Expense Tracker

This project is a simple expense tracker that allows users to log their expenses, view categorized spending, and generate basic statistics. The program uses Python and relies on pandas, matplotlib, and csv for data processing and visualization.

Features

  • Add Expenses: Users can input transaction details, including date, amount, category, and type (expense or income).
  • View Expenses: Displays a summary of total spending per category.
  • Show Statistics: Provides an overview of total expenses and average spending per category.
  • Data Visualization: Generates a bar chart representing expenses by category.

Requirements

Ensure you have the following dependencies installed:

pip install pandas matplotlib numpy

Usage

Run the script and select an option from the menu:

python expenses.py

Menu Options

  1. Add an Expense
  2. View Expenses
  3. Show Statistics
  4. Exit

Adding an Expense

When selecting option 1, the program prompts the user for:

  • Date of the transaction (format: DD-MM-YYYY)
  • Amount (must be greater than zero)
  • Category (user-defined)
  • Type (0 for expense, 1 for income)

The data is stored in expenses.csv.

Viewing Expenses

Selecting option 2 displays a summary of total spending per category.

Showing Statistics

Option 3 provides:

  • Total amount spent on expenses
  • Average spending per category

Expense Visualization

At the end of the script, the program generates a bar chart displaying total expenses per category using matplotlib.

File Structure

  • expenses.csv – Stores the expense data in CSV format.
  • expenses.py – Main script handling user input, data processing, and visualization.

Future Improvements

  • Implementing a graphical user interface (GUI)
  • Adding support for monthly and yearly breakdowns
  • Exporting reports in different formats (PDF, Excel)

License

This project is open-source and available for modification and distribution.

Contributions

Contributions and improvements are welcome. Feel free to submit a pull request or open an issue.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages