Terminal print strings in columns
Reason this release was yanked:
Updated
Project description
column_print.py
A simple way to print short strings to a terminal in columns.
Unlike many similar utilities, it is NOT necessary for the strings to be in a list before printing. column_print can print any sequence of strings without knowing the length or number of strings in advance.
ColumnPrinter
A context manager class to print successive print statements in columns.
Example Usage:
from modules.column_print import ColumnPrinter
with ColumnPrinter(2, 80) as cp:
cp("Hello")
cp("World")
Prints:
Hello World
Goodbye Moon
print_list
A function to print a list of items in columns.
Example usage:
from modules.column_print import ColumnPrinter
with ColumnPrinter(2, 80) as cp:
cp.print_list(mylist)
Supported Platforms:
- Linux (Windows and macOS to be added)
- Python 3.6 or Later
Developing column_printer
To install column_printer, along with the tools you need to develop, test, and document, run the following in your virtualenv:
$ pip install -e .[dev]
or, using pipenv:
$ pipenv install -e .
See also TODO.txt
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
Built Distribution
Hashes for column_print-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fcd84b7fc22fef588c28b334a280698faed9baf83381116f23d0a7ccbd128fb1 |
|
MD5 | db1a67440243894d1eab2c30d602b582 |
|
BLAKE2b-256 | ecf2cfb4d83bfaeac40d999f0d4e838ef08b58d496c77152ab229375eacd5fdf |