{"categories":[{"label":"Text Processing","url":"https://skillfed.io/packages/category/text-processing"}],"enrichment":{"capability":"Converts bidirectional text (mixed left-to-right and right-to-left scripts) into display order for rendering, with both Python and Rust implementations available.","skillfed_tags":["unicode-text","bidi-layout","text-rendering"],"use_cases":["Render mixed Hebrew and English text correctly in web applications or documents.","Process Arabic text in data pipelines where visual order is required for display.","Build text editors or terminal utilities that handle bidirectional scripts.","Convert stored Unicode text to display order before passing to rendering engines.","Debug bidirectional text layout issues with the debug flag to inspect Unicode levels.","Command-line text processing for files containing right-to-left scripts."],"what_it_does":"Python BiDi solves the problem of displaying bidirectional text\u2014text that mixes left-to-right scripts (like English) with right-to-left scripts (like Hebrew or Arabic). It implements the Unicode Bidirectional Algorithm to reorder characters into their correct visual display sequence. The package offers two implementations: a pure Python version (V5 of the algorithm) and a newer Rust-based wrapper around the unicode-bidi crate, which implements a higher version of the algorithm.\n\nYou use it by passing a string or bytes to `get_display()`, optionally specifying encoding, base direction, or debug output. It returns the text in display order, ready for rendering. The package also includes a command-line tool (`pybidi`) for processing text files or stdin. It has no runtime dependencies and supports Python 3.9 through 3.14, with precompiled wheels for most platforms.","worth_installing":"Yes. The package is actively maintained, has no known vulnerabilities, zero runtime dependencies, and solves a specific and well-defined problem in text rendering. Install it if you need to display bidirectional text; the LGPL license is standard for text-processing libraries and poses no barrier for most projects. The Rust implementation path offers better algorithm coverage for new code."},"id":"python-bidi","links":{"html":"https://skillfed.io/packages/python-bidi","md":"https://skillfed.io/packages/python-bidi.md","pypi":"https://pypi.org/project/python-bidi/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2026-06-30","license_spdx":null,"license_treatment":"copyleft","name":"python-bidi","python_support":"supports_current","summary":"Python Bidi layout wrapping the Rust crate unicode-bidi"},"popularity":{"monthly_downloads":11274418,"position":1402,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"0.6.11"}
