- created by: Sudip Ghimire
- URL: https://www.sudipghimire.com.np
- GitHub: https://github.com/ghimiresdp
[Go to Index](https://github.com/ghimiresdp/python-projects/)
Prerequisite
- Understanding of Basic data types as well as complex data types
- Basic understanding of functional and Object-oriented programming
- Understanding of
modules and packages
- Understanding of a
json
module.- Understanding of
Files and I/O
- Understanding of Exception handling.
Table of Contents
The To-Do List Application is a software tool designed to help users manage their tasks and stay organized. The application allows users to create, update, and track their to-do items, ensuring efficient task management and improved productivity.
The application should provide the following features for task management.
- add a task: ask user to input title, description and deadline
- list tasks: list all tasks by title, status, and deadline
- filter by
open
status - filter by
completed
status
- filter by
- view detail of the task
- complete the task
- view completed tasks
The task can be stored in a json file with different key-value pairs. The basic format to store to-do list is as follows:
[
{
"title": "Buy 5 drinks",
"description": "Buy 5 250 ml soda cans from Family Mart.",
"date": "2023-01-01",
"completed": true
},
{
"title": "Complete the assignment",
"description": "Complete Chemistry assignment and send email to the professor",
"date": "2023-01-05",
"completed": false
}
]
You can also add the interface to allow users to sort and filter tasks with
respect to title
, date
, and completed
status
The application should have a basic CLI that should prompt user to list, add,
update, and complete the task. you can emulate completed and incomplete item by
adding [ ]
and [x]
before the title of the task.
Welcome Screen:
TO DO LIST
-------------------------------------------------------
1. list tasks
2. add a new task
3. save and exit
4. exit without saving
-------------------------------------------------------
Enter a number:
List Screen:
TO DO LIST
-------------------------------------------------------
1. [x] Buy 5 drinks 2023-01-01
-------------------------------------------------------
2. [ ] Complete the assignment 2023-01-05
-------------------------------------------------------
Enter Number to view details [0 to go back]:
Detail Screen
-------------------------------------------------------
BUY 5 DRINKS
-------------------------------------------------------
DESCRIPTION : Buy 5 250 ml soda cans from Family Mart.
DEADLINE : 2023-01-01
STATUS : INCOMPLETE
-------------------------------------------------------
Options:
1. Complete the task
2. Go Back
Enter option:
- Python Notes: https://github.com/ghimiresdp/python-notes/
- Chapter 2, 3, 6, 7, 8, 9, 10