Adds padding to the right or left of a given string
$ pip install wordpad
or:
$ python setup.py install
$ python setup.py test
>>> from wordpad import pad
>>> pad('1', 3)
'001'
>>> pad('1', 3, direction='right')
'100'
>>> pad('his', 4, char='t')
'this'