Skip to main content

Static analysis tool for python

Project description

Build status

Static analysis tool for python programs to see depending lines of code.


The Python program programslice in itself is rather useless for the end user. Use it with the Vim editor plugin. See Installation for more information.

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
  • 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:




0.3.1 (2016-12-01)

  • Bugfix release (see issue #25, Kudos to Adam Coddington)

0.3 (2015-02-18)

  • 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:

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

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for programslice, version 0.3.1
Filename, size File type Python version Upload date Hashes
Filename, size programslice-0.3.1.tar.gz (47.0 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page