Skip to main content

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

Project description

533_project

Supermarket System Functions


1. Product Management (Sub-Package 1)

Module 1: Warehouse Management

  • Description: Handles product management within the warehouse.
  • Functions:
  1. Product Entry (add_product()):
    • Inputs: id, name, category, purchase_price, entry_date, quantity
    • Adds new products to the warehouse database with complete details.
  2. Product Exit (remove_product()):
    • Inputs: id, quantity
    • Ensures stock availability before fulfilling product requests.
  3. 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:
  1. New Product Shelving (add_newproduct()):

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

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

    • Inputs: id, quantity
    • Increases product quantities on shelves( increase_quantity()).
    • Decreases product quantities on shelves(decrease_quantity()).
  4. 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:
  1. Product Browsing (display()):
    • Allows customers to view available products on shelves.
  2. Product Selection (choose()):
    • Adds or removes items from the shopping cart.
    • Records customer details (name, sale_price, quantity, purchase_price).
  3. 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:
  1. Add Record (add_record()):
  • Inputs: id, items, total_price, profit, cal_quantity - Logs individual purchase transactions.
  1. Purchase History (get_history()):
    • Retrieves a customer's shopping records.
  2. Customer Spending Insights (get_total()):
    • Calculates total purchase counts and spending for each customer.
  3. Store Profit Analysis (supermarket_situation()):
    • Analyzes total sales, profits, and identifies popular products.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

supermarket_system-0.1.0.tar.gz (2.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

supermarket_system-0.1.0-py3-none-any.whl (2.3 kB view details)

Uploaded Python 3

File details

Details for the file supermarket_system-0.1.0.tar.gz.

File metadata

  • Download URL: supermarket_system-0.1.0.tar.gz
  • Upload date:
  • Size: 2.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.11.9

File hashes

Hashes for supermarket_system-0.1.0.tar.gz
Algorithm Hash digest
SHA256 c9c2da648db473838d181b148c3ce57b5ccd3a81e068b72c6446ebce96907575
MD5 f98155e6a85736edd7176bde72030b50
BLAKE2b-256 2ea8c6e02125df6a4ecb79b7d53af16fe579f79b1975fb3739e15a57bcaa2fcd

See more details on using hashes here.

File details

Details for the file supermarket_system-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for supermarket_system-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a51ce04a14ccdb784f98d4393267a081478b75310d00da4b2cc5066ab568c053
MD5 e6420239a169956c51529eb8243ecf90
BLAKE2b-256 eb10b94c6e32971e0340b812d567ff1826502bc7be830fca9e9574d3734109d8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page