Skip to content

Latest commit

 

History

History
310 lines (230 loc) · 6.64 KB

File metadata and controls

310 lines (230 loc) · 6.64 KB

A Python tool to check all Pull Requests created by a GitHub user across all their repositories.

Python License No Dependencies


Table of Contents


GUI


Features

Zero Dependencies Uses only Python standard library
No API Token Required Works without authentication
Comprehensive Statistics Shows merged, pending, and closed PRs
All Repositories Scans across all user's repositories
Detailed Reports Optional detailed PR list with links
Easy to Use Simple command-line interface

Prerequisites

Requirement Description
Python Version 3.6 or higher
Internet Active connection
GitHub Username Valid username to check

That's it! No additional packages needed.


Optional requirement (mandatory to Generate Graphs)

Installing Matplotlib :

  • Matplotlib is a popular Python library for creating static, animated, and interactive visualizations.
  • Here's how to install it:

Method 1: Using pip (Recommended)

  1. The simplest way is to use pip, Python's package manager:
pip install matplotlib
  1. If you're using Python 3 specifically,you might need:
pip3 install matplotlib
  1. For Windows:
python -m pip install --upgrade pip

Method 2: Using conda

  1. If you're using Anaconda or Miniconda, use conda instead:
conda install matplotlib

Verifying the Installation

  • After installation, verify it worked by opening Python and importing the library:
import matplotlib.pyplot as plt
print(matplotlib.__version__)
  • If no error appears and a version number prints, the installation was successful.

Additional Setup Notes :

  1. Virtual Environments (Recommended)
  • It's best practice to install packages in a virtual environment to avoid conflicts:
python -m venv myenv
source myenv/bin/activate  # On Windows: myenv\Scripts\activate
pip install matplotlib
  1. System Dependencies
  • On some Linux systems, you might need system libraries first. For example, on Ubuntu/Debian:
sudo apt-get install python3-matplotlib
  1. if using pip, ensure you have the development headers:
sudo apt-get install python3-dev
pip install matplotlib

Installation

Method 1: Using One-Line Install & Run:

# For linux & MAC
curl -O https://raw.githubusercontent.com/Chintanpatel24/Prexec/main/Prexec.py && python3 Prexec.py
# For Windows PowerShell
Invoke-WebRequest -Uri https://raw.githubusercontent.com/Chintanpatel24/Prexec/main/Prexec.py -OutFile Prexec.py; python Prexec.py

Method 2: Clone the Repository

# Clone this repository
git clone https://github.com/Chintanpatel24/Prexes.git

# Navigate to the directory
cd Prexec

# Run the script
python3 Prexec.py

Method 3: Download Directly

  1. Download Prexec.py from this repository
  2. Save it to your desired location
  3. Run it with Python
python Prexec.py

Method 4: Quick Download (Using wget or curl)

  1. Using wget:
# Download the script
wget https://raw.githubusercontent.com/Chintanpatel24/Prexec/main/Prexec.py

# Run it
python3 Prexec.py
  1. Using curl:
# Download the script
curl -O https://raw.githubusercontent.com/Chintanpatel24/Prexec/main/Prexec.py

# Run it
python3 Prexec.py

Optional: Setup GitHub Token

  • For higher API limits (5000 requests/hour instead of 60):

Step 1: Create a Personal Access Token at GitHub Settings

Step 2: Create a .env file in the same directory:

GITHUB_TOKEN=your_token_here

Step 3: The script will automatically detect and use it


Demo Graph


Usage

  • Starting the Tool
cd Prexec
python3 Prexec.py
  • Everything is a command based !!
  • Main Menu


Limitations

GitHub API Rate Limits

Authentication Rate Limit Resets After
Without Token 60 requests/hour 1 hour
With Token 5,000 requests/hour 1 hour

Troubleshooting

Issue Solution
python: command not found Use python3 check_pr.py instead
HTTP Error 403: rate limit exceeded Wait 1 hour or add GitHub token
HTTP Error 404: Not Found Check if username/repo exists
Shows 0 PRs User has no PRs or repos are private
Script freezes User has many repos; wait for completion
ModuleNotFoundError Ensure Python 3.6+ is installed
  • Debug Mode:
# Run with output logging
python Prexec.py 2>&1 | tee output.log

Example Output


Star History

Star History Chart