package documentation
Text wrapping, filling, formatting, indenting etc.
From __init__.py:
| Class | |
Class for holding the depth of nested brackets when parsing text. |
| Function | combine |
Undocumented |
| Function | indent |
Indent all lines in x by n copys of string s |
| Function | split |
Split on a separator sep, do not split on any separator inside any types of bracket. |
| Function | to |
Converts a text representation of a tuple to a tuple of the specified type. |
| Function | wrap |
Undocumented |
| Variable | initial |
Undocumented |
| Variable | newline |
Undocumented |
| Variable | space |
Undocumented |
| Variable | str |
Undocumented |
| Variable | tab |
Undocumented |
| Variable | _lgr |
Undocumented |
Converts a text representation of a tuple to a tuple of the specified type.
| Parameters | |
x:str | str string to convert to a tuple |
t:type[ | type[type] | Iterable[type]
Type of tuple to convert to. If t is not an iterable, then will
convert to a homogeneous tuple, otherwise will convert each element
of x to the corresponding element of t |