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-1.0.0.tar.gz (3.2 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-1.0.0-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for custom_repr-1.0.0.tar.gz
Algorithm Hash digest
SHA256 123362467578465d8dda79a70e7a64e1da9377c0e512c41b286a94a4442d5f91
MD5 272a7a20e6b87a5864782ff0500845fb
BLAKE2b-256 d4b3da3448daebd45fbdf21e1506f5580b542c69a90b37cbac66444af9af8955

See more details on using hashes here.

File details

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

File metadata

  • Download URL: custom_repr-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 3.6 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-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ff9a46220f965f42f31c2c70b8efbcdb79f033222870b0caa4fc04bab7d0b584
MD5 f6be38dd337d46e58ac99375993f1caf
BLAKE2b-256 da83506533fab9f8cbb970ac38c422468ba0d6466dc7203ceea7b9c84de9bfd8

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