Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

printb-1.0.2.tar.gz (3.3 kB view hashes)

Uploaded Source

Built Distribution

printb-1.0.2-py3-none-any.whl (3.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page