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 details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file wideprint-0.1.0.tar.gz.
File metadata
- Download URL: wideprint-0.1.0.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
20e1cc647ff47f69a29d1ebd9c240749b121b8c9870e9f4069e529da11f92e08
|
|
| MD5 |
87ed3d5a123178707286aedab3dc789c
|
|
| BLAKE2b-256 |
05ea35929d8b5808112d145edef99069ca7b927dbaafac3501c94a2c6c95690a
|
File details
Details for the file wideprint-0.1.0-py3-none-any.whl.
File metadata
- Download URL: wideprint-0.1.0-py3-none-any.whl
- Upload date:
- Size: 2.4 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 |
87a5befc934ca69fd41d4a79b582ebddf40969d2ac502efb363f35e69dfb8bb6
|
|
| MD5 |
b9d4acd6bc4ebd37c5a9d5c4f94ebe79
|
|
| BLAKE2b-256 |
a546d8a0ea9ef9d3617c1a6d58092c693f6e6aa32eed5d6880e7636f48d6ae67
|