A lightweight Python library to automatically generate clean __repr__ methods for all your user-declared classes.
Project description
Custom Repr
A lightweight Python library to automatically generate clean repr methods for all your user-declared classes.
Installation
pip install custom-repr
Usage
import custom_repr
class Person:
def __init__(self, name, age):
self.name = name
self.age = age
person = Person("John", 30)
print(person) # Person(name: "John", age: 30)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
custom_repr-1.1.0.tar.gz
(3.2 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file custom_repr-1.1.0.tar.gz.
File metadata
- Download URL: custom_repr-1.1.0.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c1c69d5f64c235a7c6ca199a4a3ca5168e42a89615780316a26740b818bef46b
|
|
| MD5 |
9c6a50c2c408b21bd69d22c95bf7f10e
|
|
| BLAKE2b-256 |
f1a372cb89c6bf8597d593511992e4db18e7a5d5f8fa233e2747ec982a7cb505
|
File details
Details for the file custom_repr-1.1.0-py3-none-any.whl.
File metadata
- Download URL: custom_repr-1.1.0-py3-none-any.whl
- Upload date:
- Size: 3.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8aa8f8a3d27ff2aaae051e59cdcf8b24cb4c1f7465dce25902c01b5be767b82d
|
|
| MD5 |
fb152a2cc166780b0535df6d9f194417
|
|
| BLAKE2b-256 |
4862f85d38388a24d31b79e8d30707abf6f7b76f9ef738f933f4ea67b6ccda4a
|