This is a mini Python-based application designed to manage warehouse inventory. The system allows users to Create, Read, Update, and Delete (CRUD) items in the warehouse. It is perfect for small to medium-sized warehouses to efficiently track their inventory.
- ποΈ View All Items: Displays a list of all items in the warehouse.
- π View Item by ID: View specific item details by entering its ID.
- β Add New Item: Add new items to the warehouse inventory.
- π οΈ Update Item: Update the details of existing items.
- ποΈ Delete Item: Remove items from the warehouse inventory.
- πͺ Exit Program: Exit the application.
The program starts with a predefined list of items in the warehouse. Each item has the following attributes:
- π ID: A unique identifier for the item.
- π·οΈ Name: The name of the item.
- π¦ Quantity: The amount of the item in stock.
- π° Price: The price of the item.
- π Supplier: The item's supplier.
- π Category: The category of the item.
The main menu offers the following options:
- View All Items
- Add New Item
- Update Item
- Delete Item
- Exit Program
Displays a formatted list of all items in the warehouse.
Prompts the user to input an item ID and shows its details.
Allows the user to add a new item by entering its details. The new item is added to the list if the ID is unique.
Prompts the user to enter an item ID to update its details. Users can select which attribute (name, quantity, price, supplier, or category) to update.
Prompts the user to enter an item ID to delete it from the list.
Ends the program.
- Ensure you have Python installed on your computer.
- Copy and paste the code into a Python file (e.g.,
warehouse_management.py). - Open a terminal or command prompt.
- Navigate to the directory where the Python file is saved.
- Run the program by typing
python warehouse_management.pyand press Enter. - Follow the on-screen instructions to interact with the warehouse management system.
This program provides a basic structure to manage warehouse data. It can be further developed and customized based on specific needs.