Skip to main content

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


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.1.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.1.0-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: custom_repr-1.1.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.1.0.tar.gz
Algorithm Hash digest
SHA256 c1c69d5f64c235a7c6ca199a4a3ca5168e42a89615780316a26740b818bef46b
MD5 9c6a50c2c408b21bd69d22c95bf7f10e
BLAKE2b-256 f1a372cb89c6bf8597d593511992e4db18e7a5d5f8fa233e2747ec982a7cb505

See more details on using hashes here.

File details

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

File metadata

  • Download URL: custom_repr-1.1.0-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-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8aa8f8a3d27ff2aaae051e59cdcf8b24cb4c1f7465dce25902c01b5be767b82d
MD5 fb152a2cc166780b0535df6d9f194417
BLAKE2b-256 4862f85d38388a24d31b79e8d30707abf6f7b76f9ef738f933f4ea67b6ccda4a

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