Source

reprtools /

Filename Size Date modified Message
24 B
46 B
28 B
337 B
817 B
532 B
163 B

reprtools

i created reprtools, because i was annoyed by how i have to write __repr__ in my simple classes

usage:

   from reprtools import FormatRepr

   class User(object):
       __repr__ = FormatRepr("<User {name}>")

       def __init__(self, name):
           self.name = name



>>> User('test')
<User test>