Sample Project
Sample Project
system
SESSION : 2022-23
………………………
Mrs. Ruma Goswami
………………………..
Signature of External
2
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.
3
10. OUTPUT 37
11. BIBLIOGRAPHY 48
4
School libraries
collection
Attendance
monitoring
8
SYSTEM
REQUIREMENTS
SPECIFICATIONS
A software requirements specification (SRS) is a
detailed description of a software system to be
developed with its functional and non-functional
requirements.
10
Functional
Requirements
• New Student Registration
• Search Record
1) PYTHON
2) My SQL
INTRODUCTION TO
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,
Netherlands. It is presently owned by Python Software
Foundation (PSF).
FEATURES OF PYTHON
❖ Easy to Learn and
Use
❖ Interpreted and
cross platform
Language
13
INTRODUCTION
TO MySQL
WHAT IS A DATABASE ?
A database is a separate application that stores a collection
of data. Each database has one or more distinct APIs for
creating, accessing, managing, searching and replicating
the data it holds. Other kinds of data stores can also be
used, such as files on the file system or large hash tables
In memory but data fetching and writing would not be so fast and
easy with those type of systems .Nowadays, we use relational
database management systems (RDBMS) to store and manage huge
volume of data. This is called relational database because all the
data is stored into different tables and relations are established
using primary keys or other keys known as Foreign Keys.
RDBMS TERMINOLOGY
❖ Database − A database is a collection of tables, with
related data.
❖ Table − A table is a matrix with data. A table in a
database looks like a simple spreadsheet.
HARDWARE REQUIREMENTS
Intel Atom® processor or
Processor Intel® Core™ i3 processor or
more
Memory Capacity 1 GB or More
RAM 128 MB or more
Hard Disk Capacity 4GB or More
Monitor CRT or LCD monitor
Keyboard Normal or Multimedia
Mouse Compatible Mouse
For printing hard-copy
Printer
reports
SOFTWARE REQUIREMENTS
Operating System Windows 7,8,10
DBMS : MySQL
Host : localhost
User : abhyuday
Passwd : 12345
Database : school
TABLE STRUCTURE
1) Table Admission -
2) Table Fees -
20
3)Table Student-
cursor.execute(qry1)
print("Book table created successfully !!!! \n")
===============================================
while True:
try:
print("="*80,"\n")
print("\t********** LIBRARY MANAGEMENT SYSTEM
**********","\n")
print("="*80)
print("\n")
print("\t1. BOOK DETAILS MENU DRIVE")
print("\t2. MEMBER DETAILS MENU DRIVE")
print("\t3. ISSUE AND RETURN BOOK MENU DRIVE")
print("\t4. EXIT")
print("\n")
print("-"*40)
choice = int(input("Enter your choice (1-4) : "))
print("-"*40)
print("\n")
if choice == 1:
while True:
print("*"*40)
print("====== BOOK DETAILS MENU DRIVE
======")
print("*"*40)
print("\t1. ADD BOOK DETAILS")
print("\t2. DISPLAY BOOK DETAILS")
print("\t3. UPDATE BOOK DETAILS")
print("\t4. SEARCH A BOOK")
print("\t5. DELETE A BOOK")
print("\t6. DELETE ALL BOOK DETAILS")
print("\t7. BACK TO MAIN MENU")
print("\n")
23
print("-"*40)
ch = int(input("Enter your choice (1-7) :
"))
print("-"*40)
print("\n")
if ch == 1:
book.add_book()
elif ch == 2:
book.display_book()
elif ch == 3:
book.update_book()
elif ch == 4:
book.search_book()
elif ch == 5:
book.delete_book()
elif ch == 6:
book.alldelete_book()
elif ch == 7:
break
else:
print("ERROR : Invalid Entry !!!!
\nTry Again")
print("\n")
elif choice == 2:
while True:
print("*"*40)
print("====== MEMBER DETAILS MENU DRIVE
======")
print("*"*40)
print("\t1. ADD MEMBER DETAILS")
print("\t2. DISPLAY MEMBER DETAILS")
print("\t3. UPDATE MEMBER DETAILS")
print("\t4. SEARCH A MEMBER")
print("\t5. DELETE A MEMBER")
print("\t6. DELETE ALL MEMBER DETAILS")
print("\t7. BACK TO MAIN MENU")
print("\n")
print("-"*40)
ch = int(input("Enter your choice (1-7) :
"))
print("-"*40)
print("\n")
if ch == 1:
members.add_member()
elif ch == 2:
members.display_member()
elif ch == 3:
members.update_member()
elif ch == 4:
members.search_member()
elif ch == 5:
members.delete_member()
elif ch == 6:
24
members.alldelete_member()
elif ch == 7:
break
else:
print("ERROR : Invalid Entry !!!!
\nTry Again")
print("\n")
elif choice == 3:
while True:
print("*"*44)
print("====== ISSUE AND RETURN MENU DRIVE
======")
print("*"*44)
print("\t1. DISPLAY ALL BOOK DETAILS")
print("\t2. DISPLAY ALL MEMBER DETAILS")
print("\t3. ISSUE BOOK")
print("\t4. RETURN BOOK")
print("\t5. DISPLAY ALL ISSUE DETAILS")
print("\t6. DISPLAY ALL RETURN DETAILS")
print("\t7. BACK TO MAIN MENU")
print("\n")
print("-"*40)
ch = int(input("Enter your choice (1-7) :
"))
print("-"*40)
print("\n")
if ch == 1:
transactions.book_details()
elif ch == 2:
transactions.member_details()
elif ch == 3:
transactions.book_issue()
elif ch == 4:
transactions.book_return()
elif ch == 5:
transactions.issue_details()
elif ch == 6:
transactions.return_details()
elif ch == 7:
break
else:
print("ERROR : Invalid Entry !!!!
\nTry Again")
print("\n")
elif choice == 4:
break
else:
print("ERROR : Invalid Entry !!!!! \nTry Again")
print("\n")
except:
print("Something went wrong !!!!!")
print("Try Again. ... ")
print("\n")
25
===============================================
cursor.execute(qry)
r = cursor.fetchone()
if r:
y = input("Enter new Book name : ")
qry = "UPDATE book SET Book_Name = '{}' WHERE
Book_ID = {};".format(y,x)
cursor.execute(qry)
mydb.commit()
print("\n")
print("Updated Book name successfully. .... ")
else:
print("\n")
print("ERROR : Incorrect Book ID !!!!!")
print("\n")
except:
print("\n")
print("Something went wrong !!!!! \nPlease Try
Again .... ")
print("\n")
print("\n")
elif ch == 3:
x = input("Enter the Author name for searching book
details : ")
a = "SELECT * FROM book WHERE Author =
'{}'".format(x)
cursor.execute(a)
r = cursor.fetchall()
if r == []:
print("\n")
print("ERROR : Invalid Author name entered
!!!!!")
print("Nothing to display \nTry Again")
print("\n")
else:
print("\n")
print(r)
print("\n")
elif ch == 4:
break
else :
print("ERROR : Invalid Entry !!!! \nTry Again")
print("\n")
print("\n")
print("Something went wrong !!!!! \nPlease Try
Again. ... ")
print("\n")
===============================================
print("\n")
print("Something went wrong !!!!! \nPlease Try
Again. ... ")
print("\n")
===============================================
cursor.execute(q2)
r = cursor.fetchone()
if r:
if r[1] > 0:
Issue_Date = input("Enter Issue date : ")
Issued_Books = int(input("Enter no of books
to be issued : "))
remcopies = r[1]-Issued_Books
q3 = "INSERT INTO issue
VALUES({},'{}',{},{},{});".format(Issu
e_ID,Issue_Date,x,z,Issued_Books)
cursor.execute(q3)
q4 = "UPDATE book SET Rem_Copies = {} WHERE
Book_ID = {};".format(remcopies,z)
cursor.execute(q4)
mydb.commit()
print("\n")
print("Book Issued Successfully. .. ")
print("\n")
else:
print("Book is not Available")
else:
print("\n")
print("ERROR : Incorrect Book ID !!!!!")
print("\n")
else:
print("\n")
print("ERROR : Incorrect Member ID !!!!!!")
print("\n")
except:
print("\n")
print("Something went wrong !!!!!")
print("\n")
===============================================
MAIN MENU
SEARCHING A BOOK
42
SEARCHING A MEMBER
ISSUING A BOOK
RETURNING A BOOK
48
WEBSITES :
❖ https://www.google.co.in
❖ https://pythontrends.wordpress.com
❖ https://code-projects.org
❖ https://www.w3schools.com
❖ https://www.educative.io
BOOKS :
➢ Computer Science with Python-
Class XII