Skip to content
Print nice outputs on your shell easily using NicePrinter project.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src/NicePrinter
.gitignore
LICENSE
README.rst
example.py
setup.py

README.rst

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
You can’t perform that action at this time.