Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kanghyojun/pyleftpad
Python version left pad
https://github.com/kanghyojun/pyleftpad
leftpad library python utility
Last synced: 24 days ago
JSON representation
Python version left pad
- Host: GitHub
- URL: https://github.com/kanghyojun/pyleftpad
- Owner: kanghyojun
- License: gpl-3.0
- Created: 2018-08-13T14:36:23.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-08-17T17:09:40.000Z (over 6 years ago)
- Last Synced: 2024-10-08T09:23:42.899Z (3 months ago)
- Topics: leftpad, library, python, utility
- Language: Python
- Size: 28.3 KB
- Stars: 2
- Watchers: 0
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGES.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
pyleftpad
=========[![PyPI version](https://badge.fury.io/py/pyleftpad.svg)](https://badge.fury.io/py/pyleftpad)
[![Build Status](https://travis-ci.org/admire93/pyleftpad.svg?branch=master)](https://travis-ci.org/admire93/pyleftpad)
[![Documentation Status](https://readthedocs.org/projects/pyleftpad/badge/?version=latest)](https://pyleftpad.readthedocs.io/en/latest/?badge=latest)Python version of [left pad][leftpad].
[leftpad]: https://www.npmjs.com/package/left-pad
## Install
```bash
$ pip install pyleftpad
```## Usage
There are two way to use pyleftpad. First of all, you can use `leftpad()`
function from `leftpad` module in your Python script.```python
from leftpad import leftpaddef main():
print(leftpad('hello world', 40))main()
```Second of all, you can use directly `leftpad` command in your shell.
```bash
$ leftpad -l 40 "hello world"
```