tessl install tessl/pypi-tabulate@0.9.0Pretty-print tabular data in Python with extensive formatting options and output format support.
Agent Success
Agent success rate when using this tile
69%
Improvement
Agent success rate improvement when using this tile compared to baseline
0.9x
Baseline
Agent success rate without this tile
77%
A utility that calculates the display width of text strings, accounting for wide characters and whitespace handling preferences.
@generates
def calculate_width(text: str) -> int:
"""
Calculate the display width of text based on current module configuration.
Args:
text: The text string to measure
Returns:
The calculated display width as an integer
"""
pass
def set_wide_chars_mode(enabled: bool) -> None:
"""
Configure whether wide characters (CJK) should be counted with double width.
Args:
enabled: True to enable wide character support, False to disable
"""
pass
def set_preserve_whitespace(enabled: bool) -> None:
"""
Configure whether leading and trailing whitespace should be preserved in calculations.
Args:
enabled: True to preserve whitespace, False to strip it
"""
pass
def get_wide_chars_mode() -> bool:
"""
Get the current wide character mode setting.
Returns:
True if wide character support is enabled, False otherwise
"""
pass
def get_preserve_whitespace() -> bool:
"""
Get the current whitespace preservation setting.
Returns:
True if whitespace preservation is enabled, False otherwise
"""
passProvides table formatting with configurable module-level settings for wide character support and whitespace handling.