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)
| File | Size | Uploaded | |
|---|---|---|---|
| easyrepr-0.4.0.tar.gz | 7.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| 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
|