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.2.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.2.tar.gz.
File metadata
- Download URL: custom_repr-1.2.2.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 |
a252f3f053c2246afeaa7073a66f057f69f4acee0d6ef53ab464eed25e598023
|
|
| MD5 |
542c9548299a54e651f7b89ce87aa0f7
|
|
| BLAKE2b-256 |
b2c91a429042c05272ea2d84c67601abda236aa1325ccf5d2f4f30c50862d5da
|
File details
Details for the file custom_repr-1.2.2-py3-none-any.whl.
File metadata
- Download URL: custom_repr-1.2.2-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 |
444ca56603eca48d188e6cbdc9c8a875cd5076f862348c6f0062c065aa9d1573
|
|
| MD5 |
2069527d273a86b9dac3fe673f802884
|
|
| BLAKE2b-256 |
444de7275c55814ba845334c322992f83f82c9241c1a1cb0852ee19c1ad30a2d
|