Skip to content

color_print

print_blue(message)

Print out blue colored text.

Parameters:

Name Type Description Default
message str

Text.

required
Source code in koolsla/color_print.py
44
45
46
47
48
49
50
def print_blue(message: str):
    """Print out blue colored text.
    Args:
      message (str): Text.
    """

    print(colored(message, blue))

print_dish(name, dish_id, color)

Print out dish name and id with given color.

Parameters:

Name Type Description Default
name str

Dish name.

required
dish_id int

ID.

required
color str

Color name.

required
Source code in koolsla/color_print.py
53
54
55
56
57
58
59
60
61
def print_dish(name: str, dish_id: int, color: str):
    """Print out dish name and id with given color.
    Args:
      name (str): Dish name.
      dish_id (int): ID.
      color (str): Color name.
    """

    print(colored('* Name : ' + name + ' - ID : ' + str(dish_id), color))

print_green(message)

Print out green colored text.

Parameters:

Name Type Description Default
message str

Text.

required
Source code in koolsla/color_print.py
26
27
28
29
30
31
32
def print_green(message: str):
    """Print out green colored text.
    Args:
      message (str): Text.
    """

    print(colored(message, green))

print_red(message)

Print out red colored text.

Parameters:

Name Type Description Default
message str

Text.

required
Source code in koolsla/color_print.py
17
18
19
20
21
22
23
def print_red(message: str):
    """Print out red colored text.
    Args:
      message (str): Text.
    """

    print(colored(message, red))

print_yellow(message)

Print out yellow colored text.

Parameters:

Name Type Description Default
message str

Text.

required
Source code in koolsla/color_print.py
35
36
37
38
39
40
41
def print_yellow(message: str):
    """Print out yellow colored text.
    Args:
      message (str): Text.
    """

    print(colored(message, yellow))