Skip to main content
PyPI CircleCI Read the Docs https://img.shields.io/badge/code%20style-black-000000.svg

Python decorator to automatically generate repr strings

Example

>>> from easyrepr import easyrepr
...
>>> class UseEasyRepr:
...     def __init__(self, foo, bar):
...         self.foo = foo
...         self.bar = bar
...
...     @easyrepr
...     def __repr__(self):
...         ...
...
>>> x = UseEasyRepr(1, 2)
>>> repr(x)
'UseEasyRepr(foo=1, bar=2)'

Installation

Easyrepr is available on PyPI, so the easiest method of installation is via pip.

$ pip install easyrepr

For more installation options, see the Installation section in the User Guide.

Documentation

For full documentation, check out easyrepr on Read the Docs.

Contributing

If you’re interesting in contributing to easyrepr, or just want to learn more about how the project is built or structured, please read our CONTRIBUTING file.

License

The MIT license applies to all files in the easyrepr repository and source distribution. See the LICENSE file for more info.

Metadata

Release files for easyrepr 0.4.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 easyrepr 0.4.0
File Size Uploaded
easyrepr-0.4.0.tar.gz 7.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for easyrepr 0.4.0
File Interpreter ABI Platform
easyrepr-0.4.0-py3-none-any.whl Python 3 none any Details

Total release size: 14.9 kB

Release files / easyrepr-0.4.0.tar.gz

Download URL easyrepr-0.4.0.tar.gz
Size 7.1 kB
Tags Source
SHA-256 checksum
How to use checksums
d593f6ac7918e67a183d8cf34570584916f670215464fb8a67f919baf9d32ab2
BLAKE2b-256 checksum
How to use checksums
0a2c6d079904e83b783231d63543d7c914b045295dc6f28894ea46833012db42
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.8 CPython/3.8.12 Linux/5.11.0-1022-aws

Release files / easyrepr-0.4.0-py3-none-any.whl

Download URL easyrepr-0.4.0-py3-none-any.whl
Size 7.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
185ecaa1cca20881856ffd066c6c0b5c600872c5f9ba7de2cbffd24acea965cb
BLAKE2b-256 checksum
How to use checksums
5d1d736d361a31dacf869ea425e53e687573fb41485bed23d7ec4bb132a4b390
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.8 CPython/3.8.12 Linux/5.11.0-1022-aws

Release history Release notifications | RSS feed

This release

0.4.0 This release

2 release files

0.3.1

2 release files

0.2.0

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