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.
Metadata
Release files for gitstats-py 1.0.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| gitstats-py-1.0.5.tar.gz | 16.8 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| gitstats_py-1.0.5-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 34.4 kB
Release files / gitstats-py-1.0.5.tar.gz
| Download URL | gitstats-py-1.0.5.tar.gz |
|---|---|
| Size | 16.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b141bc6016092351f4ab02e8576f6ba0f0008f0e709f75d13972c5aa85b51784
|
|
BLAKE2b-256 checksum How to use checksums |
3cdd075b3bff44a5cd81b952749e28832a7ec334840e26403b157b354a412518
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.6
|
Release files / gitstats_py-1.0.5-py3-none-any.whl
| Download URL | gitstats_py-1.0.5-py3-none-any.whl |
|---|---|
| Size | 17.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
acf615a7b2f1fe835f75933ed79c15d0bce864bf00850b8fff984682dc5038be
|
|
BLAKE2b-256 checksum How to use checksums |
53aba3baaaa133d114b7886da00b30a04d15c03152d0fd7d0dd8c55adce7962c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.6
|
Security for gitstats-py 1.0.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.