Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

📚 Library Management System (Python)

A console-based Library Management System built in Python, using JSON files for persistent storage. It allows librarians to manage books and members, and handle borrowing/returning of books with due dates.

Features

  • Add, remove, search, and list books
  • Add and list library members
  • Borrow and return books with automatic due-date calculation (14-day loan period)
  • Tracks available vs. total copies of each book
  • Data persists between runs using JSON files (books.json, members.json)

Tech Stack

  • Python 3
  • File handling (JSON) for persistent storage
  • datetime module for due-date calculation

Project Structure

library-management-python/
├── main.py        # CLI entry point
├── library.py     # Core Library class with all logic
├── books.json     # Sample book data
└── members.json   # Sample member data

How to Run

  1. Make sure Python 3 is installed.
  2. Open a terminal in this project folder.
  3. Run:
    python main.py
    
  4. Follow the on-screen menu to add books, register members, and manage borrowing.

Sample Menu

===== LIBRARY MANAGEMENT SYSTEM =====
1. Add Book
2. Remove Book
3. Search Books
4. List All Books
5. Add Member
6. List Members
7. Borrow Book
8. Return Book
9. Exit

Possible Enhancements

  • Add fine calculation for overdue books
  • Migrate storage to SQLite for better scalability
  • Build a simple GUI using Tkinter or a web interface using Flask

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages