find_close_ram_manufacturer_name#

impacthpc.find_close_ram_manufacturer_name(name: str, threshold: float = 80) FuzzymatchResult | None#

Fuzzymatch search for close RAM manufacturer names from a dataset using fuzzy matching on name, variant and memory size. This method can return zero (None),one (FuzzymatchSingleResult) or several matches (FuzzymatchMultipleResult). Returns the exact name of the RAM, making it suitable to use with RAM class.

Parameters:
  • name (str) – The user input string to search for.

  • threshold (float, optional) – The minimum similarity score (0–100) to consider a match. Defaults to 80.

Returns:

  • FuzzymatchSingleResult if a single good match is found.

  • FuzzymatchMultipleResult if multiple results are above the threshold.

  • None if no suitable match is found.

Return type:

FuzzymatchResult | None