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.
Metadata
Release files for print-columns 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| print_columns-1.0.0.tar.gz | 1.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| print_columns-1.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 3.5 kB
Release files / print_columns-1.0.0.tar.gz
| Download URL | print_columns-1.0.0.tar.gz |
|---|---|
| Size | 1.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fbcd2ccc92504666a534eb31bb41507d9b68947bae21b660ded5e610a08535d2
|
|
BLAKE2b-256 checksum How to use checksums |
34578e4350d5b9b339d92fd625add6182b7747db320084d212b11fc93d766f3a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.3
|
Release files / print_columns-1.0.0-py3-none-any.whl
| Download URL | print_columns-1.0.0-py3-none-any.whl |
|---|---|
| Size | 2.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6bb0347ab8920104c997ad73193fe645cfb7caddd2342925bfc5c9ee3fd6c2ea
|
|
BLAKE2b-256 checksum How to use checksums |
acdc31cf22dcf05430f366a6cd9d8357f1b3426792c7e9cd8dfc760a5eacbede
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.3
|