import pkg
dir(pkg)
such a statement in python won't show all the classes / functions / subpackages in the package pkg because some of them might be loaded just in time.So what is the best way to explore a package in python?
Have you try pydoc
pydoc package
Is the same as calling the help function but you can do it from the command line, and of course you can browse to a module, class or function level with the dot notation.
You can use help(pkg)
, or obviously doc if it's available.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With