The Library Management System is a modular, Streamlit-based web application developed using Python and Object-Oriented Programming (OOP) principles. It allows you to manage books, users, and their borrowing activities through an interactive web interface.
This Streamlit application provides an easy-to-use UI to manage a library. It includes three core classes:
- Add book
- Print library books
- Print books by prefix
- Add user
- Borrow book
- Return book
- Print users borrowed book
- Print users
The Book class represents a book in the library and includes the following attributes: id: Unique identifier for the book. name: Title of the book. quantity: Number of copies available.
The User class represents a library user and includes the following attributes: id: Unique identifier for the user. name: Name of the user.
The Admin class manages the library system and provides various functionalities, including:
- Adding new books to the library.
- Printing all available books.
- Searching for books by name.
- Adding new users to the system.
- Borrowing books.
- Returning books.
- Printing users who borrowed books.
- Printing all users in the system.
Add Books: Easily add new books to the library with unique IDs.
Manage Users: Add new users to the system for tracking borrowing activities.
Search Books: Search for books by name using a prefix.
Borrow and Return: Borrow books from the library and return them when done.
Track Borrowers: Keep track of users who have borrowed books.
User Interface: Simple UI interface for user interaction.
Streamlit UI: Interactive and dynamic web interface.