在python项目中查找外部和内部依赖项并绘制有向图和/或矩阵来表示它们的包。
depender的Python项目详细描述
依赖者
depender是一个python包,用于确定和打印 给定python包的依赖项,给定其名称或路径。
另外,它还可以用来绘制层次图 所述包的目录结构。
安装
要求
depender需要python 3.5+
安装最新版本
使用pip
:
pip install depender
从源安装
git clone https://github.com/AnesBenmerzoug/depender pip install .
用法
可以从命令行使用包:
depender <packageNameOrPath>
Usage: depender [OPTIONS] PACKAGE_NAME_OR_PATH [EXCLUDED_DIRS]...
Depender command line interface
Create a dependency graph, a dependency matrix and/or a directory
structure graph for a given Python package.
PROJECT_PATH should be the path (relative or absolute) to the root of the
Python package.
EXCLUDED_DIRS should be, if provided, the name of or more directories in
the package to be excluded from the graph.
Options:
-o, --output-dir PATH Output directory [default: graphs]
-fmt, --format TEXT Output format, if specified the graph will
be rendered to a file with the given format
--dims, --image-dimensions TEXT
Dimensions of the rendered graphs given as
'width,height' [default: 800,600]
--include-external When set, external packages are included in
the graphs [default: False]
--no-follow-links When set the script visits directories
pointed to by symlinks [default: False]
--depth INTEGER Depth of the directory recursion [default:
6]
--version Show the version and exit.
-h, --help Show this message and exit.
许可证
Depender是在ApacheSoftwareLicense2.0版本下获得许可的。