Print objects with data beautifully
Project description
printo: print objects with data beautifully
A mini library for writing beautiful __repr__
for your classes.
Install it:
pip install printo
And use:
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")
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
printo-0.0.2.tar.gz
(3.9 kB
view hashes)
Built Distribution
printo-0.0.2-py3-none-any.whl
(3.6 kB
view hashes)