A simple, interactive command-line application for library employees to manage books, users, rentals, and returns.
Built with Python and SQLite, this tool helps small libraries keep track of their book inventory and customer activity efficiently — all through the terminal.
- Add New Books
- Register New Users
- Rent and Return Books
- Search Books by Name or Author
- View Books Currently in Stock
- Track Rent History & Return Fines
- Handle Duplicates and Validation Gracefully
- Python 3.x
- SQLite3 (via sqlite3 module)
- Date Handling with datetime module
- No external libraries required
git clone https://github.com/your-username/library-cli-system.git cd library-cli-system
python library.py The SQLite database (library.db) will be created automatically.
You’ll be greeted with a menu: ****** Welcome To Library System ********
- Create account for new Customer
- Register new book in the Inventory
- Record book to be rented
- Record book being returned
- Search Book in the Inventory
- View Books in Stock
- Exit the system Just enter the number corresponding to your task and follow the prompts.
Returned after 30 days: 1000 RWF
31–35 days: 5000 RWF
Over 35 days: 20,000 RWF
library.py # Main application script library.db # SQLite database (auto-created) README.md # Project overview
Input is validated throughout (no blank or duplicate usernames, phone numbers, book names, etc.)
Designed for single-terminal use (no web UI)
Fine logic is adjustable in record_bookreturn() function
Pull requests and suggestions are welcome. Feel free to fork the repo and improve the system!
© Allrights Reseverd 2025 YvanRalph