Module dependencies

Bob Ippolito bob at redivi.com
Fri Mar 5 23:05:56 CET 2004


On 2004-03-05 16:29:20 -0500, Lee Harr <missive at frontiernet.net> said:

> On 2004-03-05, Nicolas Fleury <nid_oizo at yahoo.com_remove_the_> wrote:
>> Hi everyone,
>> I was wondering, it there any common application to show direct and 
>> indirect dependencies of a module?  Something with html output like 
>> pydoc?
>> Thx and Regards,
>> Nicolas
> 
> 
> I suppose egrep will do an ok job for direct dependencies ...
> 
> egrep "^import" foo.py

There's also the modulefinder module, which scans bytecodes for import 
statements, but I don't believe it has any sort of nice html output.

-bob




More information about the Python-list mailing list