titus.util.case

titus.util.case(clazz)[source]

Decoration to make a “case class” in Python.

When applied to a class, read the parameters of the __init__ and turn them into class fields and show them in the __repr__ representation.