This project demonstrates an advanced Python implementation of a Library Management System using Object-Oriented Programming (OOP) principles. The system manages books and members, allowing for operations such as borrowing and returning books. It showcases key OOP concepts like inheritance, encapsulation, polymorphism, abstraction, and composition.
The Library Management System is a simple application designed to manage a collection of books and a list of members. Members can borrow and return books, and the system keeps track of which books are currently borrowed. This project serves as a practical example of how to design and implement a system using OOP principles in Python.
Person
): Defines a common interface for all persons in the system.Member
class inherits from the Person
class and extends its functionality.Library
class manages collections of Book
and Member
objects.No external packages are required for this project.
Clone the Repository:
Clone the repository to your local machine:
git clone https://github.com/your-username/library-management-system.git
Navigate to the Directory:
Go to the project directory:
cd library-management-system
Run the Script:
Run the script using Python:
python library_management_system.py
When you run the script, it will:
Running the script will produce output similar to:
Added book: The Great Gatsby.
Added book: To Kill a Mockingbird.
Added book: 1984.
Added member: Alice Johnson.
Added member: Bob Smith.
=== List of Books ===
Title: The Great Gatsby, Author: F. Scott Fitzgerald, ISBN: 9780743273565
Title: To Kill a Mockingbird, Author: Harper Lee, ISBN: 9780061120084
Title: 1984, Author: George Orwell, ISBN: 9780451524935
=== List of Members ===
Member ID: M001, Name: Alice Johnson, Email: alice.j@example.com
Member ID: M002, Name: Bob Smith, Email: bob.s@example.com
Alice Johnson borrowed 'The Great Gatsby'.
Bob Smith borrowed 'To Kill a Mockingbird'.
=== List of Available Books ===
Title: 1984, Author: George Orwell, ISBN: 9780451524935
Alice Johnson returned 'The Great Gatsby'.
=== List of Available Books ===
Title: The Great Gatsby, Author: F. Scott Fitzgerald, ISBN: 9780743273565
Title: 1984, Author: George Orwell, ISBN: 9780451524935
To extend the system, you can:
Contributions are welcome! If you have ideas for new features, improvements, or bug fixes, please feel free to open an issue or create a pull request.
git clone https://github.com/your-username/library-management-system.git
git checkout -b feature/your-feature-name
git commit -m "Add: feature description"
git push origin feature/your-feature-name
This project is licensed under the MIT License - see the LICENSE file for details.
Thank you for using the Library Management System! If you have any questions or feedback, feel free to reach out. Happy coding! ๐