Skip to main content

A library that pads strings to the left. Feel free to make it your main dependency for your project.

Project description

leftpad

leftpad is a Python library for padding the left of strings.

Installation

pip install leftpadx

Usage

from leftpad import leftpad

print(leftpad("epic", 100, "@"))

Expected output:

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@epic

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

leftpadx-0.0.1.tar.gz (2.4 kB view hashes)

Uploaded Source

Built Distribution

leftpadx-0.0.1-py3-none-any.whl (2.7 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