python静态分析工具
programslice的Python项目详细描述
用于python程序查看依赖代码行的静态分析工具。
注意
python程序programslice本身就是 对最终用户来说毫无用处。与Vim editor plugin一起使用。见安装 更多信息。
为什么使用程序切片
该计划的主要好处是:
- 有助于跟踪程序的控制流的可能性
- 查找对程序状态不必要的变量
安装
要求:python 2.7
首先在您喜爱的virtualenv:
$ pip install https://github.com/romanofski/programslice/archive/master.zip
按照vim插件github page上的说明安装它。
安装插件后,请确保 programslice命令位于$PATH变量中,或者调整 ~/.vimrc中的g:programslice_cmd变量指向它 到可执行文件。
出资形式
如果你觉得这个程序有用,这里有一个列表 贡献:
- 从我的wish list上给我买本书
- 针对programslice或vim plugin的文件问题
- 帮助改进代码
发展
该项目托管在github上:
积压:
- https://github.com/romanofski/programslice/issues
- https://github.com/romanofski/programslice.vim/issues
文档位于:
屏幕截图
许可证
gplv3
更改
0.3.1(2016-12-01)
- Bugfix release (see issue #25, Kudos to Adam Coddington)
0.3(2015-02-18)
- command: Added ^{tt6}$ to see command line tool version.
- New datastructures to improve slicing quality: Result can yield line numbers, objects, sliced source code
- vim: Slicing result now highlights variables instead of just lines
- vim: moved VimL code into separate repository: https://github.com/romanofski/programslice.vim
0.2(2012-11-21)
- added output formatter to either output filtered lines of code or just line numbers
- Allow to slice between functions calls (fixes #5)
- vim: Allow to toggle slicing markers
0.1(2012-08-22)
- initial release