Professional Documents
Culture Documents
INVESTIGATORY PROJECT
(Session 2023-2024)
Signature Signature
(Examiner) (Subject Teacher)
Name: Om Dwivedi
Class: XII 'A'
S. No. CONTENT
01. BOOK STORE MANAGEMENT IN
PYTHON
02. WHAT IS BOOKSTORE MANAGEMENT
SYSTEM USING PYTHON?
08. BIBLIOGRAPHY
INDEX
BOOK STORE
MANAGEMENT IN
PYTHON
The Bookstore Management System Using
Python is a fully functional desktop application
developed in Python that covers all of the
features that IT students and computer-related
courses will require for their college projects or
assignments. This Bookstore Management
System is beneficial to bookstore businesses that
were having difficulty managing their entire book
inventory, as it allows for better and more
organized book management. This Book Store
Management System Python Project is quite
useful, and the concept and logic of the project
are simple to grasp. The source code is open
source and free to use. Simply scroll down and
click the download option.
What Is Bookstore
Management System
Using Python?
The Book Store Management System in Python is
a desktop application that lets users make a list of
books with the names of their authors and the
year they were published, and then keep that list
as a record. To add the information to the record,
all you have to do is type the book’s information
into the text fields and click the “Add” button.
How Bookstore
Management System
Works?
This Bookstore Management System Project in
Python simply works by managing all the books
that have been recorded or inserted into the
system. The system has the capability to update
and delete books within the system. Thus, books
can be searched for the quickest way in the
system.
Available Features
View Books
Search Book
Add Book
Update Book
Delete Book
What are the benefits
of owning a
bookstore?
You get to sell something people are really
interested in – Although not everyone enjoys
reading, everyone appreciates a good book.
Something that makes you sit down and turn
pages late at night is entirely satisfying for
everyone. When you run a bookstore, you truly
own a retail environment that can deliver
something quite rare: pure happiness.
def connect():
conn =sqlite3.connect("books.db")
cur= conn.cursor()
cur.execute("CREATE TABLE IF NOT EXISTS book (id INTEGER
PRIMARY KEY, title text, author text, year integer, isbn integer)
")
conn.commit()
conn.close()
def view():
conn =sqlite3.connect("books.db")
cur= conn.cursor()
cur.execute("SELECT * FROM book")
rows =cur.fetchall()
conn.close()
return rows
def delete(id):
conn =sqlite3.connect("books.db")
cur= conn.cursor()
cur.execute("DELETE FROM book WHERE id=?",(id,))
conn.commit()
conn.close()
connect()
BOOKSTORE.PY
from tkinter import *
import backend
window = Tk()
def get_selected_row(event):
try:
global select_tup
index=list1.curselection()[0]
select_tup = list1.get(index)
e1.delete(0,END)
e1.insert(END, select_tup[1])
e2.delete(0,END)
e2.insert(END, select_tup[2])
e3.delete(0,END)
e3.insert(END, select_tup[3])
e4.delete(0,END)
e4.insert(END, select_tup[4])
except IndexError:
pass
def view_command():
list1.delete(0,END)
for row in backend.view():
list1.insert(END, row)
def search_command():
list1.delete(0,END)
for row in
backend.search(title_text.get(),author_text.get(),year_text.get(
), isbn_text.get()):
list1.insert(END,row)
def add_book():
backend.insert(title_text.get(),author_text.get(),year_text.get(),
isbn_text.get())
list1.delete(0,END)
list1.insert(END,
(title_text.get(),author_text.get(),year_text.get(),
isbn_text.get()))
def delete_book():
backend.delete(select_tup[0])
def update_book():
backend.update(select_tup[0],
title_text.get(),author_text.get(),year_text.get(),
isbn_text.get())
window.wm_title("Book Store")
l1 = Label(window, text="Title")
l1.grid(row=0,column=0)
l2 = Label(window, text="Auther")
l2.grid(row=0,column=2)
l3 = Label(window, text="Year")
l3.grid(row=1,column=0)
l4 = Label(window, text="ISBN")
l4.grid(row=1,column=2)
title_text = StringVar()
e1 = Entry(window, textvariable= title_text)
e1.grid(row=0, column=1)
author_text = StringVar()
e2 = Entry(window, textvariable= author_text)
e2.grid(row=0, column=3)
year_text = StringVar()
e3 = Entry(window, textvariable= year_text)
e3.grid(row=1, column=1)
isbn_text = StringVar()
e4 = Entry(window, textvariable= isbn_text)
e4.grid(row=1, column=3)
list1.bind("<<ListboxSelect>>", get_selected_row)
sb1 =Scrollbar(window)
sb1.grid(row=2, column=2 ,rowspan = 6)
list1.configure(yscrollcommand=sb1.set)
sb1.configure(command=list1.yview)
window.mainloop()
BIBLIOGRAPHY
COMPUTER SCIENCE WITH PYTHON
BY SUMITA ARORA
https://sourcecodehero.com/bookstore-
management-system-using-python-with-
source-code/
https://pythonworld.in/practical-project/
project-list/