0% found this document useful (0 votes)
13 views34 pages

CS INVESTIGATORY PROJECT LIBRARY MANAGEMENT SYSTEM

The document outlines a project on a Library Management System developed by students of KV Bhilwara for the academic session 2024-25. It includes details on the project's purpose, features, hardware and software requirements, coding, and functionalities such as user management, book issuing, and returning. The project aims to create a user-friendly digital library interface that automates library operations and enhances data management.

Uploaded by

krendex2010
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)
13 views34 pages

CS INVESTIGATORY PROJECT LIBRARY MANAGEMENT SYSTEM

The document outlines a project on a Library Management System developed by students of KV Bhilwara for the academic session 2024-25. It includes details on the project's purpose, features, hardware and software requirements, coding, and functionalities such as user management, book issuing, and returning. The project aims to create a user-friendly digital library interface that automates library operations and enhances data management.

Uploaded by

krendex2010
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/ 34

COMPUTER SCIENCE

PROJECT FILE
ON
LIBRARY MANAGEMENT
SYSTEM
KV

BHILWARA
PROJECT PREPARED BY:
Name :ASHUTOSH MEENA ,
PRIYANSHU VYAS,ABHAY
CHHIPA
Roll
Number :12104,12121 ,12103
CLASS: XII-A
Session: 2024-25

TABLE OF CONTENTS

Acknowledgement

Certificate

Hardware and Software Required

What isLibrary management system


 System

Flow Chart / Pseudo Code

Header files and their purpose

Coding

Output

Limitations

Requirements

Bibliography

Acknowledgement
I thank my Computer Science teacher
Praveen Kumar Murdiya (PGT COMP) for
guidance and support. I also thank my I/C Principal
sir DEEPAK JUNEJA . I would also like to thank
my parents for encouraging me during the course of
this project. Finally I would like to thank CBSE for
giving me this opportunity to undertake this project.

Certificate
This is to certify that ……………………
………….………… of class twelve, KV Bhilwara
has successfully completed his project in computer
practical for the AISSCE as prescribed by CBSE in
the year 2024-2025.
Date :

Registration No. :

Roll No. :

Signature of Internal Signature of External


Examiner Examiner

__________________ __________________

HARDWARE AND SOFTWARE


REQUIRED

HARDWARE

1. PC
2. MOBILE PHONE
SOFTWARE

• PYTHON (latest version)


• MYSQL
• PYTHON CONNECTOR

INTRODUCTION

The project LIBRARY


MANAGEMENT SYSTEM
(DIGITAL LIBRARY) includes
enrolment of users, adding of
books into the library system.
The software has the facility
to search for news, Wikipedia
articles. It includes an
authentication facility for
admin and user to login into
the admin panel and user
panel resp. of the system.
User can see the books
available, details of books
issued by the user in the
digital library. The Library
Management System can be
login using a user ID and
password. It is accessible
either by an admin or user.
Only the admin can add,
delete and update the data of
users and books into the
database. The data can be
retrieved easily. The interface
is very user-friendly. The data
are well protected for
personal use and makes the
data processing very fast. The
purpose of the project
entitled as “DIGITAL LIBRARY”
is to computerize the Front
Library Management to
develop software which is
user friendly, simple, fast,
and costeffective.It also has a
notes facility where the user
can add notes at any point of
the program into the
database.
LIBRARY

A library is a collection of books,


and possibly other materials and
media, that is accessible for use by
its members and members of allied
institutions. Libraries provide
physical or digital materials, and
may be a physical location, a
virtual space, or both. A library's
collection normally includes printed
materials which may be borrowed,
and usually also includes a
reference section of publications
which may only be utilized inside
the premises. Libraries can vary
widely in size and may be
organised and maintained by a
public body such as a government,
an institution (such as a school or
museum), a corporation, or a
private individual. In addition to
providing materials, libraries also
provide the services of librarians
who are trained experts in finding,
selecting, circulating and
organising informationwhile
interpreting information needs and
navigating and analysing large
amounts of information with a
variety of resources.
WHAT IS
LIBRARY
MANAGEMENT
SYSTEM
A Library Management System (LMS) is a software application designed to manage the
operations of a library efficiently. It automates various library tasks such as cataloging books,
tracking borrowed or returned items, managing user accounts, and ensuring the smooth
functioning of library processes. LMS is used in schools, colleges, public libraries, and
private organizations to maintain and organize their collections.

Key Features of a Library Management


System:
1. Catalog Management
 Enables the addition, editing, and deletion of books or other library resources.
 Organizes resources based on categories such as author, genre, publication year, etc.

2. User Management

 Maintains user records such as students, staff, or members.


 Assigns unique user IDs for easy tracking.

3. Issuing and Returning

 Tracks issued books and return dates.


 Allows automatic calculation of late fines or penalties.

4. Search Functionality

 Lets users search for books by title, author, subject, or ISBN.


 Provides real-time availability status of books.

5. Inventory Management

 Tracks the total stock of library resources.


 Identifies lost or damaged books.

6. Reports and Analytics

 Generates reports on library usage, issued/returned books, overdue books, and


inventory.
 Helps in decision-making and budgeting.

7. Fines and Notifications

 Automatically calculates overdue fines.


 Sends notifications via email or SMS for due dates, reminders, or updates.

8. Multi-platform Access

 Offers web or mobile access for users to browse catalogs, renew items, or reserve
books.

9. Security and Authentication

 Ensures only authorized users can access the system.


 Tracks activity logs to maintain data security.

Benefits of a Library Management System


1. Saves Time
o Quickly finds books or materials you need without searching manually.
o Makes borrowing and returning books faster and easier.
2. Easy to Use
o Search for books by title, author, or subject online or in the library.
o Check if the book is available or reserved by someone else.

3. Helps You Stay Organized


o Keeps track of borrowed books and due dates.
o Sends reminders so you don’t forget to return books on time.

4. No More Late Fees (if you're careful!)


o Notifications remind you when to return or renew books, avoiding fines.

5. Access Anytime
o Online systems allow you to browse the library catalog even from home.

6. Better Library Management


o Makes sure books are in the right place and easy to find.
o Keeps damaged or lost books under control.

7. Environmentally Friendly
o No need for paper records—it’s all digital!

8. Supports Modern Technology


o Uses barcodes or even QR codes to make borrowing and returning super
quick.

Platforms to Manage LMS


1. Web-Based Platforms

 Accessible through a browser on any device.


 Provides a centralized system to manage the library remotely.
 Examples: Koha, OPALS.

2. Mobile Applications

 Apps available for Android and iOS make it easy to access library resources on the
go.
 Users can search, reserve, or renew books directly from their smartphones.

3. Desktop Software

 Standalone applications installed on library computers.


 Often used in schools and small libraries for offline management.
 Examples: Libsys, Bibliovation.

4. Cloud-Based Systems

 Hosted on the cloud, allowing real-time access from multiple devices.


 Data is stored securely with automatic backups.
 Examples: Alma, WorldShare Management Services.

5. Integrated School/College Management Systems

 Some institutions integrate LMS with their broader management systems, like ERP
software.
 Examples: TCS iON, Fedena.

6. Open-Source Platforms

 Free to use and highly customizable.


 Libraries can tailor the system to their specific needs.
 Examples: Evergreen, Koha.

PYTHO
N

MySQL
PYTHON
INTERFACE
WITH
MySQL

Flow Chart
START

CONNECT TO DATABASE

CREATE TABLE

PERFORM OPERATIONS
ADD BOOK
ISSUE BOOK
RETURN BOOK
DELETE BOOK

CLOSE CONNECTION

END
PSUEDO CODE
 Start

 Begin the program execution.

 Connect to Database

 Establish a connection to the MySQL database using the


provided credentials (host, user, password, database).

 Create Table

 Execute a SQL query to create a table named BOOKS,


ISSUE ,RETURN if it does not already exist.

 Perform Operations

 User chooses the operation to perform:


1. ADD Book:
 Execute a SQL INSERT query to add a new book.
2. ISSUE Book:
 Execute a SQLINSERT query to ISSUE book.
3. RETURN Book:
 Execute a SQL UPDATE query to return a book .
4. Delete Book:
 Execute a SQL DELETE query to remove a book.

 Close Connection

 Close the cursor and the database connection.

 End

 End the program execution


HEADER FILES USED
AND THEIR PURPOSE

1. Import mysql.connector
It is used to connect MySQL databases
from within Python so that we can write
Python scripts
FUNCTIONS:

1.connect():
This function establishes connection
between Python and MySQL
2.cursor():
It is a special control structure that
facilitates the row-by-row processing
of records in the result set.
The Syntax is:
<cursor object>=<connection
object>.cursor()
3.execute():
This function is used to execute the
sql query and retrieve records using
python.
The syntax is:
<cursor object>.execute(<sql query
string>)

4.def():
A function is a block of code which
only runs when it is called.
5.fetchall():
This function will return all the rows
from the result set in the form of a
tuple containing the records.
6.fetchone():
This Function will return one row
from the result set in the form of a
tuple containing the records.
7.commit():
This function provides changes in the
database physically.
DETAILED DESCRIPTION
Our Project has 3 MySQL tables. These are: -
* Books
* Issue
* Return
1. The table Books contain the following columns:
a) bname
b) author
c) bcode
d) total
e) subject
2. The table Issue contain the following columns:
a) name
b) regno
c) bcode
d) issue_date
3. The table Return contain the following columns:
a) name
b) regno
c) bcode
d) return_date
SOURCE CODE
For MySQL:
create database library_app;
use library_app;

create table books


(
bname varchar(50),
author varchar(50),
bcode varchar(50),
total int(50),
subject varchar(50)
);

create table issue


(
name varchar(50),
regno varchar(50),
bcode int(50),
issue_date varchar(50)
);

create table return


(
name varchar(50),
regno varchar(50),
bcode int(50),
return_date varchar(50)
);
For Python:
import mysql.connector as a
con=a.connect(host='localhost', user='root',
passwd='9586', database='library_app')

def addbook():
bn=input("Enter Book Name: ")
ba=input("Enter Author's Name: ")
c=int(input("Enter Book Code: "))
t=int(input("Total Books: "))
s=input("Enter Subject: ")

data=(bn,ba,c,t,s)
sql='insert into books values(%s, %s, %s, %s,
%s);'

c=con.cursor()
c.execute(sql,data)
con.commit()
print("Added Successfully..........")
wait = input('Press enter to continue.....')
main()
def issueb():
n=input("Enter Student Name: ")
r=int(input("Enter Reg No.: "))
co=int(input("Enter Book 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("Book issued successfully to: ",n)
wait = input('Press enter to continue.....')
bookup(co,-1)
main()

def returnb():
n=input("Enter Student Name: ")
r=int(input("Enter Reg No.: "))
co=int(input("Enter Book Code: "))
d=input("Enter Date: ")
a="insert into return values(%s, %s, %s, %s);"
data=(n,r,co,d)
c=con.cursor()
c.execute(a, data)
con.commit()
print("Book returned by: ",n)
wait = input("Press enter to continue.....")
bookup(co,1)
main()

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()
wait = input('Press enter to continue.....')
main()

def dbook():
ac=int(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 successfully")
wait = input("Press enter to continue.....")
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("Author: ", i[1])
print("Book code: ", i[2])
print("Total:", i[3])
print("Subject:", i[4])
print('\n\n')
wait = input('Press enter to continue.....')
main()

def report_issued_books():
a = "select * from issue;"
c = con.cursor()
c.execute(a)
myresult = c.fetchall()
for i in myresult:
print(myresult)
wait = input('Press enter to continue.....')
main()

def report_return_books():
a = "select * from return;"
c = con.cursor()
c.execute(a)
myresult = c.fetchall()
for i in myresult:
print(myresult)
wait = input('Press enter to continue.....')
main()
def main():
print(“““

LIBRARY MANAGEMENT APPLICATION

1. ADD BOOK
2. ISSUE OF BOOK
3. RETURN OF BOOK
4. DELETE BOOK
5. DISPLAY BOOKS
6. REPORT MENU
7. EXIT PROGRAM
”””)

choice=input("Enter Task No:......")


print('**********')

if(choice=='1'):
addbook()
elif(choice=='2'):
issueb()
elif(choice=='3'):
returnb()
elif(choice=='4'):
dbook()
elif(choice=='5'):
dispbook()
elif(choice=='6'):
print(“““REPORT MENU
1. ISSUED BOOKS
2. RETURNED BOOKS
3. GO BACK TO MAIN MENU”””)
choice=input("Enter Task No:......")
print('------------------')

if choice=='1':
report_issued_books()
elif choice=='2':
report_return_books()
elif choice=='3':
main()

main()

else:
print("Please try again........")
main()

elif(choice=='7'):
print('Thank you and have a great day
ahead.................')

else:
print("Please try again.........")
main()

main()
 TABLES:

1.) SELECT * FROM BOOKS;


2.) SELECT * FROM ISSUE;
3.)SELECT * FROM RETURN;
REQUIREMENTS
 HARDWARE REQUIRED

 Printer, to print the required


documents of the project
 Compact Drive
 Processor : Pentium III
 Ram : 256 MB
 Harddisk : 500 Gb.

 SOFTWARE REQUIRED

 Operating system : Windows


 Python for execution of program and
 Ms word, for presentation of output.
BIBLIOGRAPHY

www.google.com

www.wikepedia.com

• Class XI & XII NCERT Book

You might also like