see.tools module¶
Filtering and other tasks.
-
see.tools.char_width(char)¶ Get the display length of a unicode character.
-
see.tools.compact(objects)¶ Filter out any falsey objects in a sequence.
-
see.tools.display_len(text)¶ Get the display length of a string. This can differ from the character length if the string contains wide characters.
-
see.tools.filter_regex(names, regex)¶ Return a tuple of strings that match the regular expression pattern.
-
see.tools.filter_wildcard(names, pattern)¶ Return a tuple of strings that match a shell-style wildcard pattern.