Most viewed recipes tagged "dependecies"http://code.activestate.com/recipes/tags/dependecies/views/2010-05-07T11:29:03-07:00ActiveState Code RecipesCreate module dependency graph (Python)
2010-05-07T11:29:03-07:00Noufal Ibrahimhttp://code.activestate.com/recipes/users/4173873/http://code.activestate.com/recipes/577222-create-module-dependency-graph/
<p style="color: grey">
Python
recipe 577222
by <a href="/recipes/users/4173873/">Noufal Ibrahim</a>
(<a href="/recipes/tags/dependecies/">dependecies</a>, <a href="/recipes/tags/graphs/">graphs</a>, <a href="/recipes/tags/utilities/">utilities</a>).
</p>
<p>The following snippet will dump the module dependencies in a format that can be interpreted by the dot program distributed along with graphviz. You can use it like below to see the dependency graph for the asynchat module for example. (the program is saved as grapher.py)</p>
<pre class="prettyprint"><code>python grapher.py asynchat | dot -Tpng | display
</code></pre>
<p>A screenshot is available here <a href="http://twitpic.com/1lqnmh" rel="nofollow">http://twitpic.com/1lqnmh</a></p>