Skip to main content

gptrepo

This is a fork of the very excellent gpt-repository-loader by mpoon.

Usage

pip install gptrepo
gptrepo  # now output.txt should appear in the current directory

This tool concatenates through all the files in the repo and adds ai prompts which can be used for chat gpt conversations.

Simply open up the file, copy and paste it into the chat gpt window and then ask your question about the code.

This will be particularly useful when chat gpt4-32k is released. Right now this will only work on very small repos.

Linting

MacOS_Tests Ubuntu_Tests Win_Tests

gptrepo is a command-line tool that converts the contents of a Git repository into a text format, preserving the structure of the files and file contents. The generated output can be interpreted by AI language models, allowing them to process the repository's contents for various tasks, such as code review or documentation generation.

Contributing

Some context around building this is located here. Appreciate any issues and pull requests in the spirit of having mostly GPT build out this tool. Using ChatGPT Plus is recommended for quick access to GPT-4.

Running Tests

To run the tests for gptrepo, follow these steps:

  1. Ensure you have Python 3 installed on your system.

  2. Navigate to the repository's root directory in your terminal.

  3. Run the tests with the following command:

    tox
    

Now, the test harness is added to the gptrepo project. You can run the tests by executing the command tox in your terminal.

License

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

Versions

  • 1.0.3: Remove media files from concatenation.

Metadata

Release files for gptrepo 1.0.3

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

Source distribution (sdist)

Source distribution for gptrepo 1.0.3
File Size Uploaded
gptrepo-1.0.3.tar.gz 11.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for gptrepo 1.0.3
File Interpreter ABI Platform
gptrepo-1.0.3-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size: 17.3 kB

Release files / gptrepo-1.0.3.tar.gz

Download URL gptrepo-1.0.3.tar.gz
Size 11.7 kB
Tags Source
SHA-256 checksum
How to use checksums
77ee6f28290df5940a30cac910a4ce5b47000a9f74877a29ac6878802236377d
BLAKE2b-256 checksum
How to use checksums
ac0d045f3df978a3830f6f16e7b9cf1bf3e39f9037d797600020aa75457f80c3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.12

Release files / gptrepo-1.0.3-py2.py3-none-any.whl

Download URL gptrepo-1.0.3-py2.py3-none-any.whl
Size 5.6 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
d26bcd9fcd4fa2697ec022ab2a6a09ce28bf3f5ed0b8f220448a16a233027cd4
BLAKE2b-256 checksum
How to use checksums
e3121ca030b49784be25cab8ca0c407c0b564be903aa4ebd058541f0f182ecf1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.12

Release history Release notifications | RSS feed

This release

1.0.3 This release

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

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