- Created By: McZane Gabriel Desir
Name | Description | Technology |
---|---|---|
Shoe Store Inventory Manager | A shoe store inventory manager that allows the user to add, update and view all of the stock in their store's inventory | Python |
This script allows a user to manage and administrate their stock. In this particular example a shoe store's inventory is included in the inventory.txt file provided. However, any text file containing CSV formatted data can be read by the manager. To search by SKU a unique SKU identifier must be included.
- inventory.py: Main program file containing the Shoes class and functions to perform various tasks.
- inventory.txt: A text file containing the data for the shoe warehouse.
The following instructions will help you get up and running
You will need the following installed to run the inventory management tool These can either be installed globally or you can create a virtual environment learn more about virtual environments here
The following packages/installs are needed:
- Clone the repository:
git clone https://github.com/DocDooom/final-capstone.git
- Install Tabulate:
pip install tabulate
- Install Pandas:
pip install pandas
- In a Terminal or Command Prompt window Navigate to the project directory:
cd ./capstone_iv/
- Run the inventory.py file:
python inventory.py
To run the program, execute the inventory.py file. A menu will be displayed, allowing you to choose which task to perform. Follow the prompts to complete the task.
Inventory data should show Inventory data OK ✓. If there is a problem you will see the following screen:
If this occurs you should check that your inventory.txt file is located in the same folder as your inventory.py file.
Issues with the data within the inventory.txt will produce a warning.
The program launches with a header and main menu from this menu you can select actions you'd like to take on the loaded inventory.
-
v - View all inventory
-
s - Search for shoe by SKU
-
a - Add new item to inventory
-
r - Restock low items
-
h - Put high stock items on sale
-
t - View the total value of the current inventory
-
e - Exit
-
View All Inventory: Displays a table of country, product code, product name, cost and quantity for all the inventory loaded from the inventory.txt file
Fig. 1.4 inventory display bottom -> back to main menu
-
Search by SKU: allows you to search for a shoe by SKU. You do not have to input the SKU prefix to find the shoe The program will automatically detect whether you have included it or not.
-
Add New Item to Inventory: This allows you create a new entry in the inventory by inputting the various needed parameters
- Restock low items: This gives you the ability to view what item has the lowest stock and decide to restock that item
Fig. 1.7 The above gives you the option to change stock levels to a new desired value
- Put High Stock Items On Sale: This options shows the item with the highest stock amount and lets you input the percentage (%) you'd like to discount by
Fig. 1.8 Here we are putting the Air Yeezy 2 on sale with a discount of 20%
- View total inventory value: This lets us know the total value of the stock we currently have for each item so - price x quantity = value.
Fig. 1.9 Total stock value top
Fig. 2.0 Total stock value bottom
- Exit: terminates the program Note: There is no need to worry about saving changes as changes are saved whenever they are made.
This project(s) is my solution for tasks created by HyperionDev.