python-wcwidth
Port variant v15
Summary Measures number of terminal column cells (3.15)
Package version 0.9.5
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 23 NOV 2026, 05:55:02 UTC
Port created 22 APR 2020, 01:22:25 UTC
Subpackage Descriptions
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
Configuration Switches (platform-specific settings discarded)
PY314 OFF Build using Python 3.14 PY315 ON Build using Python 3.15
Package Dependencies by Type
Build (only) python315:dev:std
python-pip:single:v15
autoselect-python:single:std
Build and Runtime python315:primary:std
Download groups
main mirror://PYPIWHL/ca/77/61587cff9534a911b3116009f42de1edb2fa12bbb7c45ca92c4a415993f1
Distribution File Information
ef205150ff317032d633de2d8ca26d03dc8d5ba6a00294f6acfd1d0cfe1365d6 329353 python-src/wcwidth-0.9.5-py3-none-any.whl
Ports that require python-wcwidth:v15
python-prompt-toolkit:v15 Builds powerful interactive command lines (3.15)
python-xml2rfc:v15 Request For Comment authoring with XML (3.15)