Skip to content

wojciech-pawlik/gh-analyzer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GitHub repository analyzer

1. Installation

1.1 Clone the repository:

git clone https://github.com/wojciech-pawlik/gh-analyzer.git

1.2 Create a virtual environment

python -m virtualenv venv

1.3.1 (linux/mac) Activate venv, install the requirements using pip and set environmental variable FLASK_APP:

source venv/bin/activate
pip install -r requirements.txt
export FLASK_APP=run.py

1.3.2 (windows) Activate venv, install the requirements using pip and set environmental variable FLASK_APP:

\venv\Scripts\activate.bat
pip install -r requirements.txt
export FLASK_APP=run.py

1.4 Run the application by executing the command:

flask run

2. Usage

Run the application by executing the command:

flask run

Open the address on which the application is running:

image

Authorize the app by your GitHub account via OAuth: image

Select a username which repositories you want to list, next click of the buttons:

  • List repos: prints all the received repositories of the selected user with a list of used languages
  • List languages: prints all languages used in all repositories of the selected user image

3. Todo

  • Manage the authentication directly from the app (GitHub REST API works without a token, however, there exists a limit of 60 requests)
  • Secure unexpected cases (eg. failed authorization, achieved the limit of requests)
  • Create the layout
  • Further development: language usage by time, time series charts, forecasting

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published