skip to navigation
skip to content

pyprinter 1.2.2

Print Everything!

Printing everything for everyone!

Project page:


The perfect printer for Python 3!

Just create a printer instance, pick your favorite colors and get to work!
py-printer supports all ANSI colors, and crazy encodings!
It also calculates the console width in order to wrap words properly.
And! It even works on a standard Windows console using the awesome ANSICON library.

import pyprinter

printer = pyprinter.get_printer()

# Write a simple line.
printer.write_line(printer.YELLOW + 'Hello World!')

# Or use the color functions (nested coloring is also supported).
printer.write_line(printer.yellow('Hello World!'))
# Use indentations.
    printer.write_line(printer.GREEN + 'Hello Again!')
# Write aligned values.
printer.write_aligned('Awesomeness', 'Check!')
# Write titles.
# Print human-readable file sizes.
from pyprinter import FileSize

# Use tables.
from pyprinter import Table

Table('Test', [[1, 2, 3],['a', 'b', 'c']]).pretty_print()
# Integrate friendly progress bars.
import time
from pyprinter import ProgressBar

progress = ProgressBar(10)
for i in range(10):
# Use word-wrapping or colors only.
printer = pyprinter.get_printer(colors=False, width_limit=True)
printer.write_line(printer.YELLOW + 'Hello World!')


pip install pyprinter

File Type Py Version Uploaded on Size
pyprinter-1.2.2-py3-none-any.whl (md5) Python Wheel py3 2017-12-30 70KB
pyprinter-1.2.2.tar.gz (md5) Source 2017-12-30 61KB