from enum import Enum [docs] class Role(Enum): Server = 'server' Client = 'client' ClientId = int # to identify client