Skip to content

Latest commit

ย 

History

6 Commits

Folders and files

NameName
Last commit message
Last commit date
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ“š Library Management System

A Python-based GUI application for efficient library record management using Tkinter and MySQL.


๐ŸŒŸ Overview

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.


๐Ÿš€ Key Features

  • ๐Ÿ“ฅ 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

๐Ÿ› ๏ธ Tech Stack

  • Python 3.x
  • Tkinter (GUI Framework)
  • MySQL (Database)
  • mysql-connector-python

๐Ÿ“ Project Structure

library-management-system/
โ”œโ”€โ”€ library.py        # Main application (Tkinter GUI)
โ”œโ”€โ”€ database.sql      # Database schema (optional)
โ””โ”€โ”€ README.md         # Documentation

๐Ÿ—„๏ธ Database Setup

Create the database:

CREATE DATABASE library_management_system;

๐Ÿ“˜ Books Table

CREATE TABLE books (
    BookID INT PRIMARY KEY,
    BookTitle VARCHAR(255),
    Author VARCHAR(255),
    Price INT
);

๐Ÿ“— Library Table

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)
);

โš™๏ธ Installation

1๏ธโƒฃ Clone the Repository

git clone https://github.com/HimanshuKumarRout/library-management-system.git
cd library-management-system

2๏ธโƒฃ Install Dependencies

pip install mysql-connector-python

3๏ธโƒฃ Configure Database

Update credentials in your Python file:

host = "localhost"
user = "root"
password = "yourpassword"
database = "library_management_system"

4๏ธโƒฃ Run the Application

python library.py

๐Ÿ–ฅ๏ธ Application Interface

The application includes:

  • ๐Ÿ“Œ Member Information Panel
  • ๐Ÿ“š Book Selection Section
  • ๐Ÿ“Š Data Display Panel
  • ๐ŸŽ›๏ธ CRUD Operation Buttons
  • ๐Ÿ“‹ Database Record Table

๐Ÿ“Œ Functional Modules

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

๐Ÿ”ฎ Future Enhancements

  • ๐Ÿ” Login Authentication System
  • ๐Ÿ”„ Book Return Management
  • ๐Ÿ“Š Advanced Search & Filters
  • ๐Ÿ“ท Barcode Scanner Integration
  • ๐Ÿ“ค Export to Excel/PDF
  • ๐ŸŒ Web Version (Django / Flask)

๐Ÿ‘จโ€๐Ÿ’ป Author

Himanshu Kumar Rout


โญ Support

If you like this project, please star โญ the repository and share it!


Built with โค๏ธ using Python & MySQL

About

๐Ÿ“š A Library Management System designed to efficiently manage books, students, borrowing records, and library operations through an organized and user-friendly interface.

Topics

Resources

Stars

4 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages