A simple package for printing text to the terminal in columns
Project description
A simple package for printing text to the terminal in columns
Example
from print_columns import print_columns
if __name__ == "__main__":
lorem_ipsum = "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."
value = 3
notes = "This is Lorem Ipsum. It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout."
print_columns(
string=[lorem_ipsum, str(value), notes],
column_widths=[50, 2, 50],
colors=["red", "green", "blue"],
)
See the examples/ folder for more.
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
print_columns-1.0.0.tar.gz
(1.6 kB
view details)
Built Distribution
File details
Details for the file print_columns-1.0.0.tar.gz
.
File metadata
- Download URL: print_columns-1.0.0.tar.gz
- Upload date:
- Size: 1.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fbcd2ccc92504666a534eb31bb41507d9b68947bae21b660ded5e610a08535d2 |
|
MD5 | b6aff0439a490d28ccea3dfe658e5b0f |
|
BLAKE2b-256 | 34578e4350d5b9b339d92fd625add6182b7747db320084d212b11fc93d766f3a |
File details
Details for the file print_columns-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: print_columns-1.0.0-py3-none-any.whl
- Upload date:
- Size: 2.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6bb0347ab8920104c997ad73193fe645cfb7caddd2342925bfc5c9ee3fd6c2ea |
|
MD5 | b52fcdd05c309da3695d5fff3d455e61 |
|
BLAKE2b-256 | acdc31cf22dcf05430f366a6cd9d8357f1b3426792c7e9cd8dfc760a5eacbede |