student management system
student management system
S.No. TOPIC P
A
G
E
N
O
1 Certificate 2
2 Acknowledg 3
ement
3 Hardware’s and 4
Software’s required
4 Introduction 6
5 Python 1
source code 3
6 MySQL Database 2
9
7 Outputs 3
3
8 References 3
9
INTRODUCTION
The real meaning of educational administration has undergone a
radical transformation in recent years, with an increasing reliance
on technology to streamline student management processes. The
provided Python script embodies a Student Management System
that leverages the capabilities of MySQL as the backend database.
This system caters to the diverse needs of administrators and users,
offering functionalities ranging from student details search to
updates, views, additions, and deletions.
## Evolution of Student Management Systems
Traditionally, student management involved intricate
manual processes, making it susceptible to errors, delays,
and inefficiencies. The emergence of digital solutions has
ushered in an era of efficiency and accuracy, allowing
educational institutions to manage student data
seamlessly. Our project aligns with this evolution, providing
an interactive and dynamic Student Management System
that caters to the specific requirements of administrators
and users alike.
## Objectives of the Project
1. Administrative Empowerment
The primary objective of the Student Management
System is to empower administrators with tools that
facilitate efficient student data management. The
system encompasses key administrative
functionalities, including:
### Student Search
The `search_student()` function allows administrators
to search for student details based on the student’s
name. This ensures quick access to comprehensive
information, such as admission number, name,
gender, class, section, phone number, email ID, and
stream.
### Update Student Details
The `update_details()` function provides
administrators with a versatile interface to update
various student details, such as name, gender, class,
section, phone number, email ID, and stream. The
system’s flexibility ensures adaptability to changing
student information.
### View Student Details
The `view_Marks()` function facilitates the display of
student details, with a particular focus on showcasing
student marks. This functionality caters to the
academic aspect of student management, allowing
administrators to assess and communicate student
performance.
###Add Student
The `add_student()` function streamlines the process
of adding new students to the system, ensuring that
vital details are captured efficiently. This contributes
to the completeness and accuracy of the student
database.
2. User-Friendly Interface
The project recognizes the importance of user
experience for both administrators and end-users.
Two distinct panels, namely the Admin Panel and the
User Panel, cater to the unique needs of these user
groups.
#### Admin Panel
The `admin()` function serves as the gateway to the
Admin Panel, offering a menu-driven interface for
administrators to access and utilize the various
functionalities provided by the system.
D=con.connect(host=”localhost”,user=”root”,passwor
d=”admin”,database=”STUDENT_MANAGEMENT_SYST
EM”)
C=d.cursor()
c.execute(“select*from STUDENT_DETAILS where
NAME like ‘%{}%’”.format(k))
a=c.fetchall()
if len(a)>=1:
for i in a:
print(“Addmission
no:”,i[0]) print(“Name
is:”,i[1])
print(“Sex:”,i[2])
print(“Class=”,i[3])
print(“Sec:”,i[4])
print(“Phone number
is=”,i[5])
print(“Email_id:”,i[6])
print(“Stream is:”,i[7])
print(“-----------------------------------------------“)
else:
print(“Student Details Not Found”)
d.commit()
Def update_details():
D=con.connect(host=”localhost”,user=”root”,passwor
d=”admin”,database=”STUDENT_MANAGEMENT_SYST
EM”)
C=d.cursor()
If opt==1:
Print(“-----------------------------------------------“)
Print(“You are inside updating name.”)
Q=input(“Enter ADDMISSION_NUMBER whose
data you want to update: “)
L=input(“Enter your updated name: “)
c.execute(“update STUDENT_DETAILS set
NAME=’{}’ where
ADDMISSION_NUMBER={}”.format(l,q))
d.commit()
elif opt==2:
print(“-----------------------------------------------“)
print(“You are inside updating Gender.”)
p=input(“Enter name whose data you want to
update: “)
l=input(“Enter your updated Gender: “)
c.execute(“update STUDENT_DETAILS set
SEX=’{}’ where name=’{}’”.format(l,p))
d.commit()
elif opt==3:
print(“-----------------------------------------------“)
print(“You are inside updating class.”)
m=input(“Enter name whose data you want to
update: “)
n=input(“Enter your updated class: “)
c.execute(“update STUDENT_DETAILS set
CLASS={} where name=’{}’”.format(n,m))
d.commit()
elif opt==4:
print(“-----------------------------------------------“)
print(“You are inside updating section.”)
y=input(“Enter name whose data you want to
update: “)
e=input(“Enter your updated section: “)
c.execute(“update STUDENT_DETAILS set SEC=’{}’
where name=’{}’”.format(e,y))
d.commit()
elif opt==5:
print(“-----------------------------------------------“)
print(“You are inside updating phonenumber.”)
h=input(“Enter name whose data you want to
update: “)
r=input(“Enter your updated phonenumber: “)
c.execute(“update STUDENT_DETAILS set
PHONE_NUMBER={} where name=’{}’”.format(r,h))
d.commit()
elif opt==6:
print(“-----------------------------------------------“)
print(“You are inside updating email_id.”)
j=input(“Enter name whose data you want to
update: “)
k=input(“Enter your updated email_id : “)
c.execute(“update STUDENT_DETAILS set
EMAIL_ID=’{}’ where name=’{}’”.format(k,j))
d.commit()
elif opt==7:
print(“-----------------------------------------------“)
print(“You are inside updating stream.”)
f=input(“Enter name whose data you want to
update: “)
z=input(“Enter your updated stream : “)
c.execute(“update STUDENT_DETAILS set
STREAM=’{}’ where NAME=’{}’”.format(z,f))
d.commit()
else:
update_details()
Def view_Marks():
Print(“******************* VIEW STUDENT
DETAILS******************”)
K=input(“Enter name to view student details : “)
D=con.connect(host=”localhost”,user=”root”,passwor
d=”admin”,database=”student_management_system”
)
C=d.cursor()
c.execute(“select*from STUDENT_DETAILS where
NAME like ‘%{}%’”.format(k))
s=c.fetchall()
for i in s:
print(“MARKS:”,i[8])
print(“------------------------------------------------“)
d.commit()
Def add_student():
Print(“.................. ADD STUDENT
DETAILS......................”)
D=con.connect(host=”localhost”,user=”root”,passwor
d=”admin”,database=”STUDENT_MANAGEMENT_SYST
EM”)
C=d.cursor()
Sq=”insert into STUDENT_DETAILS
values({},’{}’,’{}’,{},’{}’,{},’{}’,’{}’,{})”.format(a,n,r,i,p,t,u,
w,m)
c.execute(sq)
d.commit()
print(“student data added successfully”)
#To delete items from student details table
Def delete_student():
Print(“******************** DELETE STUDENT
DETAILS*******************”)
K=input(“Enter name to DELETE student details : “)
D=con.connect(host=”localhost”,user=”root”,passwor
d=”admin”,database=”STUDENT_MANAGEMENT_SYST
EM”)
C=d.cursor()
c.execute(“delete from STUDENT_DETAILS where
name=’{}’”.format(k))
print(“.........Data deleted successfully..........”)
d.commit()
def admin():
while True:
print(“***************WELCOME TO STUDENT
MANAGEMENT *****************”)
print(“----------------------------------------------------------
-- -“)
D=con.connect(host=”localhost”,user=”root”,passwor
d=”admin”,database=”STUDENT_MANAGEMENT_SYST
EM”)
C=d.cursor()
c.execute(“select*from STUDENT_DETAILS where
NAME like ‘%{}%’”.format(k))
a=c.fetchall()
if len(a)>=1:
for i in a:
print(“Addmission
no:”,i[0]) print(“Name
is:”,i[1])
print(“Sex:”,i[2])
print(“Class=”,i[3])
print(“Sec:”,i[4])
print(“Phone number
is=”,i[5])
print(“Email_id:”,i[6])
print(“Stream is:”,i[7])
print(“-----------------------------------------------“)
else:
print(“Student Details Not Found”)
d.commit()
#To display the marks of students from
student details table .
Def view_Marks():
Print(“******************* VIEW STUDENT
DETAILS******************”)
K=input(“Enter name to view student details : “)
D=con.connect(host=”localhost”,user=”root”,passwor
d=”admin”,database=”student_management_system”
)
C=d.cursor()
c.execute(“select*from STUDENT_DETAILS where
NAME like ‘%{}%’”.format(k))
s=c.fetchall()
for i in s:
print(“MARKS:”,i[8])
print(“------------------------------------------------“)
d.commit()
while True:
print(“**************WELCOME TO STUDENT
MANAGEMENT*****************”)
print(“1.admin”)
print(“2.user”)
print(“3.exit”)
ch=int(input(“login through: “))
if ch==1:
admin()
elif ch==2:
user()
elif ch==3:
break
else:
print(“invalid input”)
MySQL DATABASES
STUDENT MANAGEMENT SYSTEM DATABASE AND
STUDENT DETAILS TABLE:-
##Gender:
##Class:
##Section:
##Stream: