擅长:python、mysql、java
<p>我确实编写了一个工具来查找和绘制PyPi上Python包之间的依赖关系。是<a href="http://pypi.python.org/pypi/Gluttony" rel="nofollow noreferrer">gluttony</a></p>
<p>我也曾经分析过我正在使用的库的依赖关系。以下是一些图表:</p>
<p><img src="https://i.stack.imgur.com/BPmCX.png" alt="enter image description here"/>
<img src="https://i.stack.imgur.com/qCa3w.png" alt="enter image description here"/></p>
<p>我不确定这是你想要的。如果是,可以读取源代码<a href="https://bitbucket.org/victorlin/gluttony" rel="nofollow noreferrer">here</a>,这是一个开源项目。对于更多依赖关系图,可以查看<a href="http://code.google.com/p/python-gluttony/wiki/Gallery" rel="nofollow noreferrer">gallery</a></p>
<p>谈到如何实现它,为了查找包依赖项,我使用<a href="http://www.pip-installer.org/en/latest/" rel="nofollow noreferrer">pip</a>作为后端。对于绘制图表,我使用<a href="http://networkx.lanl.gov/" rel="nofollow noreferrer">Networkx</a>。</p>