This document describes the current stable version of Kombu (4.5). For development docs, go here.

Text utilitites - kombu.utils.text

Text Utilities.

kombu.utils.text.escape_regex(p, white='')[source]

Escape string for use within a regular expression.

kombu.utils.text.fmatch_best(needle, haystack, min_ratio=0.6)[source]

Fuzzy match - Find best match (scalar).

kombu.utils.text.fmatch_iter(needle, haystack, min_ratio=0.6)[source]

Fuzzy match: iteratively.

Yields:Tuple – of ratio and key.
kombu.utils.text.version_string_as_tuple(s)[source]

Convert version string to version info tuple.