This Python program is a command-line interface (CLI) for an online retail store management system. It allows administrators, customers, distributors, and NGOs to perform various tasks related to the store's operations.
- View Quarterly Sales of Each Category: Provides sales data for each product category on a quarterly basis.
- View Curated Sales Data for Each Category: Displays curated sales data for each product category.
- View Top 5 Customers (based on money spent): Lists the top 5 customers based on their total spending.
- Data of Items in the Inventory for Each Storage Type: Shows the inventory items categorized by storage type.
- Add Category: Allows adding a new product category.
- View All Categories: Displays all available product categories.
- View Ratings of Top 10 Delivery Partners and Wages: Shows the ratings and wages of the top 10 delivery partners.
- View Incomplete Orders and Status: Lists all incomplete orders and their current status.
- View Products and Change Quantity in Inventory: Displays products and allows modifying their quantities in the inventory.
- Assign a Delivery Partner to Deliver Order: Assigns a delivery partner to an order.
- Add Product to Inventory: Adds a new product to the inventory.
- Remove a Product from Inventory: Removes a product from the inventory.
- Run Automated Tests: Runs automated tests for the inventory and order management system.
- Add Products to Cart: Allows customers to browse and add products to their shopping cart.
- View Cart: Displays the contents of the customer's shopping cart.
- Proceed to Checkout: Initiates the checkout process for the customer's order, including payment and donation options.
- View Order History: Shows the customer's order history and status.
- View Products You Distribute: Lists the products that a distributor is responsible for distributing.
- Add a New Product: Allows a distributor to add a new product to their distribution list.
Displays information about the NGOs associated with the online retail store, including their IDs, names, registration numbers, and funds raised.
- Vipul Mishra
- Namit Jain
- Ayush Singhal
- Clone the repository:
git clone https://github.com/namit22315/ONLINE-STORE-MANAGEMENT.git
- Install the required dependencies:
pip install mysql.connector tabulate tqdm
-
Set up the database:
- Create a MySQL database named
online retail store
. - Import the provided SQL schema to create the necessary tables.
- Create a MySQL database named
-
Update the database connection details in
CLI.py
:
cnx = mysql.connector.connect(user='your_username', password='your_password', host='localhost', port='3306', database='online retail store')
- Navigate to the project directory:
cd ONLINE-STORE-MANAGEMENT
- Run the main script:
python CLI.py
- Follow the on-screen instructions to interact with the CLI menu and perform various tasks.
CLI.py
: The main script that runs the command-line interface.Admin/
: Directory containing modules for various admin functionalities.order_fixer.py
: Module for managing and fixing orders.check_products.py
: Module for checking and validating products.
For detailed documentation on the code structure, functions, and their usage, please refer to the docstrings and comments within the source code files.
- mysql.connector - MySQL driver for Python
- tabulate - Library for pretty-printing tabular data
- tqdm - Library for creating progress bars
https://github.com/namit22315/ONLINE-STORE-MANAGEMENT
Here are some screenshots of the interface: