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.
- 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)
- Python 3
- File handling (JSON) for persistent storage
- datetime module for due-date calculation
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
- Make sure Python 3 is installed.
- Open a terminal in this project folder.
- Run:
python main.py - Follow the on-screen menu to add books, register members, and manage borrowing.
===== 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
- 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