Skip to main content

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 named output.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 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.

Metadata

Release files for gpt-repository-loader 0.10.0

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

Source distribution (sdist)

Source distribution for gpt-repository-loader 0.10.0
File Size Uploaded Provenance Actions
gpt_repository_loader-0.10.0.tar.gz 8.8 kB Without provenance Details for gpt_repository_loader-0.10.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for gpt-repository-loader 0.10.0
File Interpreter ABI Platform Actions
gpt_repository_loader-0.10.0-py3-none-any.whl Python 3 none any Details for gpt_repository_loader-0.10.0-py3-none-any.whl

Total release size: 16.9 kB

Release files / gpt_repository_loader-0.10.0.tar.gz

Download URL gpt_repository_loader-0.10.0.tar.gz
Size 8.8 kB
Tags Source
SHA-256 checksum
How to use checksums
f3b4f2d1d6c4d90f7b9d8027abb5b58c8e3281e19b75281e2467ffe9f50ea7ed
BLAKE2b-256 checksum
How to use checksums
15d34faa657c600d273b4a7c77f9ff9b6a6d42223064d1c816a92b72b1403ded
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.4

Release files / gpt_repository_loader-0.10.0-py3-none-any.whl

Download URL gpt_repository_loader-0.10.0-py3-none-any.whl
Size 8.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b4f103f9308307e092cc3471cb16147b64626d0779e783c2c43ebd7a4ca68b44
BLAKE2b-256 checksum
How to use checksums
b4bb1b23f03c31b928a6e82d998bf5b91b52f0d2c95449545dcb6e6d8b8b5df3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.4

Security for gpt-repository-loader 0.10.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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