Python decorator to automatically generate repr strings
Project description
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.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file easyrepr-0.4.0.tar.gz.
File metadata
- Download URL: easyrepr-0.4.0.tar.gz
- Upload date:
- Size: 7.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.8 CPython/3.8.12 Linux/5.11.0-1022-aws
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d593f6ac7918e67a183d8cf34570584916f670215464fb8a67f919baf9d32ab2
|
|
| MD5 |
a1d2cb31138cbbea881de1a70491f778
|
|
| BLAKE2b-256 |
0a2c6d079904e83b783231d63543d7c914b045295dc6f28894ea46833012db42
|
File details
Details for the file easyrepr-0.4.0-py3-none-any.whl.
File metadata
- Download URL: easyrepr-0.4.0-py3-none-any.whl
- Upload date:
- Size: 7.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.8 CPython/3.8.12 Linux/5.11.0-1022-aws
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
185ecaa1cca20881856ffd066c6c0b5c600872c5f9ba7de2cbffd24acea965cb
|
|
| MD5 |
6c6cbc9c237b2b71e62154394ffccab9
|
|
| BLAKE2b-256 |
5d1d736d361a31dacf869ea425e53e687573fb41485bed23d7ec4bb132a4b390
|