Cs Project
Cs Project
1
JABALPUR
-------------------------------- --------------------------------
TEACHER IN CHARGE PRINCIPAL
-------------------------------- --------------------------------
PRACTICAL EXAMINER SCHOOL STAMP
ACKNOWLEDGEMENT
I extend my deepest appreciation to our esteemed principal,
Mrs. Naseema , for providing this golden opportunity of this
wonderful project work with unwavering support and
encouragement throughout the development of this project.
SR DESCRIPTION
NO
1. AIM OF THE PROJECT
2. INTRODECTION
4. MODULES
5. FUNCTIONS
6. DATABASE CREATION
7. SOURCE CODE
8. OUTPUT
11. BIBLIOGRAPHY
TO CREATE A
LIBRARY MANAGEMENT SYSTEM
BY ESTABLISING
CONNECTION BETWEEN
PYTHON AND MYSQL
INTRODUCTION
It will also save the book’s issuance and return dates, as well
as the fine if the book is not returned
Modules Details
Main.py This module function calls all the
other python files
Addbook.py To add the book in the library
View.py To view the list of the books in the
library
Deletebooks.py To delete the book from the library
Issuebooks.py To issue the books from the library
Returnbook.py To return the books to the library
FUNCTIONS USED
• delete_books (Assumed from delete.py):
Functionality: Delete books from the library.
Corresponding SQL Table: table_book
• View_books():
This function will be used to display all the records from our
database to our table in the GUI window, whenever we are
making any changes to the data in our database (as the data is not
automatically updated in the table).
First, we delete everything from our table (referred to as “tree” in
our code) and then we use SQL’s SELECT * query to get
everything from the table, that we will insert in our table to
update it for any changes.
• clear_fields():
This function will be used whenever there are some values in our
entry boxes in our window, which will be removed using this.
This is the only functionality in this group that is also available as
a button.
• clear_and_display():
This function is a combination of the clear_fields() and the view
_books() to help our code become cleaner and less lengthier.
• Add_books():
Functionality: Add new books to the library.
Corresponding SQL Table: table_book
• remove_record():
This is the book deletion functionality of our system.
When this function is initiated, it will read the selected
record in our GUI table, and then delete from both, our
GUI table and SQL database table using the tree.
Delete() method and DELETE query respectively.
• update():
This sub-function to the update_book() function, we do
something similar to the add_books function but we use
the UPDATE query rather than the INSERT query, and
then we revert back the changes on the window to the
original.
TABLE 3
TABLE 4
TABLE 5
TABLE 6
TABLE 7
SOURCE CODE
USER INPUT
OUTPUT
ADD BOOKS
ISSUE BOOKS
RETURN BOOKS
DISPLAY BOOKS
DELETE BOOKS
HARWARE REQUIREMNTS
1. Laptop Specifications:
- Operating System: Windows 11
- Processor: Intel Core i5 (5th generation or newer)
- RAM: At least 8 GB
- Storage: Sufficient disk space for the operating system,
development tools, and data storage.
2. Development Tools:
- Python: Required for developing the software.
- Text Editor or Integrated Development Environment (IDE):
Examples include Visual Studio Code, PyCharm.
- MySQL Database: Required for storing and managing the
library data.
2. Python:
- Version: Python 3.12.1
- Download and install Python from the official website
3.MySQL Database:
- Version: MySQL 3.23.2
- Download and install MySQL Server from the official website
6. Text Editor :
- A text editor for writing code snippets:
- Sublime Text
- Atom
- Notepad++ (Windows)
APPLICABILITY
THANK YOU !!