Recursively listing the contents of a package?

jeanbigboute at gmail.com jeanbigboute at gmail.com
Fri Dec 25 19:47:28 EST 2015


On Friday, December 25, 2015 at 4:14:56 PM UTC-8, Steven D'Aprano wrote:
> On Sat, 26 Dec 2015 10:01 am, jeanbigboute at gmail.com wrote:
> 
> > As an occasional Python user, I'd like to be able to get for myself a
> > high-level overview of a package's capabilities.
> 
> Best way to do that is to read the package's documentation on the web.

I certainly do so.  Some packages are very well documented, others less so.
 
> 
> [...]
> > Is there a way to determine if a method/function/correct term has items
> > underneath it?
> > 
> > If such a thing exists, I think I could write the code to descend through
> > a package's functions/methods, make a list of nodes and edges, send it to
> > networkx, and create a graph of a package's capabilities.
> 
> Let's say you want to analyse package aardvark.

[ Detailed description]

> I think this more or less gives you the details you need to know to
> programmatically analyse a package.

This is very helpful, thank you for the time in laying out the path.  I will try to implement what you've described.  It will be a good way for me to sharpen my Python skills.

--- JBB



More information about the Python-list mailing list