Skip to content

Instantly share code, notes, and snippets.

@rene-d
rene-d / colors.py
Last active May 8, 2025 13:49
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"