Skip to main content

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!

Metadata

Release files for expense-tracker-cli 0.1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for expense-tracker-cli 0.1.0.1
File Size Uploaded
expense_tracker_cli-0.1.0.1.tar.gz 3.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for expense-tracker-cli 0.1.0.1
File Interpreter ABI Platform
expense_tracker_cli-0.1.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 7.6 kB

Release files / expense_tracker_cli-0.1.0.1.tar.gz

Download URL expense_tracker_cli-0.1.0.1.tar.gz
Size 3.8 kB
Tags Source
SHA-256 checksum
How to use checksums
a96b229386c82d9ebf8506cb28693385769f967f563013104f2a4c82bae33ab7
BLAKE2b-256 checksum
How to use checksums
fa0f601a9c89780f4be43023db274f03ec711ff00b53feb1a0167bedf5500e08
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.11.6

Release files / expense_tracker_cli-0.1.0.1-py3-none-any.whl

Download URL expense_tracker_cli-0.1.0.1-py3-none-any.whl
Size 3.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ba401f5faf4ee127d67e9e8c78ecfa4141ea10235dd580f649f90d9e57b2daa7
BLAKE2b-256 checksum
How to use checksums
b0e4ae69a37f9a96fe65d4bf6d90a6a5916a20669707efffbec57d9cbe392928
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.11.6

Release history Release notifications | RSS feed

This release

0.1.0.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page