Giter Site home page Giter Site logo

alihoushy / github-repository-language-analyzer Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 2 KB

A Python script that uses the GitHub API to analyze the primary programming languages used across a user's public GitHub repositories. It counts the occurrences of each language and prints a summary of the most popular ones.

Python 100.00%
github-api python3

github-repository-language-analyzer's Introduction

GitHub Repository Language Analyzer

Overview

This Python script allows you to analyze the programming languages used in a GitHub user's repositories and those of the users they are following. It calculates the percentage of each programming language across these repositories, providing insights into coding preferences and expertise not only for the user but also for their network.

Features

  • Retrieve and analyze the language statistics of a GitHub user's repositories and those they are following.
  • Calculate the percentage of each programming language used across these repositories.
  • Handle cases where languages are not present in some repositories.
  • Ensure that the total percentage sums to 100% with optional rounding.
  • Present the results in a clear and visually appealing table.

Usage

  1. Obtain a GitHub access token.
  2. Rename the file named .env.example to .env.
  3. Set the value of GITHUB_ACCESS_TOKEN in the .env file.
  4. Run the script to analyze the user's repositories.
  5. Additionally, analyze repositories of users the user is following.

Example usage:

python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
python3 script.py

github-repository-language-analyzer's People

Contributors

alihoushy avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.