Skip to content

Commit 4dc03c6

Browse files
committed
Add a sample script to print all colors
1 parent 59519e4 commit 4dc03c6

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

doc/colors.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
"""
2+
Print every color code supported by colorlog in it's own color.
3+
"""
4+
5+
from colorlog import escape_codes
6+
7+
if __name__ == "__main__":
8+
for key, value in escape_codes.items():
9+
print(value, key, escape_codes["reset"])

0 commit comments

Comments
 (0)