Static analysis tool for python
Static analysis tool for python programs to see depending lines of code.
Why Using Programslice
The main benefits of the program are:
the possibility to aid tracing the control flow of the program
find variables that are unnecessary to the program state
Requirements: Python 2.7
Install programslice first in your favourite virtualenv:
$ pip install https://github.com/romanofski/programslice/archive/master.zip
Install the Vim plugin by following the instructions on it’s github page.
Once the plugin is installed, either make sure that the programslice command is in your $PATH variable or you adjust the g:programslice_cmd variable in your ~/.vimrc to point it to the executable.
Forms of Contribution
If you find this program useful, here is a list of how you can contribute:
buy me a book off my wish list
help to improve the code
The project is hosted on github:
Documentation is available on:
Bugfix release (see issue #25, Kudos to Adam Coddington)
command: Added --version 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
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
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.