def readonly(value):
    return property(lambda self: value)


class ROType(type):
    CLASS_PROPERTY = readonly(1)


class Foo(object, metaclass=ROType):
    pass
print(Foo.CLASS_PROPERTY)
Foo.CLASS_PROPERTY = 2
Class-level read-only properties in Python