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 details)
Built Distribution
File details
Details for the file wideprint-0.1.1.tar.gz
.
File metadata
- Download URL: wideprint-0.1.1.tar.gz
- Upload date:
- Size: 3.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a22eebf7635f848605a1451dc5fd68ef38d9bdc8a78cbe389dbb1ecd24ba9df3 |
|
MD5 | 1533741eb737244a7239020b3e1613ed |
|
BLAKE2b-256 | a9ba874fcfdb4366ee8fa8f19dcf7d573350bec270b9e57e9a0e411fca23f2b0 |
File details
Details for the file wideprint-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: wideprint-0.1.1-py3-none-any.whl
- Upload date:
- Size: 2.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7d3450f38253b5af80973819ddbbe4168cb071ba52a9797f431839353fbc664d |
|
MD5 | 26536bc7669ed646921bc61d9ee7138a |
|
BLAKE2b-256 | f2b7863bd020f376c2d3a6eae6a696d822f5e5ac080198304739b877f43dd13e |