pythonwrench.difflib module¶ pythonwrench.difflib.find_closest_in_list(x: str, lst: ~typing.Iterable[str], sim_fn: ~typing.Callable[[str, str], float] = <function sequence_matcher_ratio>, higher_is_closer: bool = True) → str | None[source]¶ Find closest element in a list based on matches ratio. pythonwrench.difflib.sequence_matcher_ratio(a: str, b: str) → float[source]¶ Compute distance ratio of two strings.