Terminal print strings in columns
Reason this release was yanked:
Updated to 0.0.2
Project description
column_print.py
Utilities to aid printing data to a terminal window in columns.
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
column_print-0.0.1.tar.gz
(20.2 kB
view hashes)
Built Distribution
Close
Hashes for column_print-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 03def4881efe70a1369cff6341dcf0ab39c339baf6f736811ec65bf02a5a5fa8 |
|
MD5 | c3344e84f3ee6d9753e4347c7a22e571 |
|
BLAKE2b-256 | 8c6d0776157cc88015520ccc16d7ccf2879cafcb140c2cb82d3bdd91feac494f |