CERTIFICATE
This is to certify that KASHISH
YADAV of class 12 A with roll
number 13 has successfully
completed the project entitled on
LIBRARY MANAGEMENT SYSTEM
in the subject COMPUTER SCIENCE
(083) under the supervision of Ms.
ANJU (PGT COMPUTER SCIENCE).
EXAMINER’S SIGNATURE
TEACHER’S SIGNATURE
------------------ --------------------
Page | 1
ACKNOWLEDGEMENT
I would like to express my special thanks of
gratitude to my computer science teacher
Ms. ANJU who gave me the golden
opportunity to do this wonderful project on
topic LIBRARY MANAGEMENT SYSTEM ,
which also helped me in doing lots of
research and I came to know about so many
new things. I am thankful to her.
I would also like to express my special
thanks of gratitude to chairman sir Dr. A.F.
PINTO , managing director ma’am Dr.
GRACE PINTO and our school’s CEO Mr.
RYAN PINTO and also principal ma’am Ms.
SAJEETA IYER for providing us with all the
facility that was required. last but not the
least I would like to thank my classmates
and family members who helped me a lot in
completion of project.
Page | 2
CLASS:12 A
INDEX
S.No. Particular PgNo.
1. Introduction 5
2. Objective 6
3. Proposed 7
system
4. Data flow 8
diagram
5. Scope 9
6. Advantages 10
7. Limitations 11
and future
enhancement
s
8. Resources 12
used
9. Functions & 13
modules
used
10. Use of 14
Page | 3
technology
11. Source Code 16
12. Output 20
13. Conclusion 24
14. Bibliography 25
15. Thank you 26
LIBRARY MANAGEMENT
SYSTEM
INTRODUCTION
The library management system is basically
a database project done with the help of
python language. This project is very useful
for librarians to keep a count on what
project they have and how much they sold
or issued books. This project is multi field
project, so that it can be modified for
various purposes.
Page | 4
Every organisation whether big or small has
challenges to overcome and managing the
information of books, students, librarian,
address, and member. This system will
ultimately allow you to better manage
resources.
OBJECTIVES OF THE PROJECT
The objective of this project is to let
students apply the programming knowledge
into a real-world situation /problem and
expose the students how programming skills
helps in developing a good software.
Write program utilizing modern software
tools
Apply object-oriented programming
principles effectively when developing
small to medium sized projects.
Write effectively procedural code to
solve problems.
Page | 5
Students will demonstrate a breadth of
knowledge in computer science, as
exemplified in the areas of systems,
theory, and software development
Student will demonstrate ability to
conduct research or applied computer
science project, requiring writing and
presentation skills which exemplify
scholarly style in computer science
PROPOSED SYSTEM
Software has been an ascent in
atomization various organizations.
Many software products working are
now in markets, which have helped in
making the organisations work easier
and efficient. Data management
initially had to maintain a lot of
Page | 6
ledgers and a lot of paper work has to
be done but now software product on
this organisation has made their work
faster and easier. Now only this
system has to be loaded on the
computer and work can be done.
This prevents a lot of time and money.
The work becomes fully automated
and any information regarding the
organisation can be obtained by
clicking the buttons. Moreover, now its
and age of computers and automating
such an organization gives the better
look.
DATA FLOW DIAGRAM
CONTEXT DIAGRAM
Page | 7
FILL
DATA
SEND
RETRIEVED DATA
DATA
USER Library
RETRIEVED
management DATA
LIBRARY
SCOPE DATABASE
A library management system is software
that is designed to manage all the
functions of a library.
It helps librarian to maintain the databases
of new books and the books that are
Page | 8
borrowed by the members along with their
dure dates. This system completely
automates all your library’s activities
It may help collecting perfect
management in details. In a short time,
the collection will be obvious simple and
sensible. It will help in current all works
related to library management system. It
will also reduce the cost of collecting the
management and collection procedure will
go on smoothly.
ADVANTAGES
Centralized data
User friendly environment, fast
service
Protection by username/password
Page | 9
Data can be easily retrieved
Tracing a book is easy
Error handling is done at many points
Capable to work at any Gui base
operating system
Information about issue/return of the
books is properly maintained
LIMITATION
Single user can work at a time
Works at single system
Some training required to implement a
new system
Page | 10
Any failure can stop the work of
organizations
No tool for backup
Future
enhancements
Changes made by any user can be
monitor
Multiple users can login at same time
More controlling by administrator
Use of more modules to shot down the
code
Many more new form and module would
be added in the next version of this
program
Page | 11
RESOURCES USED
HARDWARE RESOURCE
Processor: intel core i3/i5/i7
RAM: 512 MB
HDD: 20 GB
KB: Normal GB
MOUSE: 3 button normal mouse
SOFTWARE RESOURCE
O/S: Microsoft windows
FOR CODING: Visual studio
FOR DATABASE: SQL server
FOR DOCUMENTATION: MS word
Page | 12
FUNCTIONS AND
MODULES USED
Modules:
connector (): By using this module, we
can establish a connection between
Python and MySQL.
FUNCTIONS:
connect (): This function establishes a
connection between Python and MySQL
cursor (): This function helps to execute
the records row-by-row.
execute (): This function executes a
SQL query and get back the records
using python.
USE OF TECHNOLOGY
Page | 13
PYTHON
Python is an object-oriented high-level
programming language. It was developed by
Guido van Rossum in 1991. It is used for
software development, system scripting,
rapid application development etc. Python
is a user-friendly programming language
and is easy to learn in comparison to other
programming languages like c++, java etc.
Python has many standard libraries which
contains reusable codes such that the
programmer can use it and does not need
to write the code from scratch.
MYSQL
Page | 14
My SQL is a relational database
management system and is based on SQL
(Structured Query language). It was
created by a Swedish company called
MySQL AB on 23 May 1995. Its purpose is
to enable the user to store, maintain,
retrieve structured data efficiently. MySQL
provides various types of commands
which have their own use such as:
1. Data Definition Language (DDL)
2. Data Manipulation Language (DML)
3. Transaction Control Language (TCL)
4. Data Query Language (DQL)
5. Data Control Language (DCL)
Source code
Page | 15
import mysql. connector as a
con=a. connect (host="localhost”, user="root”, password="priyansh123”,
database="library1")
def bookup (co, u):
a="select TOTAL from books where BCODE=%s"
data=(co,)
c=con. Cursor ()
c.execute (a, data)
myresult=c.fetchone()
t=myresult [0] + u
sql="update books set TOTAL=%s where BCODE =%s"
d= (t, co)
c.execute (sql, d)
con. Commit ()
print ("""
LIBRARY MANAGER
1. Add book
2. Issue book
3. Submit book
4. Delete book
5. Display books""")
choice=input ("Enter task no:")
print (">---------------------------------------------------------------<")
if(choice=="1"):
bn=input ("enter book name:")
c=input ("enter book code:")
t=input ("total books:")
s=input ("enter subject:")
Page | 16
data= (bn, c, t,s)
sql="insert into books values (%s, %s, %s, %s)"
c=con. Cursor ()
c.execute(sql,data)
con. commit ()
print (">-----------------------------------------------------------<")
print ("data entered successfully")
elif(choice=="2"):
n=input ("enter name:")
r=input ("enter regno:")
co=input ("enter code")
d=input ("enter date:")
a="insert into issue values (%s, %s, %s, %s)"
data= (n, r, co, d)
c=con. Cursor ()
c.execute (a, data)
con. commit ()
print (">----------------------------------------------------------<")
print ("books issued to:”, n)
bookup (co, -1)
elif(choice=="3"):
n=input ("enter name:")
r=input ("enter regno:")
co=input ("enter book code:")
d=input ("enter date:")
a="insert into submit values (%s, %s, %s, %s)"
data= (n, r, co, d)
Page | 17
c=con. Cursor ()
c.execute (a, data)
con. commit ()
print (">--------------------------------------------------------<")
print ("book submitted from:",n)
bookup(co,1)
elif(choice=="4"):
ac=input ("enter book code:")
a="delete from books where bcode=%s"
data=(ac,)
c=con. cursor ()
c.execute (a, data)
con. commit ()
print ("Book deleted")
elif(choice=="5"):
a="select*from books"
c=con. cursor ()
c.execute(a)
myresult=c. fetchall ()
for i in myresult:
print ("bookname:” i [0])
print ("book code:” i [1])
print ("total:” i [2])
print ("subject:” i [3])
print (">------------------------------------------------------<")
else:
print ("wrong choice......")
Page | 18
OUTPUT IN PYTHON
1.WHILE ADDING A BOOK
Page | 19
2.WHILE ISSUING A BOOK
3.WHILE SUBMITTING A BOOK
Page | 20
4.WHILE DELETING A BOOK
5.WHILE DISPLAYING A BOOK
OUTPUT IN SQL:
Page | 21
1.DATABASES AND TABLES
2.RECORD OF TOTAL BOOKS IN LIBRARY
3.RECORD
OF ALL BOOK ISSUED TO THE READERS
Page | 22
4. RECORD OF SUBMITTED BOOKS ISSUED TO THE READERS
CONCLUSION
Page | 23
The basic concept of the program is to make the
data of library computerized and organized.
Only a single user can work with this program at
a time. The user has been given the option to
add, issue, delete, submit, and view the records
in the library database.
This program sole purpose is to save time and
make the process of data entry more
systematic.This prevents a lot of time and
money. The work becomes fully automated and
any information regarding the organisation can
be obtained by clicking the buttons. Moreover,
now its and age of computers and automating
such an organization gives the better look.
BIBLIOGRAPHY
Page | 24
Many references were used for the
development of the program:
1. Computer Science Textbook Class 12
Preeti Arora
2.https://www.google.com
3. https://www.python.org.in
4. https://www.mysql.org
5. https://www.cbse.nic.in
Page | 25
THANK YOU
Page | 26