serhii.net

In the middle of the desert you can say anything you want

08 Feb 2024

rich inspect

from rich import inspect
# I use this often
inspect(thing)

# for more details
inspect(thing,all=True)

# (for the rest, there's `inspect(inspect)`)

# BUT
inspect(thing,help=True)
# is the hidden gem that made me write this post

The latter shows the help provided by the library, and sometimes (e.g. pandas) it’s excellent.

(Ran the vanilla python inspect by error and have seen the help and it was awesome, so I dug deeper.)

Nel mezzo del deserto posso dire tutto quello che voglio.
comments powered by Disqus