OrderedEnum

class OrderedEnum(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)

An OrderedEnum is an enum that allows for comparisons with <, >, <=, and >= based on entries’ values.