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.2.0.tar.gz
(3.8 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.2.0.tar.gz.
File metadata
- Download URL: custom_repr-1.2.0.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
452526c9143ca8af48664cb3628ce49230971ab4dbc5425eb129a16bbe65f597
|
|
| MD5 |
2119e0bb72ea4744b344f94ea5fb4288
|
|
| BLAKE2b-256 |
56cb0cdeecc2259a45d6fcc46987b695a17faaef32857f1de995816bd3b566c4
|
File details
Details for the file custom_repr-1.2.0-py3-none-any.whl.
File metadata
- Download URL: custom_repr-1.2.0-py3-none-any.whl
- Upload date:
- Size: 4.2 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 |
53fd5e181f14f4d589dfc996d56e6705e928abacefd9942a245dc1c3ccc1fefe
|
|
| MD5 |
42fbe2bfa50708f9211edb19ce76be70
|
|
| BLAKE2b-256 |
6a82f25b5b8e5bd208026f6b3edc25be78323f3ae54e06b43f3966c59af0e8b9
|