I am using pretty table to generate tables output.
Is it possible to generate in terms of colors. If failed it should display in red and its ok it should display in green.
Code:
from prettytable import PrettyTable
a = "ok"
b = "Failed"
t = PrettyTable(['Input', 'status'])
if a == "ok":
t.add_row(['FAN', a])
else:
t.add_row(['FAN', b])
print t