This is a small wrapper around the python-bidi
It has the following api:
printb.printb(*objects, sep=' ', end='\n', file=sys.stdout, flush=False)
Adds a wrapper for python built-in print If any one of the arguments passed via *objects
is a string, then swap it with
bidi.algorithm.get_display
printb.input([prompt])
Adds a wrapper for python built-in input, when a prompt string argument is passed then it is swapped before printing
See the test_bidi test file
pip3 install python-bidi
Then install this package:
pip3 install printb
. See package on pypi