Skip to main content

A simple CLI tool for managing personal expenses.

Project description

Expense Tracker CLI

Expense Tracker CLI is a simple command-line interface (CLI) application for managing personal expenses. This tool allows you to add, delete, and view expenses right from your terminal, making it easy to keep track of your spending.

Features

  • Add Expenses: Quickly add new expenses with a description and amount.
  • Delete Expenses: Remove expenses by their ID.
  • List Expenses: Display all recorded expenses in a formatted table.
  • Monthly Summary: View a summary of total expenses for a specific month or all months.

Installation

  1. Clone the Repository:

    git clone https://github.com/under-script/ExpenseTracker.git
    
  2. Navigate to the Project Directory:

    cd ExpenseTracker
    
  3. Install Dependencies: Ensure you have Python installed. Then, install the required Python packages:

    pip install -r requirements.txt
    

Usage

To start using the Expense Tracker CLI, simply run the Python script with the desired commands.

Adding an Expense

Add a new expense by providing a description and an amount:

python main.py add "Groceries" 50

Listing Expenses

List all recorded expenses:

python main.py list

Deleting an Expense

Delete an expense by specifying its ID:

python main.py delete <expense_id>

Viewing a Monthly Summary

View a summary of expenses for a specific month:

python main.py summary 5  # For May

View a summary of expenses for all months:

python main.py summary

Expense File

All expenses are stored in an expenses.json file in the project directory. The structure of this file is managed automatically by the CLI.

Expense Structure

Each expense has the following attributes:

  • id: Unique identifier for the expense.
  • date: The timestamp when the expense was added.
  • description: A brief description of the expense.
  • amount: The amount spent on the expense.

Idea Source

The idea for the Expense Tracker CLI project was inspired by roadmap.sh's Expense Tracker project. Visit the link to see more details and learn about similar project ideas.

Contributing

Contributions are welcome! If you find any issues or have suggestions for improvements, feel free to open an issue or submit a pull request.

  1. Fork the repository.
  2. Create a new branch for your feature or fix.
  3. Commit your changes.
  4. Push to the branch.
  5. Open a pull request.

License

This project is licensed under the MIT License. See the LICENSE file for details.

Contact

For any questions or feedback, please contact [abdulmajidyunusov18@gmail.com].


Happy expense tracking!

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

expense_tracker_cli-0.1.0.1.tar.gz (3.8 kB view hashes)

Uploaded Source

Built Distribution

expense_tracker_cli-0.1.0.1-py3-none-any.whl (3.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page