Skip to main content

extended print

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for extprint, version 0.1.0
Filename, size File type Python version Upload date Hashes
Filename, size extprint-0.1.0-py3-none-any.whl (3.9 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size extprint-0.1.0.tar.gz (2.4 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page