printb is a wrapper for print/input built-ins, that swaps string directions for BIDI languages.
Project description
the printb python module
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
Example usage
See the test_bidi test file
Installation
pip3 install python-bidi
Then install this package:
pip3 install printb
. See package on pypi
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file printb-1.0.2.tar.gz
.
File metadata
- Download URL: printb-1.0.2.tar.gz
- Upload date:
- Size: 3.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.1 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4416e92788dc3de1c9dd5bce1bca06f1af8f2360268ed5954b0a7141e7491e28 |
|
MD5 | e6ba4cd0b78697ad6a20082dd18298fd |
|
BLAKE2b-256 | 309f9efbd8d09980feea60e9b8e4433525718a4a433a31f72ef6efbc2f3bede3 |
File details
Details for the file printb-1.0.2-py3-none-any.whl
.
File metadata
- Download URL: printb-1.0.2-py3-none-any.whl
- Upload date:
- Size: 3.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.1 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 02d22becd5fba2d3a8d4ed40a055bfd5c8e9279c0ca37875d81cac933b0141b8 |
|
MD5 | 4404558587ac56b3ab9d9facfa8a6f07 |
|
BLAKE2b-256 | 981b32811963917376b65f9d2aa86d13300c866b4a6681d499f4fcd80c1a5587 |