A comprehensive management system for car dealerships built with Python and MySQL, featuring inventory management for BMW and Mercedes vehicles, customer records, and employee data management.
This system allows car dealerships to:
- Manage BMW and Mercedes vehicle inventory
- Track customer information and purchases
- Manage employee records and sales performance
- Perform CRUD operations (Create, Read, Update, Delete) on all records
- Python 3.x
- MySQL
- mysql-connector-python
automobile-management/
│
├── backend/
│ ├── main.py
│ ├── bmw.py
│ ├── mercedes.py
│ ├── customers.py
│ ├── employees.py
│ └── README.md
│
├── database/
│ ├── schema.sql
│ └── README.md
│
└── README.md
- Multi-table Database Management: Handles four main tables (BMW, Mercedes, Customers, Employees)
- Complete CRUD Operations: For all tables with error handling
- User-friendly Interface: Menu-driven interface for easy navigation
- Data Validation: Input validation and error handling
- Modular Design: Separate modules for different functionalities
- Install Python 3.x and MySQL
- Install required Python packages:
pip install mysql-connector-python
- Create MySQL database and tables using scripts in database/schema.sql
- Update database connection parameters in Python files:
user='your_username' passwd='your_password' host='localhost' database='automobile_management'
-
Run the main program:
python main.py
-
Select the table you want to work with:
- BMW Inventory
- Mercedes Inventory
- Customer Records
- Employee Management
-
Choose operations from the menu:
- Add Record
- Display Records
- Search Record
- Delete Record
- Update Record
The system consists of four main tables:
-
BMW
- Vehicle details including model, body type, fuel type, price, acceleration, top speed
-
Mercedes
- Vehicle details including model, body type, fuel type, class, price, output, acceleration, top speed
-
Customers
- Customer information including name, address, purchased car, contact details
-
Employees
- Employee records including name, post, salary, years of service, sales performance
Feel free to fork this project and submit pull requests. For major changes, please open an issue first to discuss the proposed changes.
This project is licensed under the MIT License - see the LICENSE file for details.