-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathcolours.py
36 lines (27 loc) · 848 Bytes
/
colours.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
from termcolor import colored
class ColouredText(object):
""" Colourizing Text """
@staticmethod
def yellow(text):
return colored(text, 'yellow', attrs=['bold'])
@staticmethod
def green(text):
return colored(text, 'green', attrs=['bold'])
@staticmethod
def red(text):
return colored(text, 'red', attrs=['bold'])
@staticmethod
def cyan(text):
return colored(text, 'cyan', attrs=['bold'])
@staticmethod
def white(text):
return colored(text, 'white', attrs=['bold'])
@staticmethod
def magenta(text):
return colored(text, 'magenta', attrs=['bold'])
@staticmethod
def yellow(text):
return colored(text, 'yellow', attrs=['bold'])
@staticmethod
def blue(text):
return colored(text, 'blue', attrs=['bold'])