A simple book rental system built with Python, SQLite, and PyQt6. The app allows users to manage books, people, and book rentals through a GUI.
Book Rental App's Graphical User Interface
-
Books Management:
- Add new books with title, author, and genre.
- Delete books by title.
- View all books in the database.
-
People Management:
- Add new people with first name and surname.
- Delete people by name.
- View all people in the database.
-
Book Rentals:
- Borrow books by specifying the book title, author, and the renter's name.
- Return books by specifying the book title, author, and the renter's name.
- Prevent borrowing of already rented books.
- View all currently rented books.
├── rental.py # Main entry point of the application
├── database_manager.py # DatabaseManager class for database operations
├── gui.py # GUI class for the graphical user interface
├── requirements.txt # Python dependencies
└── icon.png # Icon for the application window
- Python 3.6+
- PyQt6
-
Clone the repository:
git clone https://github.com/NakerTheFirst/Book-rental.git cd Book-rental
-
Create a virtual environment and activate it:
python -m venv venv source venv/bin/activate # On Windows: venv\Scripts\activate
-
Install the required dependencies:
pip install -r requirements.txt
-
Run the application:
python rental.py
-
Use the graphical interface to manage books, people, and rentals.