Skip to main content

This library gives you some user metrics in batch from a set of github repositories.

Project description

Gitstats

Gitstats is a project that calculates some user metrics for a set of Github projects. This project aims to be as configurable and easy to update as possible, so other users could add their own metrics or output formats, contributing to the project.

Installation

You can install gitstats with pip:

pip install gitstats-py

or locally install the source code:

git clone https://github.com/diverso-lab/gitstats
cd gitstats
pip install .

Usage

Once installed, you can run the tool just by typing the command gitstats in shell.

For this to work, you need a config.txt file in your current working directory. There is an example config file in the project. Do not copy the config above as it does not support comments:

[global]
# Starting date (YYYY-MM-DD)
date = 2022-9-30
# Here you must introduce a personal access token from your Github developer settings
token = token
# Introduce which metrics you want to get
metrics = CommitCount,LinesOfCode,Issues,Tests
# Introduce the expected values for each metric in the same order
expected_values = 12,240,6,6

[repos]
# List of repos to be analized. URLs below first must be indented.
urls = https://github.com/...
    https://github.com/...
    https://github.com/...

Then, you should get a metrics directory with the results, and an alerts directory telling which users have not reached the expected values.

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

gitstats-py-1.0.3.tar.gz (4.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gitstats_py-1.0.3-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

Details for the file gitstats-py-1.0.3.tar.gz.

File metadata

  • Download URL: gitstats-py-1.0.3.tar.gz
  • Upload date:
  • Size: 4.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.7

File hashes

Hashes for gitstats-py-1.0.3.tar.gz
Algorithm Hash digest
SHA256 140d01cffa3c4464a07f19fbd60ddd59296ac4c576227861c15ade2c3a4b8099
MD5 77e23fe136810b8b0c239b8cfcd78db4
BLAKE2b-256 00034073ee60231f8046e4129d07b92d6140ad9330c5b771a9250a438f26b77d

See more details on using hashes here.

File details

Details for the file gitstats_py-1.0.3-py3-none-any.whl.

File metadata

  • Download URL: gitstats_py-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 5.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.7

File hashes

Hashes for gitstats_py-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 aab871e6d1ee6d26dea8f3ff0efe5cc7e6dd68432869144bf2114ffc7cdee063
MD5 051cdbf3d570e3d9964d7902f14dda79
BLAKE2b-256 8bdab6ec5389b9f5e6a428fd0eeb061e521288fa9f8daff5b8840f72f4a77d92

See more details on using hashes here.

Supported by

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