Some simple utils.
Project description
Util list:
-
ARM, Analysis Module Relationship
通过 import、from-import 分析模块之间的关系.
CodeAnalyzer 还可以一块分析每个模块导的包,所含的类、函数、全局变量
缺陷:
- 只能分析当前文件夹下的所有模块,不递归分析子文件夹(还没写)。
- 仅支持静态分析,分析不了动态的模块导入。
- 分析不了__init__.py中导入的包
- 分析的前提要保障代码的格式规范(以Pycharm的自动代码规范格式为标准)
- CodeAnalyzer只能分析单元素的赋值定义,且赋值的字面值需要缩进不能与赋值定义同缩进.
- CodeAnalyzer暂不支持分析相对导入
-
graph_dot
仅提供了有向图的创建,但重写
__str__()
能够输出 dot 格式的图信息。
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
tq_amr-0.0.1.tar.gz
(11.8 kB
view hashes)
Built Distribution
tq_amr-0.0.1-py3-none-any.whl
(12.5 kB
view hashes)