Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

pymetrics(1) [debian man page]

PYMETRICS(1)							   User Commands						      PYMETRICS(1)

NAME
pymetrics - Python source code metrics SYNOPSIS
pymetrics [options] files... DESCRIPTION
This manual page documents briefly the pymetrics command pymetrics is a program that produces metrics for Python programs. Metrics include McCabe's Cyclomatic Complexity metric, LoC, %Comments, etc. Users can also define their own metrics using data from PyMetrics. PyMetrics optionally outputs to stdout, SQL command files and CSV files. OPTIONS
These programs follow the usual GNU command line syntax, with long options starting with two dashes (`-'). A summary of options is included below. -h, --help show this help message and exit -s SQLFILENAME, --sql=SQLFILENAME name of output SQL command file. (Default is metricData.sql) -t SQLTOKENTABLENAME, --tokentable=SQLTOKENTABLENAME name of output SQL token table. (Default is metricTokens) -m SQLMETRICSTABLENAME, --metricstable=SQLMETRICSTABLENAME name of output SQL metrics table. (Default is metricData) -c CSVFILENAME, --csv=CSVFILENAME name of output CSV data file. (Default is metricData.csv) -f INFILELIST, --files=INFILELIST File containing list of path names to modules for analysis. -i INCLUDEMETRICSSTR, --include=INCLUDEMETRICSSTR list of metrics to include in run. This is a comma separated list of metric module names with no whitespace. Optionally, you can specify the class name of the metric by following the module name with a colon (:) and the metric class name. (Default metrics are 'simple:SimpleMetric,mccabe:McCabeMetric,sloc:SLOC Metric'. Default metric class name for metric module 'wxYz' is 'WxYzMetric' when only module name given -- note capitalized metric class name.) -l LIBNAME, --library=LIBNAME user-defined name applied to collection of modules (Default is '') -e, --exists assume SQL tables exist and does not generate creation code. Using this option sets option -N. (Default is False) -N, --noold create new command output files and tables after deleting old results, if any. Ignored if -e is set. (Default is False) -B, --nobasic suppress production of Basic metrics (Default is False) -S, --nosql suppress production of output SQL command text file. (Default is False) -C, --nocsv suppress production of CSV output text file. (Default is False) -H, --noheadings suppress heading line in csv file. (Default is False) -k, --kwcnt generate keyword counts. (Default is False) -K, --nokwcnt suppress keyword counts. (Default is True) -q, --quiet suppress normal summary output to stdout. (Default is False) -z, --zero display zero or empty values in output to stdout. (Default is to suppress zero/empty output) -v, --verbose Produce verbose output - more -v's produce more output. (Default is no verbose output to stdout) -d, --debug Provide debug output, not usually generated - internal use only AUTHOR
pymetrics was written by Reg. Charney. This manual page was written by Andrew Pollock <apollock@debian.org>, for the Debian project (but may be used by others). pymetrics 0.8.1 September 2009 PYMETRICS(1)

Check Out this Related Man Page

PYCALLGRAPH(1)							   User Commands						    PYCALLGRAPH(1)

NAME
pycallgraph - command-line interface to pycallgraph SYNOPSIS
pycallgraph [OPTION]... pythonfile DESCRIPTION
This manual page documents pycallgraph. This manual page was originally written for the Debian distribution. pycallgraph is a program that creates call graphs for Python programs. pycallgraph is the command line interface to pycallgraph's make_dot_graph method, which generates a call graph and stores it as an image in the specified image file. -o, --output-file the file name of the output image. Default: pycallgraph.png -f, --image-format the image format of imagefile. Default: png -q, --quiet Suppress status output to the console. -t, --tool the tool from GraphViz to use. Default: dot -s, --stdlib include standard library functions in the trace. Default: False -i, --include wildcard pattern of modules to include in the output. You can have multiple include arguments -e, --exclude wildcard pattern of modules to exclude in the output. You can have multiple exclude arguments -d, --max-depth maximum stack depth to trace --exclude-timing wildcard pattern of modules to exclude in time measurement. You can have multiple exclude arguments --include-timing wildcard pattern of modules to include in time measurement. You can have multiple include arguments EXAMPLES
Create a call graph called pycallgraph.png on myprogram.py: pycallgraph ./myprogram.py Create a call graph of a standard Python installation script with command line parameters: pycallgraph --output-file=setup.png -- setup.py --dry-run install Only see the module "distutils" within the execution of easy_install: pycallgraph --include=distutils.* /usr/bin/easy_install AUTHORS
pycallgraph and pycallgraph were written by Gerald Kaszuba <pycallgraph@slowchop.com>. This manual page was originally written by Jan Alonzo <jmalonzo@unpluggable.com>, for the Debian GNU/Linux system. pycallgraph version 0.5.1 2008-07-08 PYCALLGRAPH(1)
Man Page