简体中文🀄 | English🌎
首先,使用Pipdeptree获取Python项目依赖数据,然后使用Echarts Graph进行可视化,最后用Streamlit开发了一个线上的Web App。其中,包的分类标签使用了NetworkX内置的社区发现算法Girvan-Newman为依赖项之间的图网络划分社区。
PyDepGraph is a web application designed to display information about Python installed packages and their dependencies. 👇
PyDepGraph is a utility for displaying the installed python packages in form of a dependency tree.
![]() |
![]() |
![]() |
![]() |
Community Detection | Pkgs Tree | Node Colors | Local File |
软件架构说明
- Pipdeptree Python项目依赖数据获取
- Streamlit Web应用程序框架
- Echarts Graph可视化
$ git clone https://github.com/shangfr/PyDepGraph.git
$ cd PyDepGraph
$ pip install -r requirements.txt
$ streamlit run app.py
查看所有包及其依赖
$ pip install pipdeptree
$ pipdeptree --json-tree > pkg.json
查看指定包及其需要的依赖
$ pipdeptree --json-tree -p xxx包名 > xxxpkg.json
- Fork 本仓库
- 新建 Feat_xxx 分支
- 提交代码
- 新建 Pull Request