extprint

extended print


License
MIT
Install
pip install extprint==0.0.1

Documentation

extprint

  • prints with color and background color

  • prints lists and their indexes line by line

Install

pip install extprint

Usage

from extprint import printlist,printcolored,set_default_print_options
list = [1,2,3,4,5,6,7,8,9,0]

printlist(list, seperator="----->", start_index=0, color="GREEN", bold=True)

printcolored("HELLO", color="BLUE", bold=True)

set_default_print_options(seperator="=",color="VIOLET",bold=True)

printlist(list)

printcolored("HI")
0 -----> 1
1 -----> 2
2 -----> 3
3 -----> 4
4 -----> 5
5 -----> 6
6 -----> 7
7 -----> 8
8 -----> 9
9 -----> 0
HELLO
1 = 1
2 = 2
3 = 3
4 = 4
5 = 5
6 = 6
7 = 7
8 = 8
9 = 9
10 = 0
HI

Available colors-options

from extprint import show_available_colors

show_available_colors()
  • BLACK

  • RED

  • GREEN

  • YELLOW

  • BLUE

  • VIOLET

  • BEIGE

  • WHITE

  • BOLD

  • ITALIC