Skip to main content

Adds padding to the right or left of a given string

Project description

https://travis-ci.org/scisco/wordpad.svg?branch=master

Adds padding to the right or left of a given string

Installation

$ pip install wordpad

or:

$ python setup.py install

Tests

$ python setup.py test

Example

>>> from wordpad import pad
>>> pad('1', 3)
'001'
>>> pad('1', 3, direction='right')
'100'
>>> pad('his', 4, char='t')
'this'

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

wordpad-0.1.0.tar.gz (1.7 kB view hashes)

Uploaded Source

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