A simple, lightweight command-line task manager written in Python. Perfect for managing your to-do list directly from the terminal!
- ✅ Add tasks with priority levels (low, medium, high)
- 📋 List all tasks with status indicators
- ✔️ Mark tasks as complete
- 🗑️ Delete tasks
- 💾 Persistent storage using JSON
- 🎨 Color-coded priority indicators
- 📅 Automatic timestamp tracking
- Python 3.6 or higher
- No external dependencies required!
- Clone this repository:
git clone https://github.com/AgentFoundryTest/agentfoundry-repo-clone-test.git
cd agentfoundry-repo-clone-test- Make the script executable (optional):
chmod +x task_manager.pyAdd a new task with optional priority (defaults to "medium"):
python task_manager.py add "Buy groceries"
python task_manager.py add "Finish project report" high
python task_manager.py add "Call mom" lowPriority levels: low, medium, high
Display all tasks (both active and completed):
python task_manager.py listOutput example:
📋 Active Tasks:
------------------------------------------------------------
🔴 #1: Finish project report
Priority: high | Created: 2025-10-27
🟡 #2: Buy groceries
Priority: medium | Created: 2025-10-27
✅ Completed Tasks:
------------------------------------------------------------
#3: Call mom
Completed: 2025-10-27
Mark a task as complete by its ID:
python task_manager.py complete 1Remove a task permanently by its ID:
python task_manager.py delete 2Display usage information:
python task_manager.py helpTasks are stored in a tasks.json file in the same directory as the script. This file is created automatically when you add your first task.
Here's a typical workflow:
# Add some tasks
python task_manager.py add "Write documentation" high
python task_manager.py add "Fix bug #42" medium
python task_manager.py add "Update dependencies" low
# View all tasks
python task_manager.py list
# Complete a task
python task_manager.py complete 2
# Delete a task
python task_manager.py delete 3
# View updated list
python task_manager.py list.
├── task_manager.py # Main application
├── tasks.json # Data storage (created automatically)
├── test_task_manager.py # Unit tests
└── README.md # This file
Run the test suite:
python test_task_manager.pyThis project is licensed under the GPLv3 License - see the LICENSE file for details.
Feel free to submit issues and enhancement requests!
Created as a demonstration project for AgentFoundry.