0% found this document useful (0 votes)
446 views37 pages

Cs Project-1

This document describes a student project on a library management system. It includes a certificate certifying that the student completed the project, acknowledgements, and sections on the introduction, functions, importance, objectives, software used including Python and MySQL, connectivity between Python and MySQL, the system development life cycle, source code, and a main function with menu options. The project aims to automate library functions like adding, issuing, submitting, and deleting books to improve efficiency.

Uploaded by

vineet sharma
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)
446 views37 pages

Cs Project-1

This document describes a student project on a library management system. It includes a certificate certifying that the student completed the project, acknowledgements, and sections on the introduction, functions, importance, objectives, software used including Python and MySQL, connectivity between Python and MySQL, the system development life cycle, source code, and a main function with menu options. The project aims to automate library functions like adding, issuing, submitting, and deleting books to improve efficiency.

Uploaded by

vineet sharma
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/ 37

NAVIN BHARTI SENIOR

SECONDARY SCHOOL

ROHIT GOEL
th
12 SCIENCE
COMPUTER SCIENCE
PROJECT
ON
LIBRARY
MANAGEMENT
SYSTEM

CERTIFICATE
This is to certify that ROHIT GOEL, A student
of class 12th science has successfully
completed the research on the project report
entitled “LIBRARY MANAGEMENT SYSTEM”
under the supervision of Mr. “MANISH
KUMAR SINGH” during the year 2021-22 in
partial fulfillment of COMPUTER SCIENCE
PRACTICAL EXAMINATION conducted by
CBSE, NEW DELHI.

Examiner’s Teacher’s
Signature Signature

ACKNOWLEDGEMENT

I would like to express my special thanks of


gratitude to my computer science teacher
“MANISH KUMAR SINGH” as well as our
Principal “L.M. ATREY” who give me the golden
opportunity to do this wonderful project on
topic – “LIBRARY MANAGEMENT SYSTEM” also
help me in doing a lot of research and I come
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.

CONTENT
1. Certificate
2. Acknowledgement
3. Introduction
4. Functions
5. Importance
6. Objective
7. Software used
8. Python
9. MySQL
10. Connectivity
11. System development life cycle
12.Coding
13.Output
14.Bibliography
INTRODUCTION
LIBRARY MANAGEMENT SYSTEM is also called
an automated library system. It is defined as
software that has been established to manage
a basic house keeping function of a library.
The electronic management via the software is
essential to track information like issue date,
submit date , due date who has borrowed any
book etc.. The system is developed and
designed with an aim to facilitate efficient
management to the schools to manage a
modern library with accurate data
management. The software is intented to
reduce the manual work to manage library
functions which have various features….
FUNCTIONS OF LIBRARY
MANAGEMENT
In order to maintain library management
software, It has the following set of
components. These components are efficient
to manage library operations carefully.

 Add books
 Issue books
 Submit books
 Delete books
 Display books

IMPORTANCE
Library management system facilitate the
administrators to keep an eye on the library
department’s all functions. Also, it enables
librarians and users to save time on daunting
tasks and enhance efficiency. By using this sort
of library management system, the school
management would be able to follow the work
outline and fineness of different librarians
capabilities.
Additionally, they get an opportunity to know
how well maintained the record of issue books
and collection is.

The librarian and administration department


can access various reports to implement new
improvements. Thus, the efficiency library
management software is essential to run smart
school functions and maintain accurate data of
library.

OBJECTIVE
The library management system is designed to
meet the following objective:
i. Simple and easy to operate.
ii. Increase librarian’s efficiency.
iii. Search , add , update and view library
material.
iv. Helps to manage library functions
constructively.
v. Saves time and reduces overheads.
vi. Reduce library’s operating cost.
vii. Customized reports for better
management.
viii. Remove manual process to issue books
and maintain records.

Software used

Python 3.6x or higher version.


SQL {Structured Query
Language}.
Python – MySQL connectivity.
Windows 8 or above.
8 GB RAM.
Ms – office

PYTHON
Python is an open source, object – oriented,
high level programming language developed by
“Guido van Rossum” in 1991 at the national
Research institute for mathematics and
computer science, the Netherlands. It is
presently owned by Python Software
Foundation [PSF].
“Python is an easy-to-learn, general-purpose,
dynamic, interpreted, high-level, multiplatform
and powerful programming language. It has
efficient high level data structures and a simple
but effective approach to object-oriented
programming.”

Features of Python
Python is an interactive, interpreted language
with simple syntax. It has become increasingly
popular because of its salient features which
are listed below:

 Python is interpreted, interactive,


directly executed with pre compiled code.
This means that it is processed at runtime
by the interpreter and we need not
compile the program before executing it.
 It is a loosely typed object-oriented
programming language with few keywords
and simple English- like structure.
 It is easy to learn.
 Python is used for both scientific and
non-scientific programming.
 It takes a less time to develop as python
programs are typically 3-5 times shorter
than equivalent java programs.
 It supports GUI {Graphical user
interface} and Garbage collection.
 It is easily compatible with other
languages like C , C++ , Java etc…
Structured Query
Language
SQL(structured query language) is a standard
language for accessing and manipulating
databases. SQL commands are used to create ,
transform and retrieve information from
Relational Database Management Systems and
are also used to create interface between a
user and database. By using a SQL commands,
one can search for any data in the database
and perform other functions like creating
tables, adding records, modifying data,
removing rows, dropping tables etc.

Features of SQL
SQL is the most common language used to
create, operate, update, manipulate and
communicate with a database.
It has a following salient features which are
listed below:

 It can retrieve data from a database


through Query processing.
 It can insert records in a database.
 It can update records in a database.
 It can create new databases and modify
the existing ones.
 It can create views in a database.

 It allows modifying the security settings


of the system.

 It can create new tables in a database.


Connectivity Of
Python – MySQL

To create a connection between Python and


MySQL database application, the connect()
method of “mysql.connector” module is used.
System Development
Life Cycle (SDLC)

The system development life cycle


is used in the construction of the
server application.
The system development life cycle is a
project management technique that divides
complex project into smaller, more easily
managed segments or phases segmenting
projects allows managers to verify the
successful completion of project phases
before allocating resources to substequent
phases.
Software development projects typically
include initialization, planning, design,
development, testing, implementations and
maintenance phases. However, the phases
may be divided differently depending on the
organization involved.

SOURCE CODE
 MySQL
Database : library
 Tables used:
1) BOOKS
2) ISSUE
3) SUBMIT

Table BOOK
Table ISSUE

Table SUBMIT
 Python

import mysql.connector as a
con =
a.connect(host="localhost",user="root",pas
sword="1234",database="library")

 Add Book:
def addbook():
bn = input("Enter BOOK name :")
c = input("Enter BOOK code :")
t = input("Enter Total books :")
s = input("Enter subject :")
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")
main()
 Issue Book:
def issueb():
n = input("Enter name :")
r = input("Enter REG no. :")
co = 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(">..........................................................
......<")
print("Book issue to :",n)
bookup(co,-1)
 Submit book:
def submitb():
n = input("Enter name :")
r = input("Enter REG no. :")
co = input("Enter BOOK code :")
d = input("Enter DATE :")
a = "insert into submit values(%s,%s,%s,
%s)"
data = (n,r,co,d)
c = con.cursor()
c.execute(a,data)
con.commit()
print(">..........................................................
.......<")
print("Book submited from :",n)
bookup(co,1)

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()
main()

 Delete book:

def dbook():
ac = input("Enter Book Code :")
a = "delete from books where BCODE =
%s"
data = (ac,)
c = con.cursor()
c.execute(a,data)
con.commit()
main()
 Display book:
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("Subject :",i[3])
print(">..........................................................
<")
main()
 Main function()
def main():
print(""""
LIBRARY MANAGER
1. ADD BOOK
2. ISSUE BOOK
3. SUBMIT BOOK
4. DELETE BOOK
5. DISPLAY BOOK
""""")
choice = input("Enter TASK no. :")
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()

 Password function()

def password():
ps = input("Enter password :")
if ps == 'py143':
main()
else:
print("wrong")
password()

password()

OUTPUT
To Get Output : Press F5
On Enter Wrong Password:

When Password is Correct:


(i.e. py143)
To add a new book detail:

Let us Check in MySQL:


To issue a Book from library:

Let us check in MySQL:


 In ISSUE table ,record will added
 In BOOKS table , No. of books will decreased .

To submit a book in library:

Let us check in MySQL:


 In SUBMIT table, Record will Added
 In BOOKS table, No. of books will increased .
To delete a book detail from library:

Let us check in MySQL:


To display all books in library:
BIBLIOGRAPHY
We have successfully completed our project
with the help of our teachers and friends.
The different sources we have used are:
Wikkipedia
Youtube
Text book – NCERT
Text book – Sumita arora

You might also like