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.1.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.1.tar.gz.
File metadata
- Download URL: custom_repr-1.2.1.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 |
091045635ae521bed3c69b3764af11d0d96f8c91ccbfa7943ce660dea9da2380
|
|
| MD5 |
8d3fb86db249a364830c73315d3066f2
|
|
| BLAKE2b-256 |
9cdb839df33fa05003cee82fb1a114dbfd81e6c2bb2948255d0dbfdccd23aa4b
|
File details
Details for the file custom_repr-1.2.1-py3-none-any.whl.
File metadata
- Download URL: custom_repr-1.2.1-py3-none-any.whl
- Upload date:
- Size: 4.3 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 |
df422b0d4b6e4e7a19968f8f81e53e528e2f38201b0650247f5d22fa2efbc5fc
|
|
| MD5 |
412756f4169c4f8a314e2c5a2a09e3de
|
|
| BLAKE2b-256 |
4da80e89c7315bd6d8d3f7c3b7267876b403b928f338913f35ebfe2b192ccd4b
|