... rich.

Print statements are nice but you can make them (literally) richer than just plain text. The rich package helps you do just that.

Episode 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? Feel free to mention it here.

If you want to be kept up to date, consider getting the newsletter.