Skip to content

Commit

Permalink
Add a sample script to print all colors
Browse files Browse the repository at this point in the history
  • Loading branch information
borntyping committed Jun 14, 2021
1 parent 59519e4 commit 4dc03c6
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions doc/colors.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
"""
Print every color code supported by colorlog in it's own color.
"""

from colorlog import escape_codes

if __name__ == "__main__":
for key, value in escape_codes.items():
print(value, key, escape_codes["reset"])

0 comments on commit 4dc03c6

Please sign in to comment.