Skip to content

Instantly share code, notes, and snippets.

@rene-d
rene-d / colors.py
Last active October 30, 2024 22:43
ANSI color codes in Python
# SGR color constants
# rene-d 2018
class Colors:
""" ANSI color codes """
BLACK = "\033[0;30m"
RED = "\033[0;31m"
GREEN = "\033[0;32m"
BROWN = "\033[0;33m"
BLUE = "\033[0;34m"