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>
Release files for reprtools 0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| reprtools-0.1.tar.gz | 1.5 kB | Details |
Release files / reprtools-0.1.tar.gz
| Download URL | reprtools-0.1.tar.gz |
|---|---|
| Size | 1.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
36af2a280521375d1715760f7175066d45a02d739776df35e5aa1741bbde6b2c
|
|
BLAKE2b-256 checksum How to use checksums |
9840188ca28ddaa99e26dfcf7f6ae88034732783162a3312c7ca3f76ab6887ad
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |