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