Skip to main content

Gerrit Stats

Project description

Gerrit Stats

PyPI Travis Coverage License

Gerrit Stats is a tool used for Gerrit stats via Gerrit API.

Requirement

  • python (3.7+)
  • pip
  • python-dev

Installation

On Ubuntu / Mint, install Gerrit Stats with the following commands:

apt update
apt install python3-dev python3-pip python3-setuptools
pip install gerritstats

On OS X, install Gerrit Stats via Homebrew (or via Linuxbrew on Linux):

TBD

On Windows, install Gerrit Stats with the following commands:

pip install -U pywin32
pip install -U pyinstaller
pip install -Ur requirements.txt

pyinstaller --clean --name gerritstats -F stats.py

Updating

pip install gerritstats --upgrade

Running

gerritstats \
    --config-file config.json \
    --gerrit-query "since:2020-06-01 until:2020-06-02" \
    --output-file output.json

Setting

Gerrit Stats parameters can be set in the directory config.

An example of configuration in config.json:

{
  "gerrit": {
    "host": "localhost:80",
    "pass": "pass",
    "query": {
      "option": ["CURRENT_REVISION"]
    },
    "user": "user"
  }
}

License

Project License can be found here.

Project details


Download files

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

Source Distribution

gerritstats-1.0.0.tar.gz (11.1 kB view hashes)

Uploaded Source

Built Distribution

gerritstats-1.0.0-py2.py3-none-any.whl (12.7 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page