Mini Project Report: Inventory Management System
Title
Inventory Management System using Python and MySQL
Introduction
The Inventory Management System is a simple yet effective solution to manage stock, update quantities, and
maintain product records. It is designed using Python for the backend logic and MySQL for data storage.
Objectives
- To create a basic, user-friendly inventory management system.
- To use Python for data handling and business logic.
- To use MySQL for structured and reliable data storage.
- To enable CRUD operations (Create, Read, Update, Delete) for inventory items.
Tools & Technologies Used
- Programming Language: Python 3
- Database: MySQL
- IDE: VS Code / Pydroid 3 / PyCharm
- Connector: mysql-connector-python
System Requirements
- Python 3.x
- MySQL Server
Mini Project Report: Inventory Management System
- mysql-connector-python library
Database Design
Database Name: inventory_db
Table: inventory
CREATE TABLE inventory (
id INT AUTO_INCREMENT PRIMARY KEY,
name VARCHAR(100),
quantity INT,
price FLOAT
);
Functionalities
- Add Item: Add a new item with quantity and price.
- View Items: View all available items.
- Update Item: Modify the quantity of a specific item.
- Delete Item: Remove an item from inventory.
Sample Python Code
import mysql.connector
conn = mysql.connector.connect(
Mini Project Report: Inventory Management System
host="localhost",
user="root",
password="your_password",
database="inventory_db"
cursor = conn.cursor()
def view_items():
cursor.execute("SELECT * FROM inventory")
for row in cursor.fetchall():
print(row)
# Sample call
view_items()
Conclusion
The project successfully demonstrates how to build a basic inventory management system using Python and
MySQL. It fulfills the primary goals of learning database connectivity, CRUD operations, and basic software
design.
Future Enhancements
- Adding a graphical user interface (GUI)
- Exporting data to CSV/Excel
- Implementing login and user roles
Mini Project Report: Inventory Management System
- Integrating barcode scanning for products