0% found this document useful (0 votes)
58 views51 pages

A Project On Library Management System By: U L Vardhini (121222539017)

This document provides an overview of a student project on a Library Management System. It includes an introduction, background information on the existing system versus the proposed system, the aims and objectives of the project, and an analysis of the technical and economic feasibility of developing the new system. The project aims to computerize the library management processes and provide additional features not available in the current manual system, such as user login accounts, online book reservations, and report generation capabilities. Developing the new system is determined to be both technically and economically feasible given the available resources.

Uploaded by

Paran Jai
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
58 views51 pages

A Project On Library Management System By: U L Vardhini (121222539017)

This document provides an overview of a student project on a Library Management System. It includes an introduction, background information on the existing system versus the proposed system, the aims and objectives of the project, and an analysis of the technical and economic feasibility of developing the new system. The project aims to computerize the library management processes and provide additional features not available in the current manual system, such as user login accounts, online book reservations, and report generation capabilities. Developing the new system is determined to be both technically and economically feasible given the available resources.

Uploaded by

Paran Jai
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 51

Library Management System 1

A PROJECT ON
LIBRARY MANAGEMENT SYSTEM
By:
U L Vardhini(121222539017)

TIshaShree(121222539016)

Under The Guidance of:


Mrs Swapna

DEPARTMENT OF COMPUTER SCIENCE


ST.PIOUS X DEGREE & PG COLLEGE FOR WOMEN
Re-accredited ‘A+’ Grade by NAAC,
Snehapuri, Opp. HMT Bus stop, Nacharam Road, Hyderabad.
Library Management System 2

CERTIFICATE
We hereby certify that the work which is being presented in the BSc Project
Report entitled “Library Management System ” , in partial fulfillment of the
requirements for the award of B.Sc (MSDS) and submitted to the Department of
Computer science Osmania University is an authentic record of our own work
carried out during a period from June 2023 to November 2023 under the
supervision of faculty Mrs. Swapna, Department of Computer Science.

The matter presented in this Project Report has not been submitted by us for the
award of any other degree elsewhere.

Signature of Students

This is to certify that the above statement made by the students is correct to the
best of my knowledge

Signature of Supervisor:
Date:
Head,Computer Science Department:
St.Pious x Degree & PG College Women,Snehapuri Colony,Hyd

ACKNOWLEDGEMENT

We express our sincere gratitude to Mrs. Swapna , Dept. of Computer


Science,St. Pious X Degree & PG College for women, Snehapuri
colony, and HMT Nagar, Hyderabad for her stimulating guidance,
continuous encouragement,and supervision throughout the course of
present work.

We also wish to extend our thanks to Mrs. Swapna and other colleagues
for
attending our seminars and for their insightful comments and
constructive suggestions to improve the quality of this project work.
Library Management System 3

We are extremely thankful to Mrs. Swapna and Principal Rev.Sr.


Velangini Kumari, St. Pious X Degree & PG College for women,
Snehapuri colony, HMT Nagar, Hyderabad, for providing us with
infrastructural facilities to work in, without which this work would not
have been possible.

Vardhini
T.Isha Shree
Library Management System 4

TABLE OF CONTENTS

ABSTRACT
INTRODUCTION

SYSTEM ANALYSIS
 EXISTING VS PROPOSED
 MODULE DESCRIPTION

FEASIBILITY STUDY
 TECHNICAL FEASIBILITY
 ECONOMIC FEASIBILITY
 OPERATIONAL FEASIBILITY

SYSTEM REQUIREMENT SPECIFICATION


 SOFTWARE REQUIREMENTS
 HARDWARE REQUIREMENTS

SYSTEM DESIGN
 INPUT DESIGN
 OUTPUT DESIGN

SYSTEM DEVELOPMENT
 CODING 32
 PYTHON — AN OVERVIEW

SYSTEM TESTING AND IMPLEMENTATION


 SYSTEM TESTING
 IMPLEMENTATION

CONCLUSION
APPENDIX
BIBLIOGRAPHY
Library Management System 5

ABSTRACT

Library management system is a project which aims in developing a


computerized system to maintain all the daily work of library . This
project has many features which are generally not available in normal
library management systems like facility of user login and a facility of
teachers login.It also has a facility of admin login through which the
admin can monitor the whole system .It also has facility of an online
notice board where teachers can student can put up information about
workshops or seminars being held in our colleges or nearby college and
librarian after proper verification from the concerned institution
organizing the seminar can add it to the notice board . It has also a facility
where student after logging in their accounts can see list of
books issued and its issue date and return date and also the students can
request the librarian to add new books by filling the book request form.
The librarian after logging into his account ie admin account can generate
various reports such as student report, issue report, teacher report and
book report.

Overall this project of ours is being developed to help the students as well
as staff of the library to maintain the library in the best way possible and
also reduce the human efforts.
Library Management System 6

INTRODUCTION
Library Management System 7

INTRODUCTION

This chapter gives an overview about the aim,objectives


background and operation environment of the system.

PROJECT AIMS AND OBJECTIVES


The project aims and objectives that wil be achieved after
completion of this project are discussed in this subchapter.
The aims and objectives are as follows:

 Managing and tracking daily work

 Issuing and returning books

 Due calculations

 Book indexing

 Cataloging

 Book reservations

 Keeping track of items in circulation

 Running reports
Library Management System 8

EXISTING VS PROPOSED SYSTEM

 Existing system does not have any facility of teachers login or student
login where as proposed system will have a facility of student login as
well as teacher’s login

 Existing system does not have a facility of online reservation of books


whereas proposed system has a facility of online reservation of books

 Existing system does not have any facility of online notice boards where
description of workshops happening in our college as well as nearby colleges
is being provided.

 Existing system does not has any option of lectures notes uploaded by
teachers whereas proposed system will have this facility

 Existing system does not have any facility to generate student reports as
well book issue reports whereas proposed system provides librarian with a
tool to generate reports

 Existing system does not has any facility for book request and
suggestions where as in proposed system after logging in to their
accounts student can request books as well as provide suggestions to
improve library.
Library Management System 9

BACKGROUND OF THE PROJECT

Library Management System is an application refer to other library


system and it is suitable to use by small and medium size library. It is
use by librarian and library admin to manage the library using a
computerized system. The system was developed and designed to help
librarian record every book transaction so that the problem such as file
missing or record missing will not happened again. Barcode reader is
equipped in this system so that users can enjoy the convenience without
need to key in the barcode of the book themselves. It is convenience and
time saving as the users can direct scan in the book’s barcode id when
the members borrows few books in one time. Book and member
maintenance module also included in Library Management System.
Users can register or edit the member or book in the system. With this
computerized maintenance, library will not lost the book record or
member record which always happen when no computerized system
bring used.
In addition, report module is also included in Library Management
System. If user’s position is Admin, the user is able to view different
kind of report. First type of report are rental and return report, user can
check the rental, return transaction which happen on particular day.
Besides that, user can check the Top10 books which borrow by the
member in a day, month or year based on category. Moreover, activity
log report also provided by system so that admin can check what
process has been carried out such as register new book, edit member
information as well as login, logout information. When user lost the
book, user can use Lost Book Module to register the lost book and
receive the fine which is double price of that book.
All these modules are able to help librarian to manage the library more
convenience and efficiency compare to those library without
computerized system.
Library Management System 10
Library Management System 11

OPERATION ENVIRONMENT
PROCESSOR INTEL CORE PROCESSOR OR
BETTER PERFORMANCE
OPERATING SYSTEM WINDOWS 11

MEMORY 1 GB

HARD DISK SPACE MINIMUM 3 GB FOR DATABASE


USAGE FOR FUTURE
DATABASE SQL
Library Management System 12

SYSTEM ANALYSIS
Library Management System 13

CHAPTER 2

SYSTEM ANALYSIS

In this chapter, we will discuss and analyze the developing process of


the Library Management System including software requirement
specification (SRS) and comparison between existing and proposed
systems. The functional and nonfunctional requirements are included ni
the SRS part ot provide complete description and overview of system
requirements before the developing process is carried out.

FEASIBILITY STUDY

A feasibility study for a library management system (LMS)


project assesses the project's feasibility in terms of technical,
operational, economic, social, legal, and environmental aspects. The
study aims to determine the project's merits and viability.

Technical Feasibility:

We can strongly says that it is technically feasible, since there will not
be much difficulty in getting required resources for the development and
maintaining the system as well. All the resources needed for the
development of the software as well as the maintenance of the
same is available in the organization here we are utilizing the resources
which are available already.
Library Management System 14

Economical Feasibility

Development of this application is highly economically feasible .The


organization needed not spend much one for the development of the
system already available. The only thing is to be done is making an
environment for the development with an effective supervision. If
we are doing so , we can attain the maximum usability of the
corresponding resources. Even after the development,the organization
will not be in a condition to invest more in the organization .Therefore,
the system is economically feasible.

Operational feasibility

We have made this ot fulfill al the requirements of this project. This


software could do al operational activities easily. We tried our best ot
make ti best user friendly for the users.

Capacity to provide support new system

With the consideration of the library management system we prefer this


proposed system. which is going to be developed as partially automated
ot reduce the time & cost of library management as well as maintenance
of the system.The most important things that we have marked with the
user's attitude are their mentality.The authorities are very quick learners
and interested in being introduced with a new system.
Library Management System 15

SOFTWARE REQUIREMENT
SPECIFICATION
Library Management System 16

SOFTWARE REQUIREMENT SPECIFICATION

This section describes the software and hardware requirements of


the system

SOFTWARE REQUIREMENTS

 Operatingsystem-Windows10 isused as the operating system as


it is stable and supports more features and is more user friendly
 Database sqlite3 is useds a database is it is easy to maintain and
retrieve records by the simple queries which are in English
language which are easy to understand and easy to write.
 Development tools and Programmnig language-Python si used
to write the whole code for styling work and server side
scripting.

HARDWARE REQUIREMENTS

 Intel core i5th 2nd generationis used as a processor because it is


faster than othee processors and provides reliability and stability
and we can run our pc for longtime . By this processor we can
keep on developing our project without any worries.
 Ram 1 gb is used as iy will provide fast reading and writing
capabilities and will in support in processing.
Library Management System 17

GENERAL DESCRIPTION

PRODUCT DESCRIPTION:
Library Management System is a computerized system which
helps the user(librarian) to manage the library daily activity in
electronic format. It reduces the risk of paper work such as file
loss, file damage and time consuming.
It can help users tot manage the transaction or record more
effectively and time- saving.

PROBLEM STATEMENT:

The problem occurred before having computerized system


includes:
 File lost
When a computerized system is not implemented a file is always
lost because of the human environment.Some times due ot some
human eror there may be aloss of records.

 File damaged
When a computerized system is not there file is always lost due to
some accident like spiling of water by some member on file
accidentaly.Besides some natural disaster like floods or fires may
also damage the file.

 Difficult to search record


When there is no computerized system there si always a difficulty in
searching for records if the records are large in number.

 Space consuming
After the number of records becomes large the space for physical storage of
file and records also increases if no computerized system si implemented.

 Cost consuming
Library Management System 18

As there is no computerized system to add each record paper will be needed


which will increase the cost for the management of the library.

SYSTEM OBJECTIVES

The objectives of a library management system include:

Automation: Automating the system to make searching,


borrowing, and returning books faster

Efficiency: Increasing the operational efficiency of the library


Cost reduction: Reducing manual work and paperwork, which can
lead to lower costs

Error reduction: Eliminating repetitive tasks and chances of


errors

Save time:
Librariansiableotsearchrecordsbyusingafewclicksofmouse and few
search keywords thus saving his valuable time

Other objectives include:


Tracking: Assigning each book a unique identifying number
Integration testing: Testing the module interfaces to ensure no
errors occur.
Library Management System 19

SYSTEM REQUIREMENTS
NON FUNCTIONAL REQUIREMENTS

Efficiency requirements
With the library management system, librarian should be able to process
faster when they process book transaction. In addition, with the use of bar
code scanner, librarian can avoid to type the book id one by one, bar code
scanner enable librarian to scan the book id instantly.

Reliability requirements
The system must perform accurately towards member request. For example,
when the librarian saves the edited profile detail, after they review their
detail, the details must be change according to the latest details that they
have updated. When member return the book after the expired date, the fine
should be calculate accurately. Besides that, in the registration form, it will
have validity check to check the input to prevent wrong data type.

Usability requirements
This system must be designed with user-friendly and easy to use by the
staff so that the user can perform their job nicely. It must have a clear
instruction to guide user through the system. Besides that, the description of
error message should be clear.

 Organizational Requirements
Implementation requirements
In implementing the system, it uses the vb.net as the main programming
language and tools. Besides that, the SQL language will be use to maintain
the information in the database. On the other hand, SQL Server 2008 needs
to be installed.

Delivery requirements
The whole system is estimate to be done around 6 months time and the
documentation will be done in 2 months. The full system will be delivers in
a softcopy method while the documentation will be delivers in hardcopy
and softcopy.
Library Management System 20

 External Requirements
Legislative requirements
The information that use must be acknowledge by the authorized people so
that it has no violating the law. This information is copyrighted and
protected by the law. Besides that, when visitors wants to become the
member of the library, he or she must agree with the rules stated in the
system.

Security requirements
This system must be highly secure in the login part. It is because the report
can only view by admin level. Staff can perform most of the process except
viewing report module and log file module.

FUNCTIONAL REQUIREMENTS

USER LOGIN
Description of feature
This feature used by the user to login into system. They are required to
enter user id and password before they are allowed to enter the system .The
user id and password will be verifiedand if invalid id is there user is
allowed to not enter the system.

Functional requirements
-user id is provided when they register
-The system must only allow user with valid id and password to enter the
system
-The system performs authorization process which decides what user level
can acess to.
-The user must be able to logout after they finished using system.
Library Management System 21

REGISTER NEW USER


Description of feature
This feature can be performed by all users to register new user to create
account.

Functional requirements
-System must be able to verify information
-System must be able to delete information if information is wrong

Admin Features
 Admin Dashboard
 Admin can add/update/ delete category
 Admin can add/update/ delete authorAdmin can add/update/ delete
books
 Admin can issue a new book to student and also update the details when
student return book
 Admin can search student by using their student ID
 Admin can also view student details
 Admin can change own password

Students-
• Student can register yourself and after registration they will get studentid
• After login student can view own dashboard.
• Student can update own profile.
• Student can view issued book and book return date-time.
• Student can also change own password
.• Student can also recover own password
Library Management System 22

SOFTWARE AND HARDWARE REQUIREMENTS

This section describes the software and hardware requirements


of the system

SOFTWARE REQUIREMENTS
 Operating system- Windows 7 is used as the operating
system as it is stable andsupports more features and is more
user friendly
 Database MYSQL-MYSQL is used as database as it easy to
maintain and retrieve records by simple queries which are in
English language which are easy to understand and easy to
write.
 Development tools and Programming language- HTML is
used to write the wholecode and develop webpages with css,
java script for styling work and php for sever side scripting.

HARDWARE REQUIREMENTS
 Intel core i5 2nd generation is used as a processor because it
is fast than other processors an provide reliable and stable
and we can run our pc for longtime. By using this processor
we can keep on developing our project without any
worries.
 Ram 1 gb is used as it will provide fast reading and writing
capabilities and will in turn support processing
Library Management System 23

SYSTEM DESIGN
Library Management System 24

CHAPTER 3
SYSTEM DESIGN

System Design is the core concept behind the design of any distributed systems.
System Design is defined as a process of creating an architecture for different
components, interfaces, and modules of the system and providing corresponding data
helpful in implementing such elements in systems.
The purpose of the System Design process is to provide sufficient detailed data
and information about the system and its system elements to enable the
implementation consistent with architectural entities as defined in models and
views of the system architecture.

The whole project is designed by the programming language PYTHON.

Python:
Python programming language is one of the dynamic and object-oriented
programming languages used for the development of diverse kinds of software
developed by the python software foundation. Its significant advantage is that
it facilitates integration with other programming languages and software
development tools. In addition, it has in-built standard libraries that are
extensive. This means it facilitates the development of a better source code.

The programming paradigm of python language embarks on the readability of


the source code enhanced through clear syntax. A part from object-oriented
programming methodologies such as functional programming and imperative
programming. Another important feature of the python language that makes it
suitable as a software development tool is that it has dynamic type system and
its memory management strategy is automatic. In addition, it can support the
implementation of scripting applications. It is important to note that the
development model of python language is community based, implying that its
reference implementation is free and based as the open source platform.

Python’s features include-

 Easy-to-learn- Python has few keywords, simple structure and a clearly


defined syntax. This allows the student to pick up the language easily.

 Easy-to-read -Python code is more clearly defined and visible to the eyes.

 Easy-to-maintain-Python source code is easy-to-maintain.


Library Management System 25

 A broad standard library- Python’s bulk of library is very portable and


cross-platform compatible on UNIX, Windows and Macintosh.

 Interactive mode-Python has support for an interactive mode which allows


interactive testing and debugging of snippets of code.

 Portable-Python can run on a wide variety of hardware platforms and has


the same interface on all platforms.

 Extensible-You can add low-level modules to the python interpreter. These


modules enable programmers to add or customize their tools to be more
efficient.

 GUI Programming-Python supports GUI applications that can be created


and ported to many system calls, libraries and windows systems, such as
Windows MFC, Macintosh and X Windows system of Unix.

BACKEND:
The backend is designed using MYSQL which is used to design the design.

MYSQL:

 MySQL is an open-source relational database management system


(RDBMS) that uses Structured Query Language (SQL) to manage and
manipulate data. It is commonly used to store and retrieve data for various
applications, such as websites, blogs, and content management systems.

 MySQL is a server-side RDBMS that can be installed and used on a local or


remote machine. It supports multiple concurrent users, providing secure
and reliable data management. The core component of MySQL is its SQL
dialect, which allows users to interact with the database and execute
commands.

 MySQL uses a relational model to store data, consisting of tables with rows
and columns. This approach allows for efficient organization and retrieval
of data.

 MySQL supports a wide range of SQL commands, including SELECT,


INSERT, UPDATE, DELETE, and JOIN. These commands enable users to
manipulate and retrieve data from the database.
Library Management System 26

Input Design

Input design is the process of converting user-designated inputs to


a computerized format. The input data are collected and organized
into groups of similar data. Input design includes determining the
record media, method of input speed of capture and entry into the
system. Input design consists of developing specifications and
procedures for data preparations, those necessary steps to put
transaction data into usable form for processing, data entry and
activity of entering the data for processing. Error entered by the
user can be controlled by the input design. The goal of designing
the input data is to make data entry easy, logical and free from
errors as possible.

Output Design

Output design generally refers to the results and information that


are generated by the system. The results are in interactive mode. A
common user can also use the application. Each request has an
acknowledgment for ensuring the correct operation is performed.
Computer output is the most direct source of information to the
user .In output design the emphasis is given to the design of the
hard copy and a soft copy of the information needed by the user.
Efficient, intelligent and friendly screens improve the relationship
between clients and systems for design making.
Library Management System 27
Library Management System 28

ER DIAGRAM
Library Management System 29

DATA FLOWDIAGRAM
Library Management System 30

DATA FLOWDIAGRAM
Library Management System 31

TABLE DESIGN

VARIOUS TABLE TO MAINTAIN INFORMATION

 BOOK TABLE FOR KEEPING TRACK OF BOOKS

 STUDENT TABLE FOR STUDENT INFORMATION


Library Management System 32

 TEACHER TABLE TO KEEP TEACHER INFORMATION

 ISSUE TABLE TO KEEP TRACK OF BOOKS ISSUED


Library Management System 33

SYSTEM DEVELOPMENT AND


IMPLEMENTATION
Library Management System 34

CHAPTER 4
SYSTEM DEVELOPMENT AND IMPLEMENTATION

Module Description
The Library Management System is divided into the following modules:

Admin Module
The following module contains various facilities like student
validation,teacher registration, book addition, Book issues, Add and Delete
Books.

Frontend Code

from tkinter import *


from tkinter import messagebox
import mysql.connector as connector

def dashboard():
window1 = Tk()
window1.geometry('600x500')
window1.title('LMS')
window1.config(background="#597882")

l4 = Label(window1, text="DASHBOARD", font=('Segoe UI Black',


24))
l4.pack()

def click():
window1.withdraw()
window2 = Tk()
window2.geometry('600x500')
window2.title('LMS')
window2.config(background="#597882")
Library Management System 35

l5 = Label(window2, text="ADD BOOKS",


font=('Comic Sans MS', 24),
bg="black", fg='white',
relief=RAISED, bd=9)
l5.pack()

l6 = Label(window2, text='Book ID:', font=('Comic Sans MS', 18),


fg='black', bg="#597882")
l7 = Label(window2, text='Title:', font=('Comic Sans MS', 18),
fg='black', bg="#597882")
l8 = Label(window2, text='Author:', font=('Comic Sans MS', 18),
fg='black', bg="#597882")
l9 = Label(window2, text='Status:', font=('Comic Sans MS', 18),
fg='black', bg="#597882")

l6.place(x=100, y=100)
e3 = Entry(window2, font=('Comic Sans MS', 15))
e3.place(x=230, y=100)
l7.place(x=101, y=150)
e4 = Entry(window2, font=('Comic Sans MS', 15))
e4.place(x=230, y=150)
l8.place(x=102, y=200)
e5 = Entry(window2, font=('Comic Sans MS', 15))
e5.place(x=230, y=200)
l9.place(x=103, y=250)
e6 = Entry(window2, font=('Comic Sans MS', 15))
e6.place(x=230, y=250)

def OnClick_submit():
details = "Book ID: " + e3.get() + ", Title: " + e4.get() + ", Author: "
+ e5.get() + ", Status: " + e6.get()
messagebox.showinfo('Details', details)
window2.destroy()
dashboard()
b11 = Button(window2, text="Submit", font=('Comic Sans MS', 15),
fg='black', bg='white', command=OnClick_submit)
Library Management System 36

b11.place(x=275, y=300)

def OnClick_Back():
window2.destroy()
window1.deiconify()

b12 = Button(window2, text="Back", font=('Comic Sans MS', 15),


fg='black', bg='white', command=OnClick_Back)
b12.place(x=44, y=420)

window2.mainloop()

Backend Code

mydb = connector.connect(
host='localhost',
user='root',
password='vardhini#30@k',
port='3306',
database='lms'
)
mycursor = mydb.cursor()
mycursor.execute('SELECT * FROM `add books`;')
books = mycursor.fetchall()
for book in books:
print('BookID:', book[0])
print('Title:', book[1])
print('Author:', book[2])
print('Status:', book[3])
print('--------------------------')
mycursor.close()
mydb.close()

b3 = Button(window1, text='Add Books', font=('Comic Sans MS', 20),


fg='black', bg='white', command=click)
b3.place(x=60, y=70)
Library Management System 37

b4 = Button(window1, text='Delete Books', font=('Comic Sans MS', 20),


fg='black', bg='white')
b4.place(x=60, y=160)
b5 = Button(window1, text='Edit Books', font=('Comic Sans MS', 20),
fg='black', bg='white')
b5.place(x=60, y=250)
b6 = Button(window1, text='Add Students', font=('Comic Sans MS', 20),
fg='black', bg='white')
b6.place(x=60, y=350)
b7 = Button(window1, text='Issue Books', font=('Comic Sans MS', 20),
fg='black', bg='white')
b7.place(x=350, y=70)
b8 = Button(window1, text='Return Books', font=('Comic Sans MS', 20),
fg='black', bg='white')
b8.place(x=350, y=160)
b9 = Button(window1, text='Show Books', font=('Comic Sans MS', 20),
fg='black', bg='white')
b9.place(x=350, y=250)
b10 = Button(window1, text='Logout', font=('Comic Sans MS', 20),
fg='black', bg='white')
b10.place(x=350, y=340)

window1.mainloop()

window = Tk()
window.geometry("600x500")
window.title("LMS")
window.config(background="#597882")

l1 = Label(window, text="LIBRARY MANAGEMENT SYSTEM",


font=("Bahnschrift SemiBold", 22))
l1.pack()

l2 = Label(window, text='Username:', font=('Comic Sans MS', 18),


fg='black', bg="#597882")
l2.place(x=80, y=80)
Library Management System 38

l3 = Label(window, text="Password:", font=('Comic Sans MS', 18),


fg='black', bg="#597882")
l3.place(x=81, y=160)

StudentID = StringVar()
Password = StringVar()

e1 = Entry(window, textvariable=StudentID, font=('Comic Sans MS', 15))


e1.place(x=210, y=82)

e2 = Entry(window, textvariable=Password, font=('Comic Sans MS', 15),


show='*')
e2.place(x=210, y=165)

def login():
try:
mydb = connector.connect(
host='localhost',
user='root',
password='vardhini#30@k',
port='3306',
database='lms'
)

mycursor = mydb.cursor()
query = "SELECT * FROM login WHERE username=%s AND
password=%s"
values = (StudentID.get(), Password.get())
mycursor.execute(query, values)

user = mycursor.fetchone()

if user:
messagebox.showinfo(title='Login Status', message='You have
logged in')
Library Management System 39

window.withdraw() # Hide the login window


dashboard() # Open the dashboard window
else:
messagebox.showerror(title='Login Error',
message='Username/Password is incorrect')

except connector.Error as e:
messagebox.showerror(title='Database Error', message=f'Error
connecting to the database: {e}')

b1 = Button(window, text="Login", font=('Comic Sans MS', 15),


fg='black', bg='white', command=login)
b2 = Button(window, text="Cancel", font=('Comic Sans MS', 15),
fg='black', bg='white')
b2.place(x=400, y=250)
b1.place(x=300, y=250)

window.mainloop()
Library Management System 40

CHAPTER 5
SYSTEM TESTING

The aim of the system testing process was to determine all defects in our project .The
program
was subjected to a set of test inputs and various observations were made and based on
these
observations it will be decided whether the program behaves as expected or not.
Our Project went through two levels of testing
1.Unit testing
2.integration testing

UNIT TESTING
Unit testing is undertaken when a module has been created and succesfully
reviewed.In order to
test a single module we need to provide a complete environment ie besides the module
we would require
 The procedures belonging to other modules that the module under test calls
 Non local data structures that module accesses.
 A procedure to call the functions of the module under test with appropriate
 parameters.

1.Test For the admin module

 Testing admin login form-This form is used for log in of administrator of


the system.In this we enter the username and password if both are correct
administration page will open other wise if any of data is wrong it will get
redirected back to the login page and again ask for username and password
 Student account addition- In this section the admin can verify student
details from student academinc info and then only add student details to
main library database it contains add and delete buttons if user click add
button data will be added to student database and if he clicks delete button
the student data will be deleted
 Book Addition- Admin can enter details of book and can add the details to
the main book table also he can view the books requests
Library Management System 41

2.Test for Student login module


 Test for Student login Form-This form is used for login of Student.In this
we enter the libraryid, username and password if all these are correct student
login page will open other wise if any of data is wrong it will get redirected
back to the login page and again ask for libraryid, username and password.
 Test for account creation- This form is used for new account creation when
student does not fill the form completely it asks again to fill the whole form
when he fill the form fully it gets redirected to page which show waiting for
conformation message as his data will be only added by administrator after
verification.

3.Test for teacher login module-


 Test for teacher login form-This form is used for logg in of teacher.In
this we enter the username and password if all these are correct teacher
login page will open other wise if any of a data is wrong it will get
redirected back to the login page and again ask for username and
password.

INTEGRATION TESTING

In this type of testing we test various integration of the project module by


providing the input.The primary objective is to test the module interfaces
in order to ensure that no errors areoccurring when one module invokes
the other module

Test Cases for Library Management System

 Login form
Library Management System 42

 Book Entry Form


Library Management System 43
Library Management System 44

 User Account Form


Library Management System 45

 Book Issue Form


Library Management System 46

 Book Return Form


Library Management System 47

CHAPTER 6
COUNCLUSION AND FUTURE SCOPE

This website provides a computerized version of library


management system which will benefit the students as
well as the staff of the library.It makes entire process
online where student can search books, staff can generate
reports and do book transactions. It also has a facility for
student login where student can login and can seestatus
of books issued as well request for book or give some
suggestions. It has a facility of teacher’s login where
teachers can add lectures notes and also give necessary
suggestion tolibrary and also add info about workshops
or events happening in our college or nearby collegein
the online notice board.
There is a future scope of this facility that many more
features such as online lectures video tutorials can be
added by teachers as well as online assignments
submission facility,a feature of group chat where
students can discuss various issues of engineering can be
added to this project thus making it more interactive
more user friendly and project which fulfills each
usersneed in the best way possible.
Library Management System 48

Appendix:
Library Management System 49

Appendix:
Library Management System 50

Appendix:
Library Management System 51

You might also like