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.

Note

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

Installation

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:

License

GPLv3

CHANGES

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

Project details


Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
programslice-0.3.1.tar.gz (47.0 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page