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

Uploaded Python 3

File details

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

File metadata

  • Download URL: custom_repr-1.0.1.tar.gz
  • Upload date:
  • Size: 3.1 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.1.tar.gz
Algorithm Hash digest
SHA256 d5ed701916ecbed87543cac66bacc2e9c0e21bb57e61b6e4fb3a2e73b994a077
MD5 6afc3edb72af543102346e4deadce342
BLAKE2b-256 f931e5a08b5f43b4065cd5bf8acf57e88ada9508b1fca57f8050d026023e4039

See more details on using hashes here.

File details

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

File metadata

  • Download URL: custom_repr-1.0.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5c119f3069df64472d784e5aa1ad45c95ac1ebfda9229587892b703e34fca7d6
MD5 dfa75f250d997dd05e0fc69b3e4b2d98
BLAKE2b-256 bc3594993f931265f74eb0dd48904905fd32acdbc6c4df566b77e2daf6adf3bc

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