A utility to convert a Git repository into a text representation.
Project description
gpt-repository-loader
Installation
pip install gpt-repository-loader
Linux Requirements
On Linux, ensure that you have xclip
installed for clipboard functionality. You can install it using:
sudo apt-get install xclip # Debian/Ubuntu
sudo yum install xclip # Fedora/CentOS
How to use?
Go to the directory you are interested in, run
gpt-repository-loader . -c
This will copy ALL the git tracked content in the repository on clipboard and then you can use Gemini/Claude/ChatGPT to ask questions on it.
Available Command Line Flags
repo_path
: (Required) Path to the Git repository.-p
,--preamble
: Path to a preamble file to include before the repository content.-c
,--copy
: Copies the repository contents to the clipboard. If not provided, the output will be written to a file namedoutput.txt
in the current directory.-i
,--ignore
: Additional file paths or patterns to ignore. You can specify multiple paths or patterns.--include-js-ts-config
: Include JavaScript and TypeScript config files (which are ignored by default).-l
,--list
: List all files with their token counts.
Examples
# Ignore specific files or directories
gpt-repository-loader . -c -i "*.log" "temp_files/" "config.ini"
# Include JS/TS config files and ignore a specific directory
gpt-repository-loader . --include-js-ts-config -i "node_modules/"
# List all included files with their token counts
gpt-repository-loader . -l
What to use it for?
- Build a README for codebases
- Work with Legacy code
- Debug issues
Gemini's 1M context window is REALLLY big, and it under utilized.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for gpt-repository-loader-0.9.9.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 71b611da1e69f8b087557a1f6ac993f2f4babae9db850dfa2dc065fd6d653374 |
|
MD5 | 6d522326c2e537862dcdafd355eef4fd |
|
BLAKE2b-256 | e0036997cb706c64bbfa2a3ae5179afa9cb49c46ff453e449059e267d437c395 |
Close
Hashes for gpt_repository_loader-0.9.9-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 78e479d467f0a859e4a9ba792f853d0ac986e68d88aeb344c28658521d3031c9 |
|
MD5 | 3073617b06e92da7bf87765436d1d889 |
|
BLAKE2b-256 | c767c62ef710e7b3c3ff6b9aa3b930155af6d4a347b9c65b0c8acd81e97b5122 |