rich:
introduction
Print statements are nice but you can make them (literally) richer than just plain text. The rich package helps you do just that.
Notes
You will need to install the tool before you can use it.
python -m pip install rich
Here's the code used in this video.
from rich import print
print(f"I wonder what this looks like 1 + 1 = {1 + 1}")
print({"a": [1, 2, 3], "b" : {"c" : 1}})
Feedback? See an issue? Something unclear? Feel free to mention it here.
If you want to be kept up to date, consider signing up for the newsletter.