在python项目中查找外部和内部依赖项并绘制有向图和/或矩阵来表示它们的包。

depender的Python项目详细描述


依赖者

depender是一个python包,用于确定和打印 给定python包的依赖项,给定其名称或路径。

Dependency Graph

Dependency Matrix

另外,它还可以用来绘制层次图 所述包的目录结构。

Structure Graph

安装

要求

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版本下获得许可的。

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
在java中的字符串字符下打印星号(*)   java在比较数据后得到错误的结果   java如何在使用JSP创建的网站中创建父子关系和处理?   java配置单元UDF:无法执行求值方法   java GAE项目Intellij远程调试在关闭时不释放端口   java按钮上的放大和缩小功能点击JfreeChart折线图?   java Selenium Chrome Web驱动程序SessionNotCreatedException   java由ADFactoryBuilder生成的线程工厂是线程安全的吗?   java将字符串[]传递给另一个类Android(使用intent)   我为什么要嘲笑java?   JavaLiferay门户不将对象从流程阶段发送到jsp   java我想在单击每个树节点时将要添加的信息放入jpanel jscrollpane中   在Java中模拟数组引用(即对引用的引用)的按引用传递   Jackson将JSON属性反序列化为不同的Java对象   java使用JSP/servlet在网页上显示Excel工作表?   仿射变换Java:使用仿射变换时游戏速度减慢   Servlet JBoss AS 7的java EJB注入   在Oracle数据库中使用Java的plsql   java管理Maven项目中的库依赖项   JavaEclipseLink(JPA)异常:复合主键@JoinColumn