Python Bidi layout wrapping the Rust crate unicode-bidi
Overall
score
93%
Base direction override (force LTR or RTL)
Import get_display
0%
0%
Use base_dir parameter
100%
100%
Map LTR correctly
100%
100%
Map RTL correctly
100%
100%
Call get_display properly
100%
100%
Text display conversion with get_display()
Uses get_display()
100%
37%
Handles str input
100%
100%
Handles bytes input
0%
25%
Preserves input type
0%
30%
Encoding parameter usage
100%
100%
Internal storage structure with embedding levels and run tracking
get_base_level usage
80%
100%
Algorithm module access
100%
100%
Storage initialization
100%
100%
Explicit level processing
100%
100%
Character data extraction
100%
100%
Base direction mapping
100%
100%
Mixed script handling (Hebrew/Arabic with Latin text)
Uses get_display function
100%
100%
Correct function invocation
100%
100%
String input handling
100%
100%
No manual reordering
100%
100%
Line and paragraph handling with proper boundary level resets
Uses get_display function
100%
100%
Paragraph-level processing
100%
100%
Preserves paragraph structure
100%
100%
Handles automatic direction
66%
100%
Correct output format
100%
100%
Dual implementation architecture (Python V5 vs Rust unicode-bidi)
Import Rust implementation
100%
100%
Import Python implementation
100%
100%
Call both implementations
100%
100%
Return dual outputs
100%
100%
Test upper_is_rtl support
100%
100%
Timing measurement
100%
100%
Implementation identification
100%
100%
Multi-encoding support (str/bytes with UTF-8, CP1255, etc.)
Uses get_display()
50%
100%
Bytes input handling
0%
100%
Encoding parameter usage
0%
100%
Bytes output preservation
40%
100%
Multiple encodings support
0%
100%
Base direction detection with get_base_level()
Uses get_base_level()
100%
100%
Correct return mapping
100%
100%
Batch analysis implementation
100%
100%
Classification implementation
100%
100%
Debug mode with algorithm execution trace
Import python-bidi
100%
100%
Enable debug parameter
0%
100%
Enable upper_is_rtl parameter
100%
100%
Call get_display correctly
100%
100%
Return display text
100%
100%
Complex scenario handling (nested embeddings, mathematical expressions, quotations)
Uses get_display()
100%
75%
upper_is_rtl parameter
100%
100%
Mathematical expressions
100%
100%
Nested quotations
100%
100%
Explicit embeddings
100%
100%
Install with Tessl CLI
npx tessl i tessl/pypi-python-bidiTable of Contents