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.txtin 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 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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file gpt_repository_loader-0.10.0.tar.gz.
File metadata
- Download URL: gpt_repository_loader-0.10.0.tar.gz
- Upload date:
- Size: 8.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f3b4f2d1d6c4d90f7b9d8027abb5b58c8e3281e19b75281e2467ffe9f50ea7ed
|
|
| MD5 |
5725b704bf24e25c0b3516c72f1d7688
|
|
| BLAKE2b-256 |
15d34faa657c600d273b4a7c77f9ff9b6a6d42223064d1c816a92b72b1403ded
|
File details
Details for the file gpt_repository_loader-0.10.0-py3-none-any.whl.
File metadata
- Download URL: gpt_repository_loader-0.10.0-py3-none-any.whl
- Upload date:
- Size: 8.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b4f103f9308307e092cc3471cb16147b64626d0779e783c2c43ebd7a4ca68b44
|
|
| MD5 |
e05ca574690b5e4097e239f687c2e129
|
|
| BLAKE2b-256 |
b4bb1b23f03c31b928a6e82d998bf5b91b52f0d2c95449545dcb6e6d8b8b5df3
|