Skip to content

Latest commit

ย 

History

History
72 lines (49 loc) ยท 2.42 KB

File metadata and controls

72 lines (49 loc) ยท 2.42 KB

๐Ÿ”ง Car Part OEM Matcher

This tool was developed upon request by Bdeel Auto to automate the process of comparing and mapping car part prices and OEM numbers between the internal Bdeel inventory and a competitor's price list (e.g., Nour). It uses fuzzy string matching to find equivalent parts, making pricing analysis and product alignment faster and more reliable.

๐Ÿš€ Features

  • โœ… Fuzzy matching using RapidFuzz for Arabic/English part names
  • โœ… Matches parts with a similarity score โ‰ฅ 75%
  • โœ… Skips irrelevant rows (e.g. ones containing "ูˆุด")
  • โœ… Outputs a clean Excel sheet showing:
    • Matched product names
    • Bdeel and Rival OEM numbers
    • Price comparison
    • Match score for transparency

๐Ÿ“ Included Data

This repository contains:

  • data/Bdeel_list.xlsx โ€“ Sample product list from Bdeel Company
  • data/Nour.xlsx โ€“ Sample product list from Nour Company
  • Mapped_OEM_Parts.xlsx โ€“ Auto-generated match report from the script

๐Ÿ“Œ Permission Notice:
Both Bdeel and Nour have granted permission for their product list samples to be shared publicly for educational and research purposes only. OEMs and prices shown here are sample data reflecting real-world formatting.


๐Ÿ“‚ Input Format

Bdeel_list.xlsx

Name Arabic Internal Reference Price
ูู„ุชุฑ ู‡ูˆุงุก ู‡ูˆู†ุฏุง BDE123 120

Nour.xlsx

Name Code1 Code2 Price
ูู„ุชุฑ ู‡ูˆุงุก ู‡ูˆู†ุฏุง N123 X456 135

๐Ÿ“ค Output

Mapped_OEM_Parts.xlsx includes:

Bdeel Part Name Nour OEM Number Rival Code1 Rival Code2 Bdeel Price Rival Price Match Score

Skipped parts (e.g. those containing "ูˆุด") are included at the bottom with a "Skipped" label.


โš™๏ธ How It Works

  • Loads the Excel files using pandas
  • Filters out noisy or unwanted rows
  • Compares each Bdeel part name to all rival names using fuzzy matching
  • Accepts only matches above a similarity threshold (default: 75)
  • Outputs a result file with all matches and skipped items

๐Ÿงช How to Run

  1. Clone the repo:
    git clone https://github.com/yourusername/car-part-oem-matcher.git
    cd car-part-oem-matcher
โšก