python-wcwidth
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
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)
PY313 ON Build using Python 3.13 PY314 OFF Build using Python 3.14
Package Dependencies by Type
Build (only) python313:dev:std
python-pip:single:v13
autoselect-python:single:std
Build and Runtime python313:primary:std
Download groups
main mirror://PYPIWHL/6f/0c/309b1813b230d1dbbd6f2c2ab2bb21ef68992358977605d9ef289bbfedcc
Distribution File Information
901eace6d2dd25ebb917d0ce5db18e5c537e1504c905cf32f0d006c12098b05d 301806 python-src/wcwidth-0.9.4-py3-none-any.whl
Ports that require python-wcwidth:v13
python-prompt-toolkit:v13 Builds powerful interactive command lines (3.13)
python-xml2rfc:v13 Request For Comment authoring with XML (3.13)