https://github.com/pomponchik/printo
Print objects with data beautifully
https://github.com/pomponchik/printo
print serialization
Last synced: 12 months ago
JSON representation
Print objects with data beautifully
- Host: GitHub
- URL: https://github.com/pomponchik/printo
- Owner: pomponchik
- License: mit
- Created: 2024-06-06T09:10:46.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2025-03-02T11:34:45.000Z (over 1 year ago)
- Last Synced: 2025-06-05T14:05:37.185Z (about 1 year ago)
- Topics: print, serialization
- Language: Python
- Homepage:
- Size: 18.6 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# printo: print objects with data beautifully
[](https://pepy.tech/project/printo)
[](https://pepy.tech/project/printo)
[](https://codecov.io/gh/pomponchik/printo)
[](https://github.com/boyter/scc/)
[](https://hitsofcode.com/github/pomponchik/printo/view?branch=main)
[](https://github.com/pomponchik/printo/actions/workflows/tests_and_coverage.yml)
[](https://pypi.python.org/pypi/printo)
[](https://badge.fury.io/py/printo)
[](http://mypy-lang.org/)
[](https://github.com/astral-sh/ruff)
A mini library for writing beautiful [`__repr__`](https://docs.python.org/3/reference/datamodel.html#object.__repr__) for your classes.
Install it:
```bash
pip install printo
```
And use:
```python
from printo import descript_data_object
print(descript_data_object('MyClassName', (1, 2, 'some text'), {'variable_name': 1, 'second_variable_name': 'kek'}))
# > MyClassName(1, 2, 'some text', variable_name=1, second_variable_name='kek')
```