Library Management
Library Management
PROJECT REPORT ON
NAME :
CLASS : XII
1
VIDYA VIHAR CENTRAL SCHOOL
BONAFIDE CERTIFICATE
This is to certify that this project report entitled
……………………………………..………………...…………………………is a
…………………………………
PRINCIPAL
2
TABLE OF CONTENTS (T O C)
1. INTRODUCTION 5
2. ACKNOWLEDGEMENT 4
4. SOURCE CODE 7
5. OUTPUT 12
8. BIBLIOGRAPHY 21
3
ACKNOWLEDGEMENT
Apart from the efforts of me, the success of any project
depends largely on the encouragement and guidelines of many
others. I take this opportunity to express my gratitude to the people
who have been instrumental in the successful completion of this
project
The guidance and support received from all the members who
contributed and who are contributing to this project, was vital for
the success of the project. I am grateful for their constant support
and help.
4
INTRODUCTION
LIBRARY MANAGEMENT SYSTEM
This project has been prepared for storing details of books like B_ID,
project for learning purpose. Also you can modify this system as per
5
OBJECTIVES OF THE PROJECT
The objective of this project is to let the students apply the
programming knowledge into a real-world situation/problem and
exposed the students how programming skills helps in developing a
good software.
6
SOURCE CODES
import warnings
warnings.filterwarnings("ignore")
import pandas as pd
import matplotlib.pyplot as plt
while True:
shop=pd.read_csv("projectexcel.csv")
shop.set_index('B_ID',inplace=True)
print(' ----------------------------------------------')
print("| |")
print("| |")
print("| Library Management system |")
print("| |")
print("| |")
print(' ------------------------------------------------')
print ("\t1.Add Book")
print ("\t2.Display Books")
print ("\t3.Update Book")
print ("\t4.Delete Book")
print ("\t5.Search Book")
print ("\t6.Graph")
print ("\t0.Exit")
ch=int(input("Choose an option:"))
if ch==1:
print (" ")
print ("Add a Book")
B_ID=int(input("Enter the B_ID:"))
B_Name=input("Enter the Book name:")
Price=int(input("Enter the price of Book:"))
Quantity=int(input("Enter the quantity of books"))
Author=input("Enter Authors Name:")
7
Publisher=input("Enter Publisher Name:")
shop.loc[B_ID]=[B_Name,Price,Quantity,Author,Publisher]
shop=shop.to_csv("projectexcel.csv")
print("Addes Sucessfully ")
again=input("do you want to continue(y/n)")
if again in 'Nn':
break
#print('------------------------')
elif ch==2:
print(" All Books Details")
print(shop)
elif ch==3:
try:
print("Updating a details of Books:")
B_ID=int(input("Enter the BID:"))
while True:
print("1.Update B_Name")
print("2.Update Price")
print("3.Update Quantity")
print("4.Update Author")
print("5.Update Publisher")
print("0.Exit")
choices=int(input("Enter your choice:"))
if choices==1:
print("Updating B_Name:")
name=input("Enter the Book name:")
shop.BName[B_ID]=name
print("Book name updated:")
print(shop)
elif choices==2:
print("Updating price:")
8
p=input("Enter the new price:")
shop.Price[B_ID]=p
print("Price updated:")
print(shop)
elif choices==3:
print("Updating quantity:")
q=input("Enter the new quantity:")
shop.Quantity[B_ID]=q
print("Quantity updated:")
print(shop)
elif choices==4:
print("Updating Author:")
Au=input("Enter the Author's Name:")
shop.Author[B_ID]=Au
print("Author updated:")
elif choices==5:
print("Updating Publisher")
Pub=input("Enter the Publisher Name:")
shop.Publisher[B_ID]=Pub
print("Publisher updated:")
print(shop)
elif choices==0:
break
else:
print("invalid option")
#print("---------------------------")
except RuntimeWarning:
print()
elif ch==4:
while True:
print(shop)
B_ID=int(input("Enter the book B_ID to delete:"))
shop.drop(B_ID,axis=0,inplace=True)
9
print("Deleted Sucessfully")
print(shop)
again=input("Do you want to continue (y/n)")
if again in 'Nn':
break
#print("-----------------------")
elif ch==5:
while True:
print("1.search by B_ID:")
print("Search a Book")
B_ID=int(input('Enter B_ID:'))
print("Name",shop.loc[B_ID,'BName'])
print("price",shop.loc[B_ID,'Price'])
print("quantity",shop.loc[B_ID,'Quantity'])
print("Author",shop.loc[B_ID,'Author'])
print("Publisher",shop.loc[B_ID,'Publisher'])
again=input("Do you want to continue (y/n)")
if again in 'Nn':
break
#pint("-----------------------")
elif ch==6:
while True:
print("1.Bar graph of all Books and quantity:")
print("2. Line graph of all Boooks and price:")
print("0 to Exit")
choi=int(input("Enter your choice:"))
if choi==1:
print("Graph of every Books according to their Quantity")
plt.figure(figsize=(10,10))
10
plt.title("Graph of every Books according to their Quantity")
plt.xlabel('B_ID')
plt.ylabel('Price')
x=shop.index.tolist()
plt.bar(x,shop.Quantity)
plt.xticks(x)
print(plt.show())
#print('-------------')
elif choi==2:
print("Graph of every Books according to their Price")
plt.figure(figsize=(10,10))
plt.title(" Price Graph of every Books")
plt.xlabel('B_ID')
plt.ylabel('Price')
x=shop.index.tolist()
plt.plot(x,shop.Price)
plt.xticks(x)
print(plt.show())
#print('-------------')
elif choi==0:
break
else:
print("invalid option")
#print("---------------------------")
elif ch==0:
break
else:
print("invalid option")
#print('---------------------------------')
shop=shop.to_csv("projectexcel.csv")
11
OUTPUT
ADD BOOK
12
DISPLAY BOOKS
13
UPDATE BOOK
14
DELETE BOOKS
15
SEARCH BOOK
16
GRAPH
17
18
EXIT
19
HARDWARE AND SOFTWARE
REQUIREMENTS
RAM : 2GB (Minimum)
: 4 GB (Recommended)
OPERATING SYSTEM : 32bit x86
64bit x 64(Recommended)
HARD DISK : Minimum 250 Mb Free Memory
PROCESSOR : Dual Core 2.80GHz or Greater
SCREEN RESOLUTION : 1366 x 768 (optimal)
GRAPHICS CARD : Minimum 64 MB
PLATFORM : Wndows7/8/10 with SP1
SOFTWARE REQUIREMENTS
I. Windows OS
II. Python
III. MySQL
20
BIBLIOGRAPHY
• Computer science with Python – Class XII
ByPreethi Arora
• Website: https://www.w3resource.com
• google.com
• youtube.com
21