A complete command-line (CLI) Library Management System built with Python and Supabase. Manage books, members, borrowing operations, and generate reports through an intuitive menu interface.
- Book Management: Add, update, delete, and search books
- Member Management: Register members and track their borrowing history
- Borrow/Return System: Full transaction handling with automatic stock management
- Search Functionality: Find books by title, author, or category
- Reporting System: Generate reports on popular books, overdue items, and member activity
- Data Validation: Prevent invalid operations like deleting members with active borrows
- Python 3.8+
- Supabase account
- Python packages:
supabase,python-dotenv
- Clone the repository:
git clone https://github.com/Rutwika1409/Library-Management-System.git
cd Library-Management-System- Install dependencies:
pip install -r requirements.txt- Create a
.envfile with your Supabase credentials:
SUPABASE_URL=your_project_url
SUPABASE_KEY=your_anon_key
Run the main program:
python library.pyFollow the on-screen menu to access all features:
- Add members/books
- Borrow books
- Return books
- View books/members
- Update information
- Delete books/members
- Generate reports
- Exit system
library.py- Main menu systembook_add.py- Add books and membersbooks_borrow.py- Handle book borrowingbooks_return.py- Handle book returnsbooks_view.py- View and search booksbooks_update.py- Update recordsbooks_delete.py- Delete books/membersbooks_reports.py- Generate reportsrequirements.txt- Dependencies
The system uses three main tables:
- books (book_id, title, author, category, stock)
- members (member_id, name, email)
- borrow_records (record_id, member_id, book_id, borrow_date, return_date)