This is a simple command-line application for managing a collection of books. It allows users to add, delete, update, and display books. The book information is stored in a CSV file.
- Add Book: Add new books to your collection by providing essential details like title, author, genre, and publication year.
- Delete Book: Remove books from your collection using their unique ID.
- Update Book: Modify book details such as title, author, genre, and publication year for specific books.
- Display Books: Explore your collection using various options, including searching by title or author, displaying books by genre, and viewing all books.
- Save and Load: Save your book collection to a CSV file to maintain your progress between sessions, and load your existing collection when starting the application.
- Python 3.x
- Required packages:
tabulate
Use pip to install the package tabulate
$ pip install tabulate
Clone this repository to your local machine
$ git clone https://github.com/lele-sf/BookManager.git
Use python to run the main program
$ python project.py
Use pytest to run the unit tests for the functions
$ pytest test_project.py
The application uses a CSV file named books.csv to store book information. Make sure the file is in the same directory as the script.
This project is licensed under the MIT License - see the LICENSE file for details.