pythonwrench.difflib module¶ pythonwrench.difflib.find_closest_in_list(x: str, lst: Iterable[str], sim_fn: Callable[[str, str], float] | None = None, 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.