Skip to main content

gitflow-visualizer

The gitflow-visualizer is a Python-based tool designed to visually analyze and track the workflow of a GitHub repository. It displays branch activities (e.g., branch creation, deletion, pull request merges) and other important events, allowing teams to easily understand the history of the repository's development process. For more information, see GitHub API - List repository activities.

Features

  • Visualize GitHub repository activities such as:
    • Branch creation
    • Branch deletion
    • Pushes and force-pushes
    • Pull request merges
  • Different colors for each user's activities
  • Filter activities by date range
  • Highlight active branches
  • Abstract branch name like release, hotfix, and feature for better visualization.

Installation

You can install the latest stable version of gitflow-visualizer from PyPI:

pip install gitflow-visualizer

Or, if you prefer to install the latest development version from the GitHub repository, use:

git clone https://github.com/Verssae/gitflow-visualizer.git
cd gitflow-visualizer
pip install .

GitHub Token

You can pass a GitHub API token directly using the --token option for increased rate limits or to access private repositories.

Alternatively, you can set the GITHUB_TOKEN environment variable, and the tool will use it automatically if --token is not provided.

Usage

Once installed, you can use the tool to visualize a GitHub repository's workflow. Below are some example commands:

gitflow-visualizer https://github.com/SoftClassTeam4/Invaders
gitflow-visualizer https://github.com/SoftClassTeam4/Invaders --start_date 2023-10-17 --end_date 2023-10-19
usage: gitflow-visualizer [-h] [--core_branches [CORE_BRANCHES ...]] [--start_date START_DATE] [--end_date END_DATE] [--token TOKEN] url

Visualize GitHub Repository Workflow Activities

positional arguments:
  url                   GitHub repository URL

options:
  -h, --help            show this help message and exit
  --core_branches [CORE_BRANCHES ...]
                        List of core branch names. Other branch names would be abstracted (release->R, hotfix->H, feature->F)
  --start_date START_DATE
                        Start date in YYYY-MM-DD format
  --end_date END_DATE   End date in YYYY-MM-DD format
  --token TOKEN         GitHub API token

Font Recommendation

For the best visual experience, it is recommended to use the Fira Code font. You can download and install it here or via the following command on macOS:

brew tap homebrew/cask-fonts
brew install font-fira-code-nerd-font

License

This project is licensed under the MIT License - see the LICENSE file for details.

Metadata

Release files for gitflow-visualizer 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for gitflow-visualizer 0.1.2
File Interpreter ABI Platform
gitflow_visualizer-0.1.2-py3-none-any.whl Python 3 none any Details

Release files / gitflow_visualizer-0.1.2-py3-none-any.whl

Download URL gitflow_visualizer-0.1.2-py3-none-any.whl
Size 7.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
710514523bff8856c5896df8eeb622e3e9da67c6db9301446da32a386c623b2f
BLAKE2b-256 checksum
How to use checksums
978ca00ebe03132c8c368ddc551a5540548ca4778886a02d476d312d6e11417d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.12.1

Release history Release notifications | RSS feed

This release

0.1.2 This release

1 release file

0.1.1

1 release file

0.1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page