| Port variant | v13 |
| Summary | Measures number of terminal column cells (3.13) |
| Package version | 0.9.4 |
| Homepage | https://github.com/jquast/wcwidth |
| Keywords | python |
| Maintainer | Python Automaton |
| License | Not yet specified |
| Other variants | v14 |
| Ravenports | Buildsheet | History |
| Ravensource | Port Directory | History |
| Last modified | 25 OCT 2026, 15:33:45 UTC |
| Port created | 22 APR 2020, 01:22:25 UTC |
| single | |pypi_downloads| |codecov| |license| ============ Introduction ============ This Python and C11 library is mainly for CLI/TUI programs that carefully produce output for Terminals. This page is about the Python library, see libwcwidth_ for the portable C11 library. Installation ------------ The stable version of this package is maintained on pypi, install or upgrade, using pip:: pip install --upgrade wcwidth Problem ------- All Python string-formatting functions, `textwrap.wrap()`_, `str.ljust()`_, `str.rjust()`_, and `str.center()`_ **incorrectly** measure the displayed width of a string as equal to the number of their codepoints. Some examples of **incorrect results**: :alt: MIT License |
| Build (only) |
python313:dev:std python-pip:single:v13 autoselect-python:single:std |
| Build and Runtime | python313:primary:std |
| main | mirror://PYPIWHL/6f/0c/309b1813b230d1dbbd6f2c2ab2bb21ef68992358977605d9ef289bbfedcc |
| python-prompt-toolkit:v13 | Builds powerful interactive command lines (3.13) |
| python-xml2rfc:v13 | Request For Comment authoring with XML (3.13) |