Print a collection of short strings into columns
Project description
Wideprint
Installation
pip install wideprint
Usage
def print_columns(data:Iterable, columns:int=3, sep:str=" ", alignment:Literal[">","<","^"]=">")
from wideprint import print_columns
print_columns(
data = ["aaaa","b","c","d","e","f","g","h","i","j","kkk","l","m","n","o"],
columns = 3,
sep = " ",
alignment = "<"
)
aaaa b c
d e f
g h i
j kkk l
m n o
License
wideprint
is distributed under the terms of the MIT license.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
wideprint-0.1.1.tar.gz
(3.7 kB
view hashes)
Built Distribution
Close
Hashes for wideprint-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7d3450f38253b5af80973819ddbbe4168cb071ba52a9797f431839353fbc664d |
|
MD5 | 26536bc7669ed646921bc61d9ee7138a |
|
BLAKE2b-256 | f2b7863bd020f376c2d3a6eae6a696d822f5e5ac080198304739b877f43dd13e |