You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

supermarket-system

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

supermarket-system

This supermarket management system is designed to simulate the operation of a supermarket including goods management and the interaction with customers.

0.1.0
pipPyPI
Maintainers
1

533_project

Supermarket System Functions

1. Product Management (Sub-Package 1)

Module 1: Warehouse Management

  • Description: Handles product management within the warehouse.
  • Functions:
  • Product Entry (add_product()):
    • Inputs: id, name, category, purchase_price, entry_date, quantity
    • Adds new products to the warehouse database with complete details.
  • Product Exit (remove_product()):
    • Inputs: id, quantity
    • Ensures stock availability before fulfilling product requests.
  • Inventory Display (display()):
    • Output: id, name, category, purchase_price, entry_date, quantity
    • Displays details of products in the warehouse, including stock levels and entry information.

Module 2: Sales Management

  • Description: Manages product movement and display on shelves.
  • Functions:
  • New Product Shelving (add_newproduct()):

    • Inputs: id, quantity, sale_price
    • Moves products from the warehouse to the shelves and adjusts stock levels.
  • Modify Sale Price (change_price()):

    • Inputs: id, new_price
    • Updates the price of shelved products.
  • Adjust Shelf Quantity :

    • Inputs: id, quantity
    • Increases product quantities on shelves( increase_quantity()).
    • Decreases product quantities on shelves(decrease_quantity()).
  • Products Display (display_shelves()):

    • Inputs: id, name, quantity, sales_price
    • Shows products currently available on shelves.

2. Customer Management (Sub-Package 2)

Module 1: Purchase Management

  • Description: Enables and manages customer shopping activities.
  • Functions:
  • Product Browsing (display()):
    • Allows customers to view available products on shelves.
  • Product Selection (choose()):
    • Adds or removes items from the shopping cart.
    • Records customer details (name, sale_price, quantity, purchase_price).
  • Checkout (checkout()):
    • Processes and finalizes purchases, including:
      • Calculating total and tax-inclusive amounts.
      • Recording the transaction through add_record().
      • Reducing shelved product quantities.

Module 2: Records Management

  • Description: Tracks customer purchases and generates insights.
  • Functions:
  • Add Record (add_record()):
  • Inputs: id, items, total_price, profit, cal_quantity - Logs individual purchase transactions.
  • Purchase History (get_history()):
    • Retrieves a customer's shopping records.
  • Customer Spending Insights (get_total()):
    • Calculates total purchase counts and spending for each customer.
  • Store Profit Analysis (supermarket_situation()):
    • Analyzes total sales, profits, and identifies popular products.

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.