Skip to main content

gen-repr Build Status

Lightweight python library without any dependencies to automatically generate the __repr__ method for any class.

Getting started

Install this package throught pip

$ pip install gen-repr

After that you can import it in your program like this

from genrepr import gen_repr

Example

from genrepr import gen_repr

@gen_repr()
class Person(object):
    def __init__(self):
        self.first_name = u""
        self.age = 0
        self._hair = u"any color you like"

peter = Person()
peter.first_name = u"Peter"
peter.age = -1

repr(peter) # result: "<Person (first_name='Peter', age=-1)>:

Release files for gen-repr 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for gen-repr 0.2.0
File Size Uploaded
gen-repr-0.2.0.tar.gz 2.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for gen-repr 0.2.0
File Interpreter ABI Platform
gen_repr-0.2.0-py2-none-any.whl Python 2 none any Details

Total release size: 6.7 kB

Release files / gen-repr-0.2.0.tar.gz

Download URL gen-repr-0.2.0.tar.gz
Size 2.9 kB
Tags Source
SHA-256 checksum
How to use checksums
dd2206cc62a15e7522c0fcded6d3abcd5f1598f3b3c49dcfe01160584d4c4e96
BLAKE2b-256 checksum
How to use checksums
c60f5bad08ed391686e5eac91d8e67910fbf00c3aa85edfc4aab3a07d862e3d0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/2.7.16

Release files / gen_repr-0.2.0-py2-none-any.whl

Download URL gen_repr-0.2.0-py2-none-any.whl
Size 3.9 kB
Tags Python 2
SHA-256 checksum
How to use checksums
2d4a781bf53719d86a1ad9690432a504dabca40fe9f8b7e4b87628f4b90f48c0
BLAKE2b-256 checksum
How to use checksums
ad5172b860326880428a4a014d3a869b1952486c742600469ff447f7ff0f2cd1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/2.7.16

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page