| Port variant | v14 |
| Summary | Measures number of terminal column cells (3.14) |
| Package version | 0.9.5 |
| Homepage | https://github.com/jquast/wcwidth |
| Keywords | python |
| Maintainer | Python Automaton |
| License | Not yet specified |
| Other variants | v15 |
| Ravenports | Buildsheet | History |
| Ravensource | Port Directory | History |
| Last modified | 23 NOV 2026, 05:55:02 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) |
python314:dev:std python-pip:single:v14 autoselect-python:single:std |
| Build and Runtime | python314:primary:std |
| main | mirror://PYPIWHL/ca/77/61587cff9534a911b3116009f42de1edb2fa12bbb7c45ca92c4a415993f1 |
| python-prompt-toolkit:v14 | Builds powerful interactive command lines (3.14) |
| python-xml2rfc:v14 | Request For Comment authoring with XML (3.14) |