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

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

leftpadx-0.0.1-py3-none-any.whl (2.7 kB view details)

Uploaded Python 3

File details

Details for the file leftpadx-0.0.1.tar.gz.

File metadata

  • Download URL: leftpadx-0.0.1.tar.gz
  • Upload date:
  • Size: 2.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.7

File hashes

Hashes for leftpadx-0.0.1.tar.gz
Algorithm Hash digest
SHA256 84f421e3ff2e8cde20526a1af98119a36a50482845cac2bc26d3e955dc3ade87
MD5 1bfaba39f27331eee5fb9b12e2258d59
BLAKE2b-256 7ad9c2cf76bdf9248440defed8c52b7cb770b0f9069e630d6dc3ceb8efd00bc8

See more details on using hashes here.

File details

Details for the file leftpadx-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: leftpadx-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 2.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.7

File hashes

Hashes for leftpadx-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 512084949099fab88042be250a6da55dcf933ac3af8feffddefd52dace66160c
MD5 a5cd21bb781596b57b349a8cfc00b1fe
BLAKE2b-256 37ca41e9d0964799b00ad00c6254e6c0bc1a26c604456ab659e13cf91e5bdd81

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page