SSL Metrics - GitHub Issues Analysis
Project description
SSL Metrics GitHub Issues Extractor
Using the GitHub Issues REST API, provide insight into a specific GitHub repository issue tracker
About
This is a proof of concept demonstrating that it is possible to use the GitHub REST API to extract Issues from a repository and graph various metrics from it.
This software extracts Issues since the project's conception a GitHub repository and stores it within a .json
file.
This file can then be piped into a bundled graphing utility to graph the following:
- Number of open issues against days
- Number of closed issues against days
- Comparison of number of open and closed issues against days
The graphs can be saved as a .png
, .pdf
, or any compatible format that matplotlib
supports.
How to Run
Installation
From pip
- Install
Python 3.9.6 +
- (Recommended) Create a virtual environment with
python3.9 -m venv env
and activate it - Run
pip install ssl-metrics-github-issues
- Generate a JSON data set with
ssl-metrics-github-issues-collect -r REPOSITORY -t GH_TOKEN -s FILENAME.json
- Generate graphs with
ssl-metrics-github-issues-graph -i FILENAME.json -o OPEN_ISSUES_GRAPH_FILENAME.* -c CLOSED_ISSUES_GRAPH_FILENAME.* -x JOINT_ISSUES_GRAPH_FILENAME
Command Line Arguments
ssl-metrics-github-issues-collect
-h
,--help
: Shows the help menu and exits-r
,--repository
: GitHub repository to be used. Format needs to be "OWNER/REPO". Default is numpy/numpy-t
,--token
: GitHub personal access token-s
,--save-json
: Save analysis to JSON file
ssl-metrics-github-issues-graph
TODO: Add export options
-h
,--help
: Shows the help menu and exits-c
,--closed-issues-graph-filename
: The filename of the output graph of closed issues-i
,--input
: The input JSON file that is to be used for graphing-o
,--open-issues-graph-filename
: The filename of the output graph of open issues-x
,--joint-issues-graph-filename
: The filename of the output graph of open and closed issues
Example Outputs
TODO: Add outputs following this format https://github.com/SoftwareSystemsLaboratory/ssl-metrics-git-commits-loc/blob/main/README.md#example-outputs
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for ssl-metrics-github-issues-0.7.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6c99714fcdecbe917e55f8f2277ce0dbc89317cadec85a864f5e901f91d9f83a |
|
MD5 | de9f0de0d8868efc05cafc210c2c4978 |
|
BLAKE2b-256 | 73c988d2c1692a45869314f99a52069b90e37871201e7cf65e621319f4bb7cce |
Hashes for ssl_metrics_github_issues-0.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a2493e492234f55717228485c3ad0292299b85df23b85f05386f08bea6b76811 |
|
MD5 | ca5cc074fdaef7ad407aad7d9a185be5 |
|
BLAKE2b-256 | ad5a9d3e0b4bc13f6ae07b6b7f89393bd86d769c630fc19ae18d89e371a06dbc |