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
-
Clone the Repository:
git clone https://github.com/under-script/ExpenseTracker.git
-
Navigate to the Project Directory:
cd ExpenseTracker
-
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.
- Fork the repository.
- Create a new branch for your feature or fix.
- Commit your changes.
- Push to the branch.
- 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file expense_tracker_cli-0.1.0.1.tar.gz
.
File metadata
- Download URL: expense_tracker_cli-0.1.0.1.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a96b229386c82d9ebf8506cb28693385769f967f563013104f2a4c82bae33ab7 |
|
MD5 | b5c2eb6c79c00812215602bc36674ed0 |
|
BLAKE2b-256 | fa0f601a9c89780f4be43023db274f03ec711ff00b53feb1a0167bedf5500e08 |
File details
Details for the file expense_tracker_cli-0.1.0.1-py3-none-any.whl
.
File metadata
- Download URL: expense_tracker_cli-0.1.0.1-py3-none-any.whl
- Upload date:
- Size: 3.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ba401f5faf4ee127d67e9e8c78ecfa4141ea10235dd580f649f90d9e57b2daa7 |
|
MD5 | df0611d81ecfe184c07a488841e2b094 |
|
BLAKE2b-256 | b0e4ae69a37f9a96fe65d4bf6d90a6a5916a20669707efffbec57d9cbe392928 |