This is a simple Library Management System implemented in Python using the Tkinter GUI library. The system allows you to perform CRUD (Create, Read, Update, Delete) operations on a collection of books in a library.
- Add Book: Add a new book with details such as title, author, genre, and quantity.
- Search Book: Search for a book by its title.
- Update Book: Update details of an existing book.
- Delete Book: Delete a book from the library.
-
Clone the repository:
git clone https://github.com/yourusername/library-management-system.git cd library-management-system -
Install the required dependencies:
pip install pillow requests
-
Run the application:
python lib_mgmt.py
- Add Book: Enter the book details in the input fields and click "Add Book".
- Search Book: Enter the book title in the search field and click "Search".
- Update Book: Select a book from the table, click "Update Book", modify the details, and click "Confirm Update".
- Delete Book: Select a book from the table and click "Delete Book".
tkinter: Standard Python interface to the Tk GUI toolkit.Pillow: Python Imaging Library (PIL) fork for image processing.requests: HTTP library for downloading the logo image.
The main application is implemented in the lib_mgmt.py file. The LibraryManagementSystem class contains all the methods and widgets needed for the application.
The add_book method adds a new book to the books dictionary and updates the table view.
The search_book method filters the books based on the search input and updates the table view accordingly.
The load_book_for_update method loads the selected book's details into the input fields for editing. The update_book method saves the changes and updates the table view.
The delete_book method deletes the selected book from the books dictionary and updates the table view.
This project is licensed under the MIT License.
- Fork the repository.
- Create your feature branch (
git checkout -b feature/YourFeature). - Commit your changes (
git commit -m 'Add your feature'). - Push to the branch (
git push origin feature/YourFeature). - Open a pull request.
