fetch github info Algorithm

The fetch GitHub info Algorithm is a powerful tool designed to retrieve valuable information from the GitHub platform, a web-based platform used by developers for version control and collaboration on software projects. This algorithm extracts essential data from GitHub repositories, such as the number of stars, forks, open issues, and other useful metrics, providing insights into the popularity, health, and activity of a particular project. By utilizing the GitHub API, the algorithm can access public repositories and gather critical information, making it easier for developers, project managers, and other stakeholders to analyze and evaluate the performance of projects hosted on GitHub. In addition to obtaining basic repository information, the fetch GitHub info Algorithm can also be used to gather data on individual contributors, their commit history, and other valuable insights into the developer's work habits and productivity. This information can be used to assess the overall health and progress of a software project, as well as identify potential bottlenecks or areas for improvement. By automating the process of fetching and analyzing data from GitHub repositories, this algorithm streamlines the process of understanding the current state of a project and making informed decisions based on accurate, up-to-date information. Furthermore, this algorithm can be integrated into various applications and tools to provide real-time insights into the projects, making it a versatile solution for developers and project managers alike.
# Created by sarathkaul on 14/11/19

import requests

_GITHUB_API = "https://api.github.com/user"


def fetch_github_info(auth_user: str, auth_pass: str) -> None:
    # fetching github info using requests
    info = requests.get(_GITHUB_API, auth=(auth_user, auth_pass))

    for a_info, a_detail in info.json().items():
        print(f"{a_info}: {a_detail}")


if __name__ == "main":
    fetch_github_info("<USER NAME>", "<PASSWORD>")

LANGUAGE:

DARK MODE: