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.2.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.2-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: custom_repr-1.2.2.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.2.tar.gz
Algorithm Hash digest
SHA256 a252f3f053c2246afeaa7073a66f057f69f4acee0d6ef53ab464eed25e598023
MD5 542c9548299a54e651f7b89ce87aa0f7
BLAKE2b-256 b2c91a429042c05272ea2d84c67601abda236aa1325ccf5d2f4f30c50862d5da

See more details on using hashes here.

File details

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

File metadata

  • Download URL: custom_repr-1.2.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 444ca56603eca48d188e6cbdc9c8a875cd5076f862348c6f0062c065aa9d1573
MD5 2069527d273a86b9dac3fe673f802884
BLAKE2b-256 444de7275c55814ba845334c322992f83f82c9241c1a1cb0852ee19c1ad30a2d

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