This module initialises a book class and calls the utility functions from bookutils module
Module name | Description |
---|---|
bookutils |
utility functions to manage a library system, including book management,tracking the issue and return of books, and updating book statuses |
import other dependencies based on the language chosen
Class name | Description |
---|---|
Book | A class for adding books with required parameters |
Function name | Description |
---|---|
Book(name,author,volume,issued) |
Constructor of Book class |
add_book() |
Adds a new book to the library |
find_book(name) |
Finds a book by its title |
get_all_books() |
Gets the list of all books in the library |
issue_book(name) |
Issues a book and updates its status to “Yes” |
return_book(name) |
Returns a book and updates its status to “No” |
name
, author
, volume
, issued
Book
object with the provided attributes.Book
object.bookutils.append_dict_to_csv
.name
bookutils.find_book
to search for the book in the CSV file.bookutils.get_books
to retrieve all books from the CSV file.book_name
find_book
to search for the book.bookutils.update_book_status
.name
bookutils.update_book_status
.find_book
to retrieve and print the details of the returned book.