Skip to main content

🦄 Left pad a string with Unicorns

Project description

Uni Pad

🦄 Left pad a string with Unicorns

Screenshot

Install

$ pip install unipad

Usage

import unipad

unipad.pad('yoginth', 10)
#=> 🦄🦄🦄yoginth

API

unipad.pad(input, length)

Pads input with unicorns on the left side if it's shorter than length. Padding unicorns are truncated if they exceed length.

input

Type: string

String to pad.

length

Type: number
Default: 0

Padding length.

License

MIT Yoginth

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

unipad-1.0.1.tar.gz (1.6 kB view details)

Uploaded Source

File details

Details for the file unipad-1.0.1.tar.gz.

File metadata

  • Download URL: unipad-1.0.1.tar.gz
  • Upload date:
  • Size: 1.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3

File hashes

Hashes for unipad-1.0.1.tar.gz
Algorithm Hash digest
SHA256 c051e59bc6abb337dae3052b0cda3bd8b034afac82372a8aa4e8b1fd9492424a
MD5 0ef9a05f9f36a723974421ee34cafe41
BLAKE2b-256 9e9f6c1704c2267475abfe4db0abde8c6028fd4dddd8ec1dbac76a8521fb320c

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