Package: launchpadstats
Get theLaunchpadstatistics troughStackalyticsand create CSV or HTML
tables out of them. The CSV output uses;as a delimiter.Each section in the configuration file corresponds to a table name - the
name can be anything and does not have any effect on the table
structure. A table can have a certain type and overwrite the default
values. Currently implemented table types aregroup-metricsanduser-metrics.Examples:With thegroup-metricstable type, using the example configuration
file provided:$ launchpadstats -c ./config.ini --table-name tableA
metric/release; havana; juno; icehouse
drafted_blueprint_count; 2; 1; 0
completed_blueprint_count; 1; 1; 1
filed_bug_count; 53; 50; 45
resolved_bug_count; 9; 6; 7
sum; 65; 58; 53Example with theuser-metricstable type:$ launchpadstats -c ./config.ini --table-name user-metrics-havana
user/metric; drafted_blueprint_count; completed_blueprint_count; filed_bug_count; resolved_bug_count; commit_count; reviews (-2, -1, +1, +2, A)
mkollaro; 1; 0; 3; 1; 9; (0, 6, 12, 0, 0)
psedlak; 0; 1; 0; 0; 9; (0, 9, 19, 0, 0)
afazekas; 1; 0; 48; 8; 82; (2, 57, 83, 439, 66)Create a single HTML page with all the tables (each section is
considered a table, except the sectionDEFAULT):$ launchpadstats-all > everything.htmlUsageFor more information, look into theconfig.initable.usage: launchpadstats [-h] [-v] -c CONFIG [-t TABLE_NAME]
                      [--output-format {csv,html}]

Get Launchpad statistics trough Stackalytics and create various types of
tables out of them.

optional arguments:
  -h, --help            show this help message and exit
  -v, --verbose         Show logging output.
  -c CONFIG, --config CONFIG
                        Configuration file, by default use 'config.ini' in the
                        project directory.
  -t TABLE_NAME, --table-name TABLE_NAME
                        Which section name in the config file to use, the
                        default value is 'DEFAULT'.
  --output-format {csv,html}
                        What output format to use. Default is 'csv'.The commandlaunchpadstats-allis similar, but creates a single HTML
page with all of the tables.ConfigurationLook intoconfig.inifor an example.Table typesCurrently implemented table types aregroup-metricsanduser-metrics, which you can specify in thetable-typeoption.group-metrics- Show the metrics of the group per release in
columns. Thegroupis defined as the list of people passed in thepeopleoption. One metric per line is shown, releases are
columns. Shows a sum of the metrics per release.user-metrics- For each person in thepeopleoption, display
a line with their metrics (given in themetricsoption), summed
up in all the releases specified inreleases.Possible metricsThese are the values you can give to the optionmetrics.email_countloc- lines of codecommit_countdrafted_blueprint_countcompleted_blueprint_countreviews- shows in the format (-2, -1, +1, +2, A)filed_bug_countresolved_bug_countpatch_set_countOther optionsoptionpeople- list of user IDs, which should be the same as theuser_idparameter on the Stackalytics webpage, i.e.http://stackalytics.com/?user_id=usernameoptionreleases- list of OpenStack releases, in lower case (e.g.
havana,icehouse,juno,..)optiondescription- shown in the output oflaunchpadstats-all, as a header of the table (if not specified,
the table name, i.e. section name will be used)The options given in theDEFAULTsection can be used as short-cuts
in other options.