Library Management System is a comprehensive application designed to manage library operations efficiently. It provides functionalities for book management, user management, book rentals, returns, generating reports and generating QR codes for books. The application is built using Python and Tkinter for the GUI, with MySQL as the database backend.
- Python
- Tkinter
- MySQL
- tkcalendar
- pymysql
- pathlib
- Add Reader: Allows librarians to add new readers to the system.
- Search User: Provides functionality to search for users in the database.
- Add Book: Enables librarians to add new books to the library.
- Search Book: Allows searching for books in the library.
- Book Overview: Displays detailed information about a selected book.
- Add Rental: Facilitates the process of renting out books to readers.
- Return Book: Manages the return of rented books.
- Email Notifications: Sends confirmation emails for book rentals and returns.
- Generate QR Code: Generates QR codes for books.
- Generate Report: Creates reports on various library metrics.
- Backup: Backs up the library database.
Before running the application, ensure you have the following installed:
- Python >3.11
- MySQL Server
- Required Python packages (listed in requirements.txt)
-
Clone the Repository
git clone https://github.com/WinterWollf/Library.git cd Library -
Install Required Packages
pip install -r requirements.txt
-
Set Up the Database
- Create a MySQL database named
library. - Execute the SQL commands in
src/Assets/Starting Commands (English).sqlto set up the necessary tables and initial data.
- Create a MySQL database named
-
Configure Email Sending
- Open the file
src/mail.py. - Locate the
send_emailfunction. - Set the
sender_emailandsender_passwordvariables with your email credentials. - Set the
receiver_emailandreceiver_email_2variables with the recipient email addresses.
Example:
sender_email = "your_email@gmail.com" sender_password = "your_password" receiver_email = "recipient1@example.com" receiver_email_2 = "recipient2@example.com"
- Open the file
-
Run the Application
python src/main.py
Here are some screenshots showcasing the main features of the application:
This project is licensed under the Creative Commons Attribution-NonCommercial 4.0 International (CC BY-NC 4.0) License - see the LICENSE file for details.
For any inquiries or feedback, feel free to reach out to the project author:
- GitHub: WinterWollf








