Govind Vidyalaya, Tamulia
Govind Vidyalaya, Tamulia
Govind Vidyalaya, Tamulia
GOVIND VIDYALAYA
TAMULIA
CERTIFICATE OF APPRECIATION
This report has not been submitted to any other school or institution previously for
any evaluation.
Signature:- Signature:-
ACKNOWLEDGEME
NT
I would like to express my special thanks of
gratitude to my teacher Mr. Anshuman Thakur,
who gave me the golden opportunity to do this
wonderful project of Computer Science on
“LIBRARY MANAGEMNET SYSTEM BASED
ON PYTHON”, who also helped me in
completing my project. I came to know about so
many new things I am really thankful to them.
Secondly I would also like to thank my parents
and friends who helped me a lot in finalizing this
project within the limited time frame.
Pratik Anand
XII Science
INDEX
Serial
No. Contents
01. INTRODUCTION
02. OUTPUT
03. CODINGS
04. CONCLUSION
05. BIBLIOGRAPHY
INTRODUCTION
A library management system is software that is
designed to manage all the functions of a library. It
helps librarian to maintain the database of new
books and the books that are borrowed by members
along with their due dates.
A library management system is used to maintain
library records. It tracks the records of the number of
books in the library, how many books are issued, or
how many books have been returned or renewed or
late fine charges, etc.
OUTPUT
CODINGS
For creating database in MYSQL
Codings in Python
import mysql.connector as a
con=a.connect(host="localhost",user="root",passwd="Pratik@1234",database="library")
def addbook():
t=input("Total Books:")
s=input("Enter Subject:")
data=(bn,c,t,s)
c=con.cursor()
c.execute(sql,data)
con.commit()
print(">-----------------------------------------------<")
main()
def issueb():
n=input("Enter Name:")
d=input("Enter Date:")
data=(n,r,co,d)
c=con.cursor()
c.execute(a,data)
con.commit()
print(">----------------------------------------<")
bookup(co,-1)
def submitb():
n=input("Enter Name:")
r=input("Reg No:")
d=input("Enter Date:")
data=(n,r,co,d)
c=con.cursor()
c.execute(a,data)
con.commit()
print(">-----------------------------------<")
bookup(co,1)
def bookup(co,u):
data=(co,)
c=con.cursor()
c.execute(a,data)
myresult=c.fetchone()
t=myresult[0]+u
d=(t,co)
c.execute(sql,d)
con.commit()
main()
def dbook():
data=(ac,)
c=con.cursor()
c.execute(a,data)
con.commit()
main()
def dispbook():
a="select*from books"
c=con.cursor()
c.execute(a)
myresult=c.fetchall()
for i in myresult:
print("Book Name:",i[0])
print("Book Code:",i[1])
print("Total:",i[2])
print(">------------------------<")
main()
def main():
print("""
LIBRARY MANAGER
1.ADD BOOK
2.ISSUE BOOK
3.SUBMIT BOOK
4.DELETE BOOK
5.DISPLAY BOOKS
""")
print(">-----------------------------------------------------<")
if(choice=='1'):
addbook()
elif(choice=='2'):
issueb()
elif(choice=='3'):
submitb()
elif(choice=='4'):
dbook()
elif(choice=='5'):
dispbook()
else:
print("Wrong choice.........")
main()
def pswd():
ps=input("Enter Password:")
if ps=="ninja02":
main()
else:
print("Wrong Password")
pswd()
pswd()
Conclusion
Books:
1. Sumita Arora class 12th
2. Sumita Arora class 11th