The AppRanker module processes app information in the app json interchange format (for instance produced by AppEnricher) containing score information and calculates the rankings for each used measure (and optionally for each app category present in the data). The ranking information is then added to the app json information.
This module has been built for portability and ease of use, so it is composed by a stand-alone Python program. All you need is to have Python 3 installed on your system, then you can just download the code and run it. The behavior of the module can be tuned by using some command options that are described below. Being a Python program, it is also easy to inspect the code, see how it works, and possibly modify it if you want so.
Command line: appranker
The Appranker module can be directly launched without any parameters: if so, it will proceed by using default locations for the input and the output directories (see below).
The AppRanker behaviour can be modified via the following command line options (shorter or longer formats):
-h, --help show this help message and exit
-i INPUT, --input INPUT
the input json directory (default: google/enriched)
-o OUTPUT, --output OUTPUT
the output json directory (default: google/ranked)
-b BASE, --base BASE base directory for relative directory paths (default: .)
-c, --categories category rankings are also computed (default: False)
-k, --keep existing files from output directory are kept (not deleted) (default: False)
-v, --verbose verbose informative output (default: False)
Some more information about the options (note they are all similar to the options of the AppEnricher module, apart from the new option -c
on categories):
-i, --input
-o, --output
-b, --base
-c, --categories
-k, --keep
-v, --verbose
The source code of the module can be directly downloaded here (note that at public launch we will also provide a GitHub link).