gpt repository loader
Project description
gpt-repository-loader
This is a package 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 teh repo and adds ai prompts which can be used for chat gpt conversations.
This will be particularly useful when chat gpt4-32k is release. Right now this will only work on very small repos.
gpt-repository-loader
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.
Getting Started
To get started with gpt-repository-loader
, follow these steps:
-
Ensure you have Python 3 installed on your system.
-
Clone or download the
gpt-repository-loader
repository. -
Navigate to the repository's root directory in your terminal.
-
Run
gpt-repository-loader
with the following command:python gpt_repository_loader.py /path/to/git/repository
Replace
/path/to/git/repository
with the path to the Git repository you want to process. -
The tool will generate an output.txt file containing the text representation of the repository. You can now use this file as input for AI language models or other text-based processing tasks.
Running Tests
To run the tests for gpt-repository-loader
, follow these steps:
-
Ensure you have Python 3 installed on your system.
-
Navigate to the repository's root directory in your terminal.
-
Run the tests with the following command:
python -m unittest test_gpt_repository_loader.py
Now, the test harness is added to the gpt-repository-loader
project. You can run the tests by executing the command python -m unittest test_gpt_repository_loader.py
in your terminal.
License
This project is licensed under the MIT License - see the LICENSE file for details.
Project details
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
Hashes for gptrepo-1.0.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ef89a902ce7d5e27bfbec1b1fa96a0b548da22d319f9b89e0de29a4192e11f39 |
|
MD5 | 514a0a7cef065f4309569592651ec877 |
|
BLAKE2b-256 | 1a5a1293bbe44f39efb0ab30b2d322e029b35fa5511c10c0c7f34f95d9231224 |