head.daveops.net

Snippets for yer computer needs

Python enums

from enum import Enum
class Color(Enum):
    red = 1
    green = 2
    blue = 3