A Python-based GUI application for efficient library record management using Tkinter and MySQL.
The Library Management System is a desktop-based application built with Python (Tkinter) and MySQL to simplify library operations.
It provides an intuitive graphical interface for managing members, books, and transactions, making it ideal for small to medium-scale libraries or academic projects.
- ๐ฅ Add Records โ Insert new member and book details
- ๐ Update Data โ Modify existing records
- โ Delete Records โ Remove outdated entries
- ๐ Search Functionality โ Find books and members easily
- ๐ Display Records โ View complete database entries
- ๐ Auto Date Management โ Borrow & due dates generation
- ๐ฐ Fine Calculation โ Late return penalty system
- ๐งพ Table View โ Organized data display
- ๐ Reset & Exit โ Clear form or close app instantly
- Python 3.x
- Tkinter (GUI Framework)
- MySQL (Database)
- mysql-connector-python
library-management-system/
โโโ library.py # Main application (Tkinter GUI)
โโโ database.sql # Database schema (optional)
โโโ README.md # Documentation
Create the database:
CREATE DATABASE library_management_system;CREATE TABLE books (
BookID INT PRIMARY KEY,
BookTitle VARCHAR(255),
Author VARCHAR(255),
Price INT
);CREATE TABLE library (
Member VARCHAR(50),
PRN_NO VARCHAR(50) PRIMARY KEY,
ID VARCHAR(50),
FirstName VARCHAR(100),
LastName VARCHAR(100),
Address1 VARCHAR(200),
Address2 VARCHAR(200),
Postcode VARCHAR(20),
Mobile VARCHAR(20),
BookID VARCHAR(50),
BookTitle VARCHAR(200),
Author VARCHAR(200),
DateBorrowed VARCHAR(50),
DateDue VARCHAR(50),
DaysOnBook VARCHAR(20),
LateReturnFine VARCHAR(20),
DateOverDue VARCHAR(20),
ActualPrice VARCHAR(20)
);git clone https://github.com/HimanshuKumarRout/library-management-system.git
cd library-management-systempip install mysql-connector-pythonUpdate credentials in your Python file:
host = "localhost"
user = "root"
password = "yourpassword"
database = "library_management_system"python library.pyThe application includes:
- ๐ Member Information Panel
- ๐ Book Selection Section
- ๐ Data Display Panel
- ๐๏ธ CRUD Operation Buttons
- ๐ Database Record Table
| Module | Description |
|---|---|
| Add Data | Insert new member/book record |
| Update | Modify existing data |
| Delete | Remove records |
| Show Data | Display selected details |
| Reset | Clear all fields |
| Exit | Close the application |
- ๐ Login Authentication System
- ๐ Book Return Management
- ๐ Advanced Search & Filters
- ๐ท Barcode Scanner Integration
- ๐ค Export to Excel/PDF
- ๐ Web Version (Django / Flask)
Himanshu Kumar Rout
- GitHub: https://github.com/himanshukumarrout
- LinkedIn: https://www.linkedin.com/in/himanshurout
If you like this project, please star โญ the repository and share it!
Built with โค๏ธ using Python & MySQL