Skip to content

Application for cloning and exploring Git repositories and local directories. Browse repository files, visualize directory structures, preview code, generate AI code explanations, and analyze file sizes.

Notifications You must be signed in to change notification settings

calinux-py/GitMap-IQ

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 

Repository files navigation

GitMapIQ

GitMap IQ is a GUI application designed to help you explore Git repositories interactively and visually. Features like repository cloning, file browsing, code previews, and AI-powered code explanations--GitMap IQ simplifies understanding repositories and directories.

Windows Python HTML OpenAI

UniUI

Features

  • Clone and Browse Repositories: Clone Git repositories directly from URLs or browse local directories.
  • File Explorer: Navigate through the repository's file structure with a tree view.
  • Code Preview: View the content of code files within the application.
  • AI-Powered Code Explanation: Get detailed explanations of code files using OpenAI's GPT-3.5-turbo model.
  • Repository Visualization: Visualize the directory structure of the repository.
  • Size Graph: Analyze file sizes within the repository using interactive graphs.
  • Markdown Rendering: View rendered README.md files.
  • Dark Mode: Toggle between light and dark themes.
  • File Operations: Open files or their containing folders directly from the application.

UniUI

Installation

Prerequisites

  • Python 3.6 or higher
  • Git (for cloning repositories)
  • OpenAI API Key (for AI-powered code explanations)

Dependencies

Install the required Python packages:

pip install -r requirements.txt

Alternatively, install packages manually:

pip install PyQt5 requests matplotlib markdown

Setup

OpenAI API Key

GitMapIQ uses OpenAI's GPT-3.5-turbo model to generate code explanations. You need an API key to enable this feature.

  1. Obtain your API key from OpenAI.
  2. On first run, the application will prompt you to enter your API key.
  3. The key will be saved in a configuration file at config/openai.ini.

Usage

Run the application using the following command:

python gitmap.py

UniUI

User Interface Overview

  • Repository Input: Enter a Git repository URL to clone or select a local directory.
  • Clone/Browse Button: Clone the repository or open the local directory.
  • Tabs:
    • Explorer: Navigate the repository's file structure.
    • Visualizer: View a visual representation of the directory tree.
    • Size Graph: Analyze file sizes within the repository.
    • Explanation: Get AI-generated explanations for code files.
    • Preview: Preview the content of code files.
    • ViewMD: Render and view README.md files.
    • Options: Toggle dark mode and switch between repository and local directory modes.

Features in Detail

Clone and Browse Repositories

  • Clone Repository: Enter a Git URL and click "Clone Repository" to clone and explore a remote repository.
  • Browse Directory: Switch to file browser mode to select and explore a local directory.

File Explorer

  • Navigate Files: Use the tree view to browse through directories and files.
  • Context Menu: Right-click on files to access options like "Open", "Open location", "Explanation", and "Preview".

AI-Powered Code Explanation

  • Explain Code: Right-click on a code file and select "Explanation" to receive a detailed explanation generated by AI.
  • OpenAI Integration: Utilizes the GPT-3.5-turbo model for generating explanations.

Repository Visualization

  • Visualizer Tab: Provides a visual representation of the repository's directory structure.
  • Size Graph Tab: Displays a graph of file sizes to help identify large files.

Code Preview

  • Preview Files: View the content of code files within the application without opening external editors.

Markdown Rendering

  • ViewMD Tab: Renders README.md files for easy reading within the application.

Options

  • Dark Mode: Toggle between light and dark themes for better visibility.
  • File Browser Mode: Switch between cloning repositories and browsing local directories.

Configuration

Settings

  • Dark Mode: Enable or disable dark mode in the "Options" tab.
  • File Browser: Switch between repository URL input and local directory browsing.

OpenAI API Key Management

  • First-Time Setup: Enter your OpenAI API key when prompted on the first run.
  • Configuration File: The API key is stored in config/openai.ini. You can edit or replace this file to update the key.

Troubleshooting

  • Clone Failures: Ensure the Git repository URL is correct and that you have internet connectivity.
  • OpenAI Errors: Verify that your API key is valid and that you have an active OpenAI subscription.
  • File Not Opening: Check that the file exists and that you have the necessary permissions.

License

MIT License.