NicePrinter

A simple Python project to generate nice prints


Keywords
print, shell
License
MIT
Install
pip install NicePrinter==1.0.3

Documentation

Nice Printer

What is Nice Printer?

Nice printer is a project to improve your python scripts presentations by printing nice outputs on your shell easily.

How to install?

This package is uploaded to pypa.io so you can install it running pip.

pip install niceprinter

Then in the file you want to use this package, you should import niceprinter.

from NicePrinter import *

And now you can use the functions available on API.

Screenshots of example.py output

https://i.imgur.com/j1Of5ix.png

https://i.imgur.com/uGMzMvK.png

https://i.imgur.com/jaLykwa.png

https://i.imgur.com/K4N2mK7.png

API

  • underline(string)
  • darkcyan(string)
  • purple(string)
  • yellow(string)
  • green(string)
  • cyan(string)
  • blue(string)
  • bold(string)
  • red(string)
  • colorsChars(string)
  • center(string)
  • hr(percentage = 75, sym = '-')
  • box(string, hsym = '-', vsym = '|')
  • bbox(string)
  • cbox(string, hsym = '-', vsym = '|')
  • cbbox(string)
  • title(string, percentage = 75, sym = '-')
  • listing(head, array, vsym = '|', hsym = '=', centered = False, boldHead = True)
  • table(array, vsym = '|', hsym = '=', centered = False, boldHead = True