HesamPourabbasian/Cli_todo_app
A vibrant, command-line To-Do List app built with Python and colorama, offering intuitive task management with colorful output.
To-Do List App
A simple yet vibrant command-line To-Do List application built with Python and enhanced with colorful output using the colorama library. This app allows users to manage tasks efficiently by adding, listing, deleting, and quitting with an intuitive menu interface.
Features
Add Tasks: Easily append new tasks to your list.
List Tasks: View all tasks with their indices for easy reference.
Delete Tasks: Remove tasks by selecting their index.
Colorful Interface: Enjoy a visually appealing experience with color-coded messages:
Magenta for welcome and farewell messages.
Blue for menu headers and separators.
Cyan for input prompts.
Green for success messages.
Red for error messages.
Yellow for task listings.
Error Handling: Robust input validation to prevent crashes from invalid entries.
User-Friendly: Clear instructions and a simple menu-driven interface.
Prerequisites
Python 3.x: Ensure Python is installed on your system.
Colorama: Install the colorama library to enable colored output.
Install colorama using pip:
pip install colorama
Installation
Clone or Download:
Clone this repository or download the todo.py file.
Install Dependencies:
Run the command above to install colorama.
Run the App:
Navigate to the project directory and execute:
python todo.py
Usage
Launch the app to see the welcome message.
Choose from the menu options:
1: Add a new task.
2: Delete an existing task (select by index).
3: List all tasks.
4: Quit the app.
Follow the prompts to manage your tasks.
Enjoy the colorful feedback for each action!
Example
Welcome to the To-Do List app :)
Please select one of the options:
---------------------------------------------------------------
.1 Add a new task
.2 Delete a task
.3 List all tasks
.4 Quit
Enter your choice> 1
Please enter your task: Buy groceries
Buy groceries is added to the tasks list