Minimalist Simple Business Proposal
Minimalist Simple Business Proposal
INTERNATIONAL SCHOOL
Polachery Main Road, Sonalur, Chennai - 600 127
A Reg. No:
DATE OF
COMPLETION:
STUDENT’S
SIGNATURE:
TEACHER’S
SIGNATURE:
EXTERNAL
EXAMINER:
ACKNOWLEDGEMENT
PREPARED BY:
M.SHAKEEL
TARUN
NIRANJAN
SIDHARTH
INDEX
OBJECTIVE 6
TECHNOLOGICAL REQUIREMENTS 7
MODULES USED 8
SCOPE 9
CODE 10
OUTPUT WINDOW 12
CONCLUSION 16
OBJECTIVE
The library management project,
using MySQL, Python, and Tkinter,
aims to simplify library resource
handling. It features a Tkinter-based
GUI for easy database interaction,
enhancing database management
skills and GUI design. The project
streamlines book organization and
management digitally.
TECHNOLOGIC
AL
REQUIREMEN
TS
HARDWARE
SOFTWARE
curSor.execute("""
CREATE TABLE IF NOT EXISTS bookS (
id INT AUTO_INCREMENT PRIMARY
KEY, title VARCHAR(255),
author VARCHAR(255),
year_publiShed INT,
StatuS VARCHAR(50) DEFAULT 'Not Returned'
)
"""
)
def add_book():
title = title_entry.get()
author =
author_entry.get()
year_publiShed = year_entry.get()
book_id = bookS_liStbox.get(Selected_item).Split()[0]
curSor.execute("DELETE FROM bookS WHERE id = %S",
(book_id,)) db.commit()
meSSagebox.ShoWinfo("SucceSS", "Book deleted SucceSSfully")
diSplay_bookS()
def update_StatuS():
Selected_item =
bookS_liStbox.curSelection() if not
Selected_item:
meSSagebox.ShoWWarning("PleaSe Select a book to
update") return
book_id = bookS_liStbox.get(Selected_item).Split()[0]
curSor.execute("UPDATE bookS SET StatuS = 'Returned' WHERE id = %S",
(book_id,)) db.commit()
meSSagebox.ShoWinfo("SucceSS", "Book StatuS updated
SucceSSfully") diSplay_bookS()
def diSplay_bookS():
curSor.execute("SELECT * FROM
bookS") bookS_liSt = curSor.fetchall()
print("BookS liSt:", bookS_liSt) # Debugging print to check the
retrieved data bookS_liStbox.delete(0, END)
for book in bookS_liSt:
if len(book) == 4: # Handle bookS Without StatuS
bookS_liStbox.inSert(END, f"{book[0]} - {book[1]} by {book[2]} (PubliShed:
{book[3]})") elif len(book) == 5: # Handle bookS With StatuS
bookS_liStbox.inSert(END, f"{book[0]} - {book[1]} by {book[2]} (PubliShed: {book[3]}) -
StatuS: {book[4]}") elSe:
print("Unexpected tuple length:", book) # Debugging print for unexpected data Structure
root = Tk()
root.title("Library Management
SyStem") root.geometry("800x600")
root.configure(bg="White")
add_frame = Frame(root,
bg="White")
add_frame.pack(pady=10)
ADDING A BOOK:
UPDATING A BOOK STATUS:
DELETING A BOOK :
CONCLUSION
In summary, the goal of this database system
for library management is to store books by
their titles using a MySQL database. By utilizing
this system, librarians and users can efficiently
handle and retrieve a wide range of titles
effortlessly. The user-friendly interface ensures
that searching, borrowing, and returning books
are simplified, reducing administrative tasks and
improving user satisfaction. Potential future
upgrades may involve implementing advanced
search algorithms, multilingual support, and
mobile accessibility to enhance the system's
flexibility and functionality. Ultimately, this
library management database system aims to
create a more organized, accessible, and user-
friendly environment for both librarians and
library users.