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 details)

Uploaded Source

File details

Details for the file wordpad-0.1.0.tar.gz.

File metadata

  • Download URL: wordpad-0.1.0.tar.gz
  • Upload date:
  • Size: 1.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for wordpad-0.1.0.tar.gz
Algorithm Hash digest
SHA256 494fe24032a3c38d32a578ab3e3657bf99cda2e1a604959ddd0d5b19ea9e6535
MD5 8d5b610f1c2394a52154834d0bc6bcd8
BLAKE2b-256 1bff3bfc5a58774cd0a11f1ce23311b8651a2c9f430ee5252a8b5617c3de8698

See more details on using hashes here.

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