In this article, we’ll walk through the process of creating a task management application in Python. This tool will be incredibly useful for anyone who wants to effortlessly keep track of their tasks, whether it’s managing ongoing projects, monitoring course enrollments, or following YouTube playlists. Our software will securely manage all these details, ensuring that only you can access your information.
Tools and Technologies Used:
- This project is designed to be beginner-friendly.
- The software will be implemented using Procedural Oriented Programming (POP) principles.
- Basic knowledge of Python functions is required.
- The
datetimemodule in Python will be used.
Required Skills:
- Python programming
- Visual Studio Code or any other code editor
Step-by-Step Implementation:
Step 1: Create a folder named Task Manager and open it in your preferred code editor.
Step 2: Inside this folder, create a Python file named task_manager.py.
Step 3: Begin coding your application. Start by implementing the signup function, which will prompt the user for a username and password. Here’s a basic example:
def signup():
print("Please enter the username you want to use for your account.")
username = input("Enter username: ")
password = input("Enter a password: ")
Step 4: Next, create a user_information function. This function will take the data from the signup function and save it in a text file to store user details. The following code demonstrates how this can be done:
def user_information(username, password):
with open("user_data.txt", "a") as file:
file.write(f"Username: {username}, Password: {password}\n")
# pssd means password, ussnm is username
def user_information(ussnm, pssd):
name = input("enter your name please: ")
address = input("your address")
age = input("Your age please")
ussnm_ = ussnm+" task.txt"
f = open(ussnm_, 'a')
f.write(pssd)
f.write("\nName: ")
f.write(name)
f.write('\n')
f.write("Address :")
f.write(address)
f.write('\n')
f.write("Age :")
f.write(age)
f.write('\n')
f.close()
def signup():
print("Please enter the username by which you\
wanna access your account")
username = input("please enter here: ")
password = input("Enter a password: ")
user_information(username, password)
Step 5: After the user_information function has created the text file, the next step is to implement the login function. This function will prompt the user to enter their username and password. It will then verify if the entered password matches the one stored in the text file for the given username. The following code demonstrates how this process works:
def login():
print("Please enter your username ")
user_nm = input("Enter here: ")
# Password as entered while logging in
pssd_wr = (input("enterr the password"))+'\n'
try:
usernm = user_nm+" task.txt"
f_ = open(usernm, 'r')
# variable 'k' contains the password as saved
# in the file
k = f_.readlines(0)[0]
f_.close()
# Checking if the Password entered is same as
# the password saved while signing in
if pssd_wr == k:
print(
"1--to view your data \n2--To add task \n3--Update\
task status \n4--View task status")
a = input()
else:
print(" YOUR PASSWORD OR USERNAME IS WRONG , Plz enter Again")
login()
except Exception as e:
print(e)
login()
In next step, we will make sure that after the user signs in we can ask him/her to log in to their account. This can be done by calling the log-in function at the end of the sign-in function. Hence, the sign-in function will look like
def signup():
print("Please enter the username by which you wanna access your account")
username = input("please enter here: ")
password = input("Enter a password: ")
user_information(username, password)
print("Sir please proceed towards log in")
login()
def login():
print("Please enter your username ")
user_nm = input("Enter here: ")
# Password as entered while logging in
pssd_wr = (input("enterr the password"))+'\n'
try:
usernm = user_nm+" task.txt"
f_ = open(usernm, 'r')
# variable 'k' contains the password as saved
# in the file
k = f_.readlines(0)[0]
f_.close()
# Checking if the Password entered is same as
# the password saved while signing in
if pssd_wr == k:
print(
"1--to view your data \n2--To add task \n3--Update\
task status \n4--View task status")
a = input()
else:
print("YOUR PASSWORD OR USERNAME IS WRONG , Plz enter Again")
login()
except Exception as e:
print(e)
login()
To ensure that users can log in immediately after signing up, we will call the login function at the end of the sign-up process. Here’s how the updated sign-up function will look:
def signup():
print("Please enter the username by which you wanna access your account")
username = input("please enter here: ")
password = input("Enter a password: ")
user_information(username, password)
print(" please proceed towards log in")
login()
def login():
print("Please enter your username ")
user_nm = input("Enter here: ")
# Password as entered while logging in
pssd_wr = (input("enterr the password"))+'\n'
try:
usernm = user_nm+" task.txt"
f_ = open(usernm, 'r')
# variable 'k' contains the password as
# saved in the file
k = f_.readlines(0)[0]
f_.close()
# Checking if the Password entered is same
# as the password saved while signing in
if pssd_wr == k:
print(
"1--to view your data \n2--To add task \n3--Update\
task \n4--VIEW TASK STATUS")
a = input()
if a == '1':
view_data(usernm)
elif a == '2':
# add task
task_information(usernm)
elif a == '3':
task_update(user_nm)
elif a == '4':
task_update_viewer(user_nm)
else:
print("Wrong input ! ")
else:
print(" YOUR PASSWORD OR USERNAME IS WRONG")
login()
except Exception as e:
print(e)
login()
def view_data(username):
pass
def task_information(username):
pass
def task_update(username):
pass
def task_update_viewer(username):
pass
View Data
def view_data(username):
ff = open(username, 'r')
print(ff.read())
ff.close()
To implement the task information block, we need to understand basic text handling in Python. We’ll prompt the user to specify how many tasks they want to add. Based on their input, we’ll use a loop to repeatedly ask for each task and its target completion date.
def task_information(username):
print("Sir enter n.o of task you want to ADD")
j = int(input())
f1 = open(username, 'a')
for i in range(1, j+1):
task = input("enter the task")
target = input("enter the target")
pp = "TASK "+str(i)+' :'
qq = "TARGET "+str(i)+" :"
f1.write(pp)
f1.write(task)
f1.write('\n')
f1.write(qq)
f1.write(target)
f1.write('\n')
print("Do u want to stop press space bar otherwise enter")
s = input()
if s == ' ':
break
f1.close()
Full Code:
import datetime
# pssd means password, ussnm is username
def user_information(ussnm, pssd):
name = input("enter your name please: ")
address = input("your address")
age = input("Your age please")
ussnm_ = ussnm+" task.txt"
f = open(ussnm_, 'a')
f.write(pssd)
f.write("\nName: ")
f.write(name)
f.write('\n')
f.write("Address :")
f.write(address)
f.write('\n')
f.write("Age :")
f.write(age)
f.write('\n')
f.close()
def signup():
print("Please enter the username by which you wanna access your account")
username = input("please enter here: ")
password = input("Enter a password: ")
user_information(username, password)
print("Sir please proceed towards log in")
login()
def login():
print("Please enter your username ")
user_nm = input("Enter here: ")
# Password as entered while logging in
pssd_wr = (input("enterr the password"))+'\n'
try:
usernm = user_nm+" task.txt"
f_ = open(usernm, 'r')
# variable 'k' contains the password as saved
# in the file
k = f_.readlines(0)[0]
f_.close()
# Checking if the Password entered is same as
# the password saved while signing in
if pssd_wr == k:
print(
"1--to view your data \n2--To add task \n3--Update\
task \n4--VIEW TASK STATUS")
a = input()
if a == '1':
view_data(usernm)
elif a == '2':
# add task
task_information(usernm)
elif a == '3':
task_update(user_nm)
elif a == '4':
task_update_viewer(user_nm)
else:
print("Wrong input ! bhai dekh kr input dal")
else:
print("SIR YOUR PASSWORD OR USERNAME IS WRONG")
login()
except Exception as e:
print(e)
login()
def view_data(username):
ff = open(username, 'r')
print(ff.read())
ff.close()
def task_information(username):
print("Sir enter n.o of task you want to ADD")
j = int(input())
f1 = open(username, 'a')
for i in range(1, j+1):
task = input("enter the task")
target = input("enter the target")
pp = "TASK "+str(i)+' :'
qq = "TARGET "+str(i)+" :"
f1.write(pp)
f1.write(task)
f1.write('\n')
f1.write(qq)
f1.write(target)
f1.write('\n')
print("Do u want to stop press space bar otherwise enter")
s = input()
if s == ' ':
break
f1.close()
def task_update(username):
username = username+" TASK.txt"
print("Please enter the tasks which are completed ")
task_completed = input()
print("Enter task which are still not started by you")
task_not_started = input()
print("Enter task which you are doing")
task_ongoing = input()
fw = open(username, 'a')
DT = str(datetime.datetime.now())
fw.write(DT)
fw.write("\n")
fw.write("COMPLETED TASK \n")
fw.write(task_completed)
fw.write("\n")
fw.write("ONGOING TASK \n")
fw.write(task_ongoing)
fw.write("\n")
fw.write("NOT YET STARTED\n")
fw.write(task_not_started)
fw.write("\n")
def task_update_viewer(username):
ussnm = username+" TASK.txt"
o = open(ussnm, 'r')
print(o.read())
o.close()
if __name__ == '__main__':
print("WELCOME TO ANURAG`S TASK MANAGER")
print("sir are you new to this software")
a = int(input("Type 1 if new otherwise press 0 ::"))
if a == 1:
signup()
elif a == 0:
login()
else:
print("You have provided wrong input !")
Output:

Real-Life Applications of the Project
This task management application has several practical uses:
- For Students:
- Task and Homework Management: Students can utilize this application to track their assignments, homework, and project deadlines. By entering each task along with its due date, students can easily manage their workload and avoid missing important deadlines. The application helps in organizing tasks, setting priorities, and ensuring that all assignments are completed on time.
- For Learners:
- Learning Resource Management: Learners can use the application to keep track of their study materials and resources. Whether it’s online courses, textbooks, or YouTube tutorials, the application allows users to log what they need to study and monitor their progress. This helps in systematically managing learning resources, setting learning goals, and staying organized throughout their educational journey.
Overall, this application aids in efficient task management and resource organization, making it a valuable tool for both academic and personal growth.





Leave a Reply