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.4.tar.gz (3.3 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.4-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: custom_repr-0.2.4.tar.gz
  • Upload date:
  • Size: 3.3 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.4.tar.gz
Algorithm Hash digest
SHA256 2d687eef79e06708c7741f6146ae48477785ee1a5f5fad0d15014277b9d6b8eb
MD5 ae03cd826083903cd9a1e5a6bf969333
BLAKE2b-256 eff20c4e3ff65bee2c89704244db68fcb3225fdb5aa363e89f17e6f9aa2d1aa2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: custom_repr-0.2.4-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

Hashes for custom_repr-0.2.4-py3-none-any.whl
Algorithm Hash digest
SHA256 32878accd9072dad636105a3f06c629e9f0fc3df872e9955d7bef196edcdf140
MD5 e2339c810da1fca0a84bee5de5080750
BLAKE2b-256 6a05804c0226dc8f4fd41cc40f3d117158e10c43a595440a05eeb105d7381032

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