Skip to main content

Print a collection of short strings into columns

Project description

Wideprint

PyPI - Version PyPI - Python Version

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


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)

Uploaded Source

Built Distribution

wideprint-0.1.0-py3-none-any.whl (2.4 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