Skip to main content

A simple decorator for customizing Python object representations

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-0.2.1.tar.gz (2.9 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-0.2.1-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for custom_repr-0.2.1.tar.gz
Algorithm Hash digest
SHA256 8f0496db4c425dae21400b2827cbfbddf8b6e1206b161a30f742d07d2caf097b
MD5 73b4a6df72d584c49ced53b3dfd9a38a
BLAKE2b-256 0257cc7690df35346ff62bdeae04f22558b84747f9cfb685b57005ad748ff164

See more details on using hashes here.

File details

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

File metadata

  • Download URL: custom_repr-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 3.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-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 45ed1831b8fbae060ce78a11870925fdf65742a82b7577f2b149bc492b2950b7
MD5 e3aab32801012b534505d7bbc5fa1b81
BLAKE2b-256 dbd7850035a3f4eefa79dea0b707ae63aa6bfc0e242115044800e38c992c54db

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