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.2.1.tar.gz (3.8 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.2.1-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

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

File metadata

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

Hashes for custom_repr-1.2.1.tar.gz
Algorithm Hash digest
SHA256 091045635ae521bed3c69b3764af11d0d96f8c91ccbfa7943ce660dea9da2380
MD5 8d3fb86db249a364830c73315d3066f2
BLAKE2b-256 9cdb839df33fa05003cee82fb1a114dbfd81e6c2bb2948255d0dbfdccd23aa4b

See more details on using hashes here.

File details

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

File metadata

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

Hashes for custom_repr-1.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 df422b0d4b6e4e7a19968f8f81e53e528e2f38201b0650247f5d22fa2efbc5fc
MD5 412756f4169c4f8a314e2c5a2a09e3de
BLAKE2b-256 4da80e89c7315bd6d8d3f7c3b7267876b403b928f338913f35ebfe2b192ccd4b

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