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.0.tar.gz
(3.4 kB
view hashes)
Built Distribution
Close
Hashes for wideprint-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 87a5befc934ca69fd41d4a79b582ebddf40969d2ac502efb363f35e69dfb8bb6 |
|
MD5 | b9d4acd6bc4ebd37c5a9d5c4f94ebe79 |
|
BLAKE2b-256 | a546d8a0ea9ef9d3617c1a6d58092c693f6e6aa32eed5d6880e7636f48d6ae67 |