{"categories":[{"label":"Python Modules","url":"https://skillfed.io/packages/category/software-development-libraries-python-modules/11"}],"enrichment":{"capability":"cwcwidth provides fast Python bindings for POSIX wcwidth and wcswidth functions to compute the printable display width of Unicode characters and strings on terminals.","skillfed_tags":["unicode-handling","terminal-ui","performance-critical"],"use_cases":["Calculate display width of strings containing East Asian characters for terminal table formatting.","Align text output in CLI applications where mixed-width characters must be handled correctly.","Truncate or pad Unicode strings to fit within a specific terminal column width.","Build terminal UI libraries that need accurate character width calculations for layout.","Validate or measure string display length in text processing pipelines."],"what_it_does":"cwcwidth is a C-based Python library that calculates how many columns a Unicode string will occupy when displayed in a terminal. It wraps POSIX wcwidth/wcswidth functions (or Markus Kuhn's implementation on non-POSIX systems) and provides the same API as the pure-Python wcwidth package, but with significantly faster execution through Cython compilation.\n\nThe library is useful when you need accurate terminal rendering calculations\u2014for instance, when aligning text in CLI tools, formatting table output, or handling mixed-width characters (like CJK ideographs that occupy two columns). It has no runtime dependencies and supports modern Python versions (3.11+) across major platforms with prebuilt wheels.","worth_installing":"Yes, if you need fast Unicode display-width calculations for terminal output. The library is actively maintained, has no security vulnerabilities, carries a permissive license, and offers substantial performance gains over pure-Python alternatives. Install friction is moderate but manageable with prebuilt wheels for all major platforms. Requires Python 3.11+."},"id":"cwcwidth","links":{"html":"https://skillfed.io/packages/cwcwidth","md":"https://skillfed.io/packages/cwcwidth.md","pypi":"https://pypi.org/project/cwcwidth/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2025-11-01","license_spdx":null,"license_treatment":"permissive","name":"cwcwidth","python_support":"supports_current","summary":"Python bindings for wc(s)width"},"popularity":{"monthly_downloads":575923,"position":5933,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"0.1.12"}
