The Library Management System is a Python-based application that allows users to manage and organize a catalogue of books and journals. Users can log in, borrow and return books, search for books.
- User authentication and login system
- Book borrowing and return functionality
- Search and filtering of books
- User-friendly command-line interface
- Python 3.9.12
- MySQL Database
- XAMPP Server
-
Clone the repository:
git clone https://github.com/Anonymous-988/Library-Management-System-Using-Python.git -
Navigate to the project directory:
cd Library-Management-System-Using-Python -
Install the required dependencies:
pip install -r requirements.txt -
Set up the MySQL database:
- Create a new MySQL database named
library. - Import the provided SQL dump file from Assets using the following command:
mysql -u username -p library < library.sql
- Create a new MySQL database named
-
Update the database connection settings in
DBModule.py:DB_HOST = 'localhost' DB_USER = 'your_db_username' DB_PASSWORD = 'your_db_password' DB_NAME = 'library'
-
Run the application:
python main.py -
Follow the on-screen instructions to log in, borrow or return books/journals.
The database schema consists of the following tables:
users: Stores user information (uid pkey auto, username, password, fname, lname).items: Stores books/journals information (itemid pkey auto, title, author, genre, itemtype, quantity, pyear).user_action: Keeps track of borrowed/returned items (aid pkey auto, uid fkey, itemid fkey, action, review, rating).
Users and Items has a many-to-many relationship which is established using user_action relation. Users can either borrow or return items which will be logged in the user_action table and action column.
Open for Suggestions.. Thank You !!