TaskFlow is a simple command-line task manager built with Python. It helps users organize daily tasks, track their progress, and manage priorities.
https://roadmap.sh/projects/task-tracker
This project was created as part of my Python learning journey to practice core programming concepts and working with JSON files.
- Add tasks — Create tasks with a title and priority.
- View tasks — Display all tasks with their completion status.
- Remove tasks — Delete tasks by their number.
- Edit tasks — Update existing task titles.
- Toggle completion — Mark tasks as completed or pending.
- Filter tasks — View completed and pending tasks separately.
- Statistics — See total, completed, and pending task counts.
- Search — Find tasks by keywords.
- Sort alphabetically — Sort tasks by title.
- Sort by priority — Display High-priority tasks first.
- JSON storage — Automatically save tasks between sessions.
- Python 3
- JSON — Local data storage
- Python Standard Library — No external dependencies
git clone https://github.com/YOUR_USERNAME/TaskFlow.git
cd TaskFlowMake sure Python 3 is installed.
python main.pyOn some systems, use:
python3 main.pyReplace main.py with your actual Python filename if it is different.
When you launch TaskFlow, you will see:
=====TaskFlow=====
1. Add task
2. Show tasks
3. Remove task
4. Toggle task
5. Edit task
6. Show completed
7. Show pending
8. Show statistics
9. Search tasks
10. Sort tasks
11. Sort by priority
0. Exit
Choose option: 1
Enter new task: Learn Python
Enter priority (Low/Medium/High): high
Choose option: 2
1. [ ] Learn Python | High
2. [x] Finish homework | Medium
3. [ ] Read a book | Low
Choose option: 11
Learn Python | High
Finish homework | Medium
Read a book | Low
TaskFlow/
├── main.py
├── tasks.json
└── README.md
main.py— Main application logic.tasks.json— Stores tasks locally.README.md— Project documentation.
The tasks.json file is created when tasks are first saved.
TaskFlow stores tasks in JSON format:
[
{
"title": "Learn Python",
"completed": false,
"priority": "High"
},
{
"title": "Read a book",
"completed": true,
"priority": "Low"
}
]Supported priorities:
High— Important tasksMedium— Normal tasksLow— Less urgent tasks
Older tasks without a priority are treated as Medium.
During development, I practiced:
- Python functions and loops
- Conditional statements
- Lists and dictionaries
- File handling and JSON
- Exception handling
- Searching and filtering data
- Sorting with
sorted()andlambda - Organizing a command-line application
Future improvements:
- Task deadlines
- Task categories
- Better error handling
- Code refactoring
- Object-oriented programming (OOP)
- Automated tests with pytest
Created by sneaky91 .
⭐ If you find this project useful, consider giving it a star!