Skip to main content

A lightweight Python library to automatically generate clean __repr__ methods for all your classes. Zero setup, zero overhead.

Project description

Custom Repr

A simple decorator to add pretty representation to Python 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


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-0.2.3.tar.gz (2.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

custom_repr-0.2.3-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

Details for the file custom_repr-0.2.3.tar.gz.

File metadata

  • Download URL: custom_repr-0.2.3.tar.gz
  • Upload date:
  • Size: 2.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for custom_repr-0.2.3.tar.gz
Algorithm Hash digest
SHA256 e13ad5195bd24090e7cfe8e093eb9165b6a858326af6342c6e2aa1b8c82a3df2
MD5 d77c8d99c2d60457f53a15e15667d8b7
BLAKE2b-256 1d9fb46f92e24c00191b93f3420f5cced02e7e96d526a3596826256207f74954

See more details on using hashes here.

File details

Details for the file custom_repr-0.2.3-py3-none-any.whl.

File metadata

  • Download URL: custom_repr-0.2.3-py3-none-any.whl
  • Upload date:
  • Size: 3.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for custom_repr-0.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 3caf58ba6a0494e6559f6e5c54d1e1912327bb87b7dcfdc640bf45dc394983a2
MD5 586bceeb32a0aab1be92ce03c961d4d6
BLAKE2b-256 8d537f5632d56cebf0d0526d5eedb326190fe96550c697af8d24bac32e2baa62

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page