Project File Sample

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 30

Informatic Practices Project

“Library Management System”

Name- Shreya Kumari


Class- 12th Sci B
Roll no. 09
CONTENTS
S.no Content Page No.
1. Preface 2
2. Certificate 3
3. Acknowledgement 4
4. Introduction 5
5. Objective 6
6. System Requirements 7
7. Source Code 8-17
8. Outputs 18-27
9. MySQL tables 28
10. Future scope 29
11. Bibliography 30

==============================================================================
Shreya page.1
IP Project File
PREF@CE
========================================================================================

The Library Management System, undertaken as a project, is based


on relevant technologies. This project is all about creation of
software for library management to keep record of the books in a
way that is much more efficient, quick and secure than the
traditional file system. It helps the Librarian to have a full-fledged
control over their library.

This project is developed using:


-Python (JupyterLab 3.0.14 – Anaconda Navigator)
-SQL (MySQL Workbench 8.0.31 CE)

==============================================================================
Shreya page.2
IP Project File
Certificate
This is to certify that Shreya Kumari of class XII
Sci B has successfully made her Informatic
Practices Project on the topic “Library
Management System”, under the guidance of
Ms.Aakanksha Rikhari (IP Teacher) during the
Acedemic Session of 2022-2023

________________
Teacher’s Signature

==============================================================================
Shreya page.3
IP Project File
Tv~ÇÉãÄxwzxÅxÇà
I would like to extend my sincere thanks and gratitude to my
Informatic Practices teacher, Ms. Aakanksha Rikhari, who
gave me the golden opportunity to do this project on Library
Management system, who also helped me in completing this
project. She also helped me a lot in finalizing this project and
gave me the valuable time and moral support to develop this
software.

==============================================================================
Shreya page.4
IP Project File
PROJECT ON
LIBRARY MANAGEMENT SYSTEM

INTRODUCTION
The project Library Management System aims at developing a fully
functional computerized system to maintain all the day-to-day activity of
a library. The library management system is all about organizing,
managing the library, and library-oriented tasks. It also involves
maintaining the database of entering new books and the record of books
that have been retrieved or issued, with their respective dates.

The main aim of this project is to provide an easy to handle and


automate a library management system. This project also provides
features and an interface for maintaining librarian’s records,
student’s history of issues. The owner can easily update, delete and
insert data in the database with this project.
==============================================================================
Shreya page.5
IP Project File
O\j_]tiv_
• The system is developed to cope up with the current issues and
problems of a library.
• To provide greater speed & reduced time consumption.
• After computerized system is implemented less human force will be
required to maintain the library thus reducing the overall cost.
• Help both students and library manager to keep a constant track of all
the books available in the library
• Librarian is able to search record just with a few types.
• All issue & return details are stored in files on stable storage.
• Library users can view their own account details and can use them as
necessary.
• For better and faster performance and to reduce man power.
• For doing work more accurately and easy to use software.

==============================================================================
Shreya page.6
IP Project File
SYSTEM REQUIREMENTS
Recommended System Requirements
 Processors: Intel® Core™ i3 processor 4300M at 2.60
GHz.
 Disk space: 2 to 4 GB.
 Operating systems: Windows® 10, MACOS, and
UBUNTU.
 Python Versions: 3.8.10 or Higher.

Minimum System Requirements


 Processors: Intel Atom® processor or Intel® Core™ i3
processor.
 Disk space: 1 GB.
 Operating systems: Windows 7 or later, MACOS, and
UBUNTU.
 Python Versions: 2.7.X, 3.6.X.

Prerequisites before starting the project


 You need root or administrator privileges to perform
the installation process.
 Python IDLE and SQL must be installed on your
machine.
 Also you need to install python library such as mysql
connector and random for completion of the project.

==============================================================================
Shreya page.7
IP Project File
Source Code
For Python:
------------------------------------------------------------------------------
Import pandas as pd

import mysql.connector

con=mysql.connector.connect(host='localhost',user='root',password='60659',use
_pure=True,database='mydb')

print(con)

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)

==============================================================================
Shreya page.8
IP Project File
con.commit()

print("\n==BOOK ADDED SUCCESSFULLY!!==\n")

wait = input('\nPress Enter To Continue\n')

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("\n\n\n\nBook issued successfully to: ",n)

wait = input("\nPress Enter To Continue\n")

bookup(co,-1)

main()

==============================================================================
Shreya page.9
IP Project File
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 returnn 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('\nPress Enter To Continue\n')

bookup(co,1)

main()

==============================================================================
Shreya page.10
IP Project File
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[O]+u

sql="update books set total=%s where bcode=%s;"

d=(t,co)

c.execute(sql,d)

con.commit()

wait = input('\nPress Enter To Continue\n')

main()

def dbook():

ac=int(input("Enter Book Code: "))

a="delete from books where bcode=%s;"

data=(ac,)

c=con.cursor()

==============================================================================
Shreya page.11
IP Project File
c.execute(a,data)

con.commit()

print("Book deleted successfully")

wait = input('\nPress Enter To Continue\n')

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("Subject:",i[4])

print("\n\n")

wait = input('\nPress Enter To Continue\n')

main()

==============================================================================
Shreya page.12
IP Project File
def report_issued_books():

a="select * from issue;"

c=con.cursor()

c.execute(a)

myresult=c.fetchall()

d1=pd.DataFrame(myresult,

columns=['student','reg.no','Book','Date'])

print(d1)

wait = input('\nPress Enter To Continue\n')

main()

def report_return_books():

a="select * from returnn;"

c=con.cursor()

c.execute(a)

myresult=c.fetchall()

d2=pd.DataFrame(myresult,

columns=['student','reg.no','Book','Date']

print(d2)

wait = input('\nPress Enter To Continue\n')

main()

==============================================================================
Shreya page.13
IP Project File
def main():

print(""""

============WELCOME!!===============

XXX LIBRARY MANAGEMENT APPLICATION XXX

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

choose the task you wish to perform..

+------------------------------------+

| 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("\n")

==============================================================================
Shreya page.14
IP Project File
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

""")

==============================================================================
Shreya page.15
IP Project File
choice=input(" Enter Task No. :")

print("\n")

if choice=='1':

report_issued_books()

elif choice=='2':

report_return_books()

elif choice=='3':

main()

else:

print('Error: please try again. \n')

main()

elif(choice=='7'):

print("\nX=======THANK YOU AND HAVE A GREAT DAY


AHEAD!!!========X")

else:

print("Error: Please try again..")

main()

==============================================================================
Shreya page.16
IP Project File
For MySQL:
------------------------------------------------------------------------------
Create database mydb;

Use mydb;

Create table books (bname varchar (50),

author varchar (50),

bcode varchar (50),

total int,

subject varchar (50));

Create table issue (name varchar (50),

regno varchar (50),

bcode int,

issue_date varchar(50));

Create table returnn (name varchar (50),

regno varchar (50),

Bcode int(50),

return_date varchar (50));

==============================================================================
Shreya page.17
IP Project File
Outputs & tables
=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

 Main Menu:

==============================================================================
Shreya page.18
IP Project File
 Adding a Book record:

==============================================================================
Shreya page.19
IP Project File
 Issuing a Book:

==============================================================================
Shreya page.20
IP Project File
 Returning a book:

==============================================================================
Shreya page.21
IP Project File
 Deleting a book record:

==============================================================================
Shreya page.22
IP Project File
 Displaying available Books:

==============================================================================
Shreya page.23
IP Project File
 Reporting Menu:
1. Showing issued book records…

==============================================================================
Shreya page.24
IP Project File
2. Showing returned book records…

==============================================================================
Shreya page.25
IP Project File
3. Back to main menu…

==============================================================================
Shreya page.26
IP Project File
• Exiting Program:

==============================================================================
Shreya page.27
IP Project File
Futur_ S]op_
Of Li\r[ry
m[n[g_m_nt syst_m
• To assist the staff in capturing the effort spent by them
in managing a library database.
• To utilize resources in an efficient manner by increasing
their productivity through automation.
• Easy to operate and requires less man power.
• Possibility for Online Library services
• Likelihood for Libraries to support E-books.
• In an institution, A Library system can be used to
provide notes to students.
==============================================================================
Shreya page.29
IP Project File
U|uÄ|ÉzÜtÑ{ç
• www.slideshare.net
• diatm.org.in
• www.youtube.com/watch?v=8sqQhO83-8w
• www.pythonworld.in

==============================================================================
Shreya page.30
IP Project File

You might also like