bec_widgets.utils.fuzzy_search ============================== .. py:module:: bec_widgets.utils.fuzzy_search .. autoapi-nested-parse:: Module providing fuzzy search utilities for the BEC widgets. Attributes ---------- .. autoapisummary:: bec_widgets.utils.fuzzy_search.FUZZY_SEARCH_THRESHOLD Functions --------- .. autoapisummary:: bec_widgets.utils.fuzzy_search.is_match Module Contents --------------- .. py:function:: is_match(text: str, row_data: dict[str, Any], relevant_keys: list[str], enable_fuzzy: bool) -> bool Check if the text matches any of the relevant keys in the row data. :param text: The text to search for. :type text: str :param row_data: The row data to search in. :type row_data: dict[str, Any] :param relevant_keys: The keys to consider for searching. :type relevant_keys: list[str] :param enable_fuzzy: Whether to use fuzzy matching. :type enable_fuzzy: bool :returns: True if a match is found, False otherwise. :rtype: bool .. py:data:: FUZZY_SEARCH_THRESHOLD :value: 80