Library Management Document PDF
Library Management Document PDF
1. OBJECTIVE OF THE
PROJECT
2. HARDWARE
REQUIREMENTS
3. SOFTWARE
REQUIREMENTS
4. FUNCTIONS
5. MODULES
6. SOURCE CODE
7. OUTPUT
8. BIBLIOGRAPHY
OBJECTIVE OF THE PROJECT:
The main objective of a library management system project is to
create a software that can manage the details of books in a library. The
software is designed to be used by the library staff to keep track of the
books. The project aims to provide an efficient and user-friendly way to
manage the library’s resources.
2
FUNCTION:
A function is a block of code, which only runs when it is called.
You can pass data, known as parameters, into a function. A
function can return data as a result.
3
MODULES:
A Python module is a file containing Python definitions and
statements. A module can define functions, classes, and
variables.
Modules used in this project:
Mysql.connector: This method sets up a connection, establishing
a session with the MySQL server. If no arguments are given, it
uses the already configured or default values. A connection with
the MySQL server can be established using either
the mysql.connector.connect() method or
the mysql.connector.MySQLConnection()
4
ABOUT THIS PROJECT:
This project aims at creating a python program on ‘library
management’. The program first asks the customer to add the
new books details like book name, author name etc. It gives
option to display all the available books in the library. User can
check the availability of the book using this program. It allows
deleting the books, which are not available. If the user needs to
change the details of the book stored, they can update the
details using the update function.
5
SOURCE CODE:
import mysql.connector
mydb=mysql.connector.connect(host='localhost',user='root',pass
word='Tiger')
mycursor=mydb.cursor()
mycon=mysql.connector.connect(host='localhost',user='root',pas
sword='Tiger',database='LIBRARY')
mycur=mycon.cursor()
else:
print("\t\t\t Record NOT found..!!!")
if count!=0:
print("\t\t Book Records found.........:\n")
for (bno,bname,bauth,bprice,bqty) in data:
print("Book Code:\t",bno)
print("Book Name:\t",bname)
print("Book Author:\t",bauth)
print("Book Price:\t",bprice)
print("Book Quantity:\t",bqty)
print(".................................")
else:
print("\t\t\t Record NOT found..!!!")
if count!=0:
print("\t\t Book Records found.........:\n")
for (bno,bname,bauth,bprice,bqty) in data:
print("Book Code:\t",bno)
print("Book Name:\t",bname)
print("Book Author:\t",bauth)
print("Book Price:\t",bprice)
print("Book Quantity:\t",bqty)
print(".................................")
else:
print("\t\t\t Record NOT found..!!!")
11
OUTPUT
12
13
14
BIBLIOGRAPHY:
1. Book – Python by Sumita Arora
2. www.python.org
3. https://www.geeksforgeeks.org
15